diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-14 05:20:22 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-14 05:20:22 -0700 |
commit | da98cebc5bd72f5cfc25c50fcaecbe952db5f3ed (patch) | |
tree | 39ec93469a37596ff6e7e33464d2878412e8d6e0 /app | |
parent | a59fe739fe05bcdf0eed06f1aea276a1236c32d2 (diff) | |
parent | 815c186b29e801377ab552ecf3665c7732a61415 (diff) | |
download | gitlab-ce-da98cebc5bd72f5cfc25c50fcaecbe952db5f3ed.tar.gz |
Merge pull request #4314 from Undev/feature/redesign_forms
Switch form from table to plain form without member list
Diffstat (limited to 'app')
-rw-r--r-- | app/views/admin/teams/members/new.html.haml | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/app/views/admin/teams/members/new.html.haml b/app/views/admin/teams/members/new.html.haml index d3929cb7cdf..96b6d61b974 100644 --- a/app/views/admin/teams/members/new.html.haml +++ b/app/views/admin/teams/members/new.html.haml @@ -1,29 +1,27 @@ %h3.page_title - Team: #{@team.name} - -%fieldset - %legend Members (#{@team.members.count}) - = form_tag admin_team_members_path(@team), id: "team_members", class: "bulk_import", method: :post do - %table#members_list - %thead - %tr - %th User name - %th Default project access - %th Team access - %th - - @team.members.each do |member| - %tr.member - %td - = link_to [:admin, member] do - = member.name - %small= "(#{member.email})" - %td= @team.human_default_projects_access(member) - %td= @team.admin?(member) ? "Admin" : "Member" - %td - %tr - %td= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name_with_username), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5' - %td= select_tag :default_project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3" } - %td - %span= check_box_tag :group_admin - %span Admin? - %td= submit_tag 'Add', class: "btn btn-primary", id: :add_members_to_team + New members for + = link_to @team.name, admin_team_path(@team) + team +%hr += form_tag admin_team_members_path(@team), id: "team_members", class: "bulk_import", method: :post do + - if @team.errors.any? + .alert.alert-error + %span= @team.errors.full_messages.first + .clearfix + = label_tag :user_ids do + Users to add + .input + = select_tag :user_ids, options_from_collection_for_select(@users , :id, :name_with_username), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5' + .clearfix.group-description-holder + = label_tag :default_project_access do + Default permission in projects + .input + = select_tag :default_project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3" } + .clearfix + = label_tag :group_admin do + Is team admin + .input + = check_box_tag :group_admin + .clearfix.form-actions + = submit_tag 'Add users into team', class: "btn btn-primary", id: :add_members_to_team + = link_to 'Cancel', :back, class: "btn" |