swapped new invitation lightbox for a proper page.

This commit is contained in:
danielvincent 2010-12-03 00:57:53 -08:00
parent 30668bf2e6
commit 7fdbc9015b
11 changed files with 81 additions and 82 deletions

View file

@ -11,5 +11,5 @@
%p %p
= aspect.label :name , t('.name') = aspect.label :name , t('.name')
= aspect.text_field :name = aspect.text_field :name
= aspect.submit t('.create'), :class => 'button' = aspect.submit t('.create'), :class => 'button'

View file

@ -1,24 +0,0 @@
.span-12.last
.modal_title_bar
%h4
= t('.invite_someone_to_join')
%i
= t('.if_they_accept_info')
%br
= t('.comma_seperated_plz')
= form_for User.new, :url => invitation_path(User) do |invite|
%p
= invite.label :email , t('email')
= invite.text_field :email
= t('.to')
- unless @aspect.is_a? Aspect
= invite.select(:aspects, @aspects_dropdown_array)
- else
= invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id)
%br
= t('.message')
= invite.text_area :invite_messages, :value => ""
%p= invite.submit t('.send_an_invitation')

View file

@ -0,0 +1,40 @@
:javascript
$(function() {
$('#new_user [title]').tipsy({trigger: 'focus', gravity: 'w'});
$("#user_email").focus();
});
.span-3.append-1.prepend-3
= image_tag 'icons/monotone_email_letter_round.png', :height => "128px", :width => "128px"
.span-15.last
%h2
= t('.invite_someone_to_join')
.description
= t('.if_they_accept_info')
%br
= form_for User.new, :url => invitation_path(User) do |invite|
%h4
Email
%p
= invite.label :email , t('email')
= invite.text_field :email, :title => t('.comma_seperated_plz')
%br
%h4
Aspect
- unless @aspect.is_a? Aspect
= invite.select(:aspects, @aspects_dropdown_array)
- else
= invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id)
%br
%br
%h4
= t('.personal_message')
= invite.text_area :invite_messages, :rows => 3, :value => ""
%p
= invite.submit t('.send_an_invitation')

View file

@ -20,17 +20,15 @@
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact} = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact}
.span-15.last .span-15.last
%h4
-if @post_type == :photos
Photos
- else
Recent Posts
- if @contact || current_user.person == @person - if @contact || current_user.person == @person
- if @posts.count > 0 - if @posts.count > 0
-if @post_type == :photos -if @post_type == :photos
%h4
Photos
= render 'photos/index', :photos => @posts = render 'photos/index', :photos => @posts
- else - else
%h4
Recent Posts
= render 'shared/stream', :posts => @post_hashes = render 'shared/stream', :posts => @post_hashes
= will_paginate @posts = will_paginate @posts

View file

@ -21,9 +21,5 @@
%ul#request_result{:aspect_id => aspect_id} %ul#request_result{:aspect_id => aspect_id}
%li.error.hidden %li.error.hidden
#message #message
= link_to t('.know_email'), "#invite_user_pane", :class => "invite_user_button" = link_to t('.know_email'), new_user_invitation_path
%br
.yo{ :style => "display:none;"}
#invite_user_pane
= render "invitations/new"

View file

@ -2,12 +2,8 @@
= t('.invites_closed') = t('.invites_closed')
-else -else
-if invites > 0 -if invites > 0
= link_to t('.invite_someone'), "#invite_user_pane", :class => "invite_user_button", :title => t('.invite_someone') = link_to t('.invite_someone'), new_user_invitation_path, :title => t('.invite_someone')
= t('.invitations_left', :count => invites) = t('.invitations_left', :count => invites)
%br
.yo{ :style => "display:none;"}
#invite_user_pane
= render "invitations/new"
- else - else
= t('.dont_have_now') = t('.dont_have_now')

View file

