bborn / communityengine

Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.

communityengine / app / views / users / invite.html.haml
100644 36 lines (32 sloc) 1.385 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/util.js"}
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/basic.js"}
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/abc_launcher.js"}
 
.yui-b
  .box.alt.first_alt
    %h3="Spread the word".l
    %p
      The more people you invite, the better
      = AppConfig.community_name
      becomes.
    %p
      People who sign up using your invitation will automatically be added as your friends on
      = AppConfig.community_name
      \.
 
#yui-main
  .yui-b
    .box
      %h3="Invite Your Friends To Join!".l
      - form_for(:invitation, :url => user_invitations_path(:user_id => @user.id ), :html => {:class => "MainForm"} ) do |f|
        .right
          %a{"href"=>"#", "onclick"=>"showPlaxoABChooser('invitation_email_addresses', '/application/plaxo'); return false;"}
            %img{"src"=>"http://www.plaxo.com/images/abc/buttons/add_button.gif", "alt"=>"Add from my address book"}/
        %label{"for"=>"email_addresses"}
          Enter e-mail addresses
          %em (comma-separated)
        = f.text_area :email_addresses , :rows => "5"
        %label{"for"=>"message"} Write a message
        = f.text_area :message, :rows => "5"
 
        %p
          = submit_tag "Send Invitations!"
          or
          = link_to "cancel", user_path(@user)