2012-02-11 18:56:18 +01:00
|
|
|
%h3
|
|
|
|
= @admin_project.name
|
|
|
|
= link_to 'Edit', edit_admin_project_path(@admin_project), :class => "btn right small"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
|
|
|
%table.zebra-striped.table-bordered
|
2011-11-18 21:54:56 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Name:
|
|
|
|
%td
|
|
|
|
= @admin_project.name
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Code:
|
|
|
|
%td
|
|
|
|
= @admin_project.code
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Path:
|
|
|
|
%td
|
|
|
|
= @admin_project.path
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Description:
|
|
|
|
%td
|
|
|
|
= @admin_project.description
|
2012-04-17 19:27:18 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Post Receive File:
|
|
|
|
%td
|
|
|
|
= check_box_tag :post_receive_file, 1, @admin_project.has_post_receive_file?, :disabled => true
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
|
|
|
%h3
|
|
|
|
Team
|
|
|
|
%small
|
|
|
|
(#{@admin_project.users_projects.count})
|
|
|
|
%br
|
|
|
|
%table.zebra-striped.table-bordered
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Project Access
|
|
|
|
%th Repository Access
|
|
|
|
%th
|
2011-11-18 21:54:56 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
- @admin_project.users_projects.each do |tm|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= link_to tm.user_name, admin_user_path(tm.user)
|
|
|
|
%td= select_tag :tm_project_access, options_for_select(Project.access_options, tm.project_access), :class => "medium project-access-select", :disabled => :disabled
|
|
|
|
%td= link_to 'Edit Access', edit_admin_team_member_path(tm), :class => "btn small"
|
|
|
|
%td= link_to 'Remove from team', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete, :class => "btn danger small"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
|
|
|
%h3 Add new team member
|
|
|
|
%br
|
|
|
|
= form_tag team_update_admin_project_path(@admin_project), :class => "bulk_import", :method => :put do
|
|
|
|
%table.zebra-striped.table-bordered
|
2012-02-11 18:56:18 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2012-04-16 22:33:03 +02:00
|
|
|
%th Users
|
|
|
|
%th Project Access:
|
2012-02-11 18:56:18 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%tr
|
|
|
|
%td= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), :multiple => true
|
|
|
|
%td= select_tag :project_access, options_for_select(Project.access_options), :class => "project-access-select"
|
2012-01-21 18:03:47 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%tr
|
|
|
|
%td= submit_tag 'Add', :class => "btn primary"
|
|
|
|
%td
|
|
|
|
Read more about project permissions
|
|
|
|
%strong= link_to "here", help_permissions_path, :class => "vlink"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-01-21 18:03:47 +01:00
|
|
|
:css
|
|
|
|
form select {
|
|
|
|
width:150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#user_ids {
|
|
|
|
width:300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$('select#user_ids').chosen();
|
|
|
|
$('select#repo_access').chosen();
|
|
|
|
$('select#project_access').chosen();
|
|
|
|
|