2012-04-09 18:11:39 +01:00
|
|
|
|
-set_meta_tags :title => [title_object(@project), t('layout.projects.members')]
|
2012-05-02 10:18:07 +01:00
|
|
|
|
= render 'sidebar'
|
|
|
|
|
= render 'submenu'
|
2012-04-09 18:11:39 +01:00
|
|
|
|
|
|
|
|
|
%a{:name => 'users'}
|
|
|
|
|
%h3= t("layout.users.list_header")
|
|
|
|
|
|
2012-04-12 22:44:53 +01:00
|
|
|
|
#add_collaborator_form
|
2012-04-19 21:35:31 +01:00
|
|
|
|
.admin-search.withimage
|
2012-04-12 22:44:53 +01:00
|
|
|
|
.img
|
|
|
|
|
%img{ :alt => 'avatar', :src => '', :style => 'display: none;' }
|
2012-04-19 21:35:31 +01:00
|
|
|
|
= text_field_tag :collaborator_name, nil
|
2012-04-12 22:44:53 +01:00
|
|
|
|
.both
|
2012-04-09 18:11:39 +01:00
|
|
|
|
.admin-role
|
|
|
|
|
.lineForm
|
|
|
|
|
= select_tag 'role', options_for_collaborators_roles_select
|
2012-04-22 10:17:33 +01:00
|
|
|
|
.admin-add
|
|
|
|
|
%a{:id => 'add_collaborator_button', :class => 'button', :rel => 'nofollow', :href => 'javascript:void(0)'}
|
|
|
|
|
= t('layout.add')
|
2012-04-09 18:11:39 +01:00
|
|
|
|
.both
|
|
|
|
|
|
2012-04-12 22:44:53 +01:00
|
|
|
|
%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")
|
2012-04-17 14:39:14 +01:00
|
|
|
|
%tr.search
|
|
|
|
|
%th{:colspan => "5"}
|
|
|
|
|
%input{ :type => "text", :placeholder => "#{ t('layout.filter_by_name') }"}
|
2012-04-12 22:44:53 +01:00
|
|
|
|
%tbody
|
2012-04-09 18:11:39 +01:00
|
|
|
|
%br
|
|
|
|
|
|
|
|
|
|
.both
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
$(function() {
|
2012-05-02 10:18:07 +01:00
|
|
|
|
Rosa.bootstrapedData.collaborators = #{ render 'collaborators.json.jbuilder', :collaborators => @collaborators };
|
2012-04-12 22:44:53 +01:00
|
|
|
|
r = new Rosa.Routers.CollaboratorsRouter();
|
2012-04-09 18:11:39 +01:00
|
|
|
|
});
|