Sha256: 332b84f0f3a42f4cf8091e483ce99a9927d334c9da1716b3dcfd7014cac1ba94

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 KB

Contents

.row
  .span3
    %h3{:style => "margin-top: 0px"} Users
    - if can? :manage, current_user.current_organization
      = link_to "Invite User", "#userForm", 'data-toggle' => 'modal', :class => 'btn'
  .span9
    %ul#memberships.detailed-list.row-fluid
      - organization.users.each do |user|
        %li.row-fluid
          .span2
            = 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

13 entries across 13 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.beta.1 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.alpha.2 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.alpha.1 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.27 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.26 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.24 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.23 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.21 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.20 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.19 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.18 app/views/user_memberships/_list.html.haml
artfully_ose-1.2.0.pre.17 app/views/user_memberships/_list.html.haml