@ -40,12 +40,12 @@
%h2 %h2
= t('account') = t('account')
.span-8.append-1.last .span-8.append-2
%h3 %h3
= t('.your_handle') = t('.your_handle')
%p %p
%b= current_user.diaspora_handle %b= current_user.diaspora_handle
.span-8.prepend-2.last .span-8.last
%h3 %h3
= t('.your_email') = t('.your_email')
%p %p
@ -53,10 +53,7 @@
%br %br
%br %br
%br %hr
%br
%br
%br
%br %br
%h3 %h3
@ -76,6 +73,11 @@
= t('or') = t('or')
= f.submit t('.change_password') = f.submit t('.change_password')
%br
%br
%hr
%br
%h3 %h3
= t('.change_language') = t('.change_language')
= form_for @user do |f| = form_for @user do |f|
@ -85,19 +87,21 @@
= f.select :language, available_language_options = f.select :language, available_language_options
= f.submit t('.change_language') = f.submit t('.change_language')
%br
%h3
= t('.export_data')
= link_to t('.download_xml'), users_export_path, :class => "button"
= link_to t('.download_photos'), users_export_photos_path, :class => "button"
%br %br
%br %br
%hr
%br %br
%h3
= t('.close_account') .span-8.append-2
= link_to t('.close_account'), current_user, %h3
:confirm => t('are_you_sure'), :method => :delete, = t('.export_data')
:class => "button" = link_to t('.download_xml'), users_export_path, :class => "button"
= link_to t('.download_photos'), users_export_photos_path, :class => "button"
.span-8.last
%h3
= t('.close_account')
= link_to t('.close_account'), current_user,
:confirm => t('are_you_sure'), :method => :delete,
:class => "button"

View file

@ -279,7 +279,7 @@ en:
if_they_accept_info: "if they accept, they will be added to the aspect you invited them." if_they_accept_info: "if they accept, they will be added to the aspect you invited them."
comma_seperated_plz: "You can enter multiple email addresses separated by commas." comma_seperated_plz: "You can enter multiple email addresses separated by commas."
to: "To" to: "To"
message: "Message:" personal_message: "Personal message"
send_an_invitation: "Send an invitation" send_an_invitation: "Send an invitation"
send_invitation: "Send invitation" send_invitation: "Send invitation"
check_token: check_token:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,004 B

View file

@ -19,13 +19,17 @@ $(document).ready(function(){
//buttons////// //buttons//////
$(".add_aspect_button," + $(".add_aspect_button," +
".manage_aspect_contacts_button," + ".manage_aspect_contacts_button," +
".invite_user_button," +
".add_photo_button," + ".add_photo_button," +
".remove_person_button," + ".remove_person_button," +
".question_mark").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false }); ".question_mark").fancybox({ 'titleShow': false , 'hideOnOverlayClick' : false });
$("input[type='submit']").addClass("button"); $("input[type='submit']").addClass("button");
// focus aspect name on fancybox
$(".add_aspect_button").click( function(){
$("#aspect_name").focus();
});
$("#q").focus( $("#q").focus(
function() { function() {
$(this).addClass('active'); $(this).addClass('active');

View file

@ -295,7 +295,7 @@ header
img img
:position relative :position relative
:top 5px :top 6px
:display inline-block :display inline-block
.from .from
@ -983,7 +983,10 @@ label
:font :font
:size 12px :size 12px
:-webkit-box-shadow 0 1px 1px #666
:-webkit-box-shadow 0 1px #666
:-moz-box-shadow 0 1px #666
:box-shadow 0 1px #666
:border 1px solid #000 :border 1px solid #000
@ -1617,6 +1620,7 @@ ul#request_result
:-webkit-box-shadow 0 1px #fff :-webkit-box-shadow 0 1px #fff
:-moz-box-shadow 0 1px #fff :-moz-box-shadow 0 1px #fff
:box-shadow 0 1px #fff
input.contact_list_search input.contact_list_search
:width 100% :width 100%
@ -1635,8 +1639,6 @@ ul#request_result
:padding 8px :padding 8px
:border :border
:bottom 1px solid #eee :bottom 1px solid #eee
:font
:weight bold
&:hover &:hover
:background :background
@ -1646,16 +1648,6 @@ ul#request_result
:right 8px :right 8px
:top 2px :top 2px
.avatar
:height 22px
:width 22px
:position absolute
:top 6px
span.name
:font
:size 14px
a.button a.button
:padding :padding
:right 4px :right 4px
@ -1672,13 +1664,6 @@ ul#request_result
:background -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(130,55,55)), color-stop(1, rgb(199,119,119))) :background -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(130,55,55)), color-stop(1, rgb(199,119,119)))
:background -moz-linear-gradient(top, rgb(199,119,119), rgb(130,55,55)) :background -moz-linear-gradient(top, rgb(199,119,119), rgb(130,55,55))
#edit_aspect_pane .contact_list
.avatar
:height 22px
:width 22px
:position absolute
:top 6px
footer footer
:margin :margin
:top 40px :top 40px