rosa-build/app/views/collaborators/index.html.haml

45 lines
1.3 KiB
Plaintext
Raw Normal View History

-set_meta_tags :title => [title_object(@project), t('layout.projects.members')]
= render :partial => 'projects/sidebar'
= render :partial => 'projects/submenu'
%a{:name => 'users'}
%h3= t("layout.users.list_header")
#add_collaborator_form
2012-04-19 21:35:31 +01:00
.admin-search.withimage
.img
%img{ :alt => 'avatar', :src => '', :style => 'display: none;' }
2012-04-19 21:35:31 +01:00
= text_field_tag :collaborator_name, nil
.both
.admin-role
.lineForm
= select_tag 'role', options_for_collaborators_roles_select
.admin-add
%a{:id => 'add_collaborator_button', :class => 'button', :rel => 'nofollow', :href => 'javascript:void(0)'}
= t('layout.add')
.both
%table#collaborators.tablesorter{:cellpadding => "0", :cellspacing => "0"}
%thead
%tr
%th.centered
%span#collaborators_deleter.hidden
%span.delete   
%th
= t("layout.collaborators.members")
%th{:colspan => "3"}
= t("layout.collaborators.roles")
%tr.search
%th{:colspan => "5"}
%input{ :type => "text", :placeholder => "#{ t('layout.filter_by_name') }"}
%tbody
%br
.both
:javascript
$(function() {
Rosa.bootstrapedData.collaborators = #{ render :partial => 'collaborators.json.jbuilder', :locals => {:collaborators => @collaborators } };
r = new Rosa.Routers.CollaboratorsRouter();
});