diaspora/app/views/invitations/new.html.haml
Thomas R. Koll 869cbdf9e9 * Localizeable "Rename aspect" button
* Don't list emails_delivered if there are none yet
* Don't show drag_to_add button if there are no @remote_requests
2010-12-29 17:00:08 +01:00

48 lines
1.2 KiB
Text

:javascript
$(function() {
$('#new_user [title]').tipsy({trigger: 'focus', gravity: 'w'});
$("#user_email").focus();
});
.span-3.append-1
= image_tag 'icons/monotone_email_letter_round.png', :height => "128px", :width => "128px"
.span-20.last
.span-20.last
%h2
= t('.invite_someone_to_join')
.description
= t('.if_they_accept_info')
%br
.span-15.append-1
= form_for User.new, :url => invitation_path(User) do |invite|
%h4
= t('email')
= invite.text_field :email, :title => t('.comma_seperated_plz')
%br
%h4
= t('.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')
- if !@emails_delivered.empty?
.span-4.last
#already_invited_pane
%h4
= t('.already_invited')
- for email in @emails_delivered
= email