Sha256: 711acadb8e35fae0cdbae84a685e8bb98ba396c497d75ffff182eaa27ddd325e

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

.row-fluid
  %h2.span2 Users
  .span10
    - if can? :manage, current_user.current_organization
      = link_to "Add", "#userForm", 'data-toggle' => 'modal', :class => 'btn'
%ul#memberships.detailed-list.row-fluid
  - organization.users.each do |user|
    %li.span5.row-fluid
      .span3
        = gravatar_image_tag(user.email, :alt => 'User icon', :class => 'user-grav bordered', :gravatar => { :size => 48 })
      .span9
        .email= truncate(user.email)
        .remove
          - if user == current_user.current_organization.owner
            Organization Administrator
          - elsif can? :manage, current_user.current_organization
            = link_to "Remove", organization_user_membership_path(@organization, user.membership_in(organization)), :method => :delete

#userForm.modal
  = form_tag organization_user_memberships_path(@organization.id), :action => "create" do
    .modal-header
      .close{'data-dismiss'=>'modal'} x
      %h3 Add A User To Your Organization
    .modal-body
      %p
        Enter the user's email address below.  The user will receive an email with a link to join Artful.ly and set his or her password.
      = text_field_tag :user_email, "", :placeholder => "Enter an email address..."
    .modal-footer
      = submit_tag "Add", :class => 'btn'
      
    

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.4 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.3 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.2 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.1 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre app/views/user_memberships/_list.html.haml