refactor buttons pt1
This commit is contained in:
parent
9fdbdc662a
commit
033aa1a885
75 changed files with 139 additions and 150 deletions
|
@ -12,5 +12,5 @@
|
|||
|
||||
%br
|
||||
.actions
|
||||
= submit_tag 'Save', class: "btn primary"
|
||||
= link_to 'Cancel', :back, class: "btn"
|
||||
= submit_tag 'Save', class: "btn btn-save"
|
||||
= link_to 'Cancel', :back, class: "btn btn-cancel"
|
||||
|
|
|
@ -1,16 +1,6 @@
|
|||
%h3
|
||||
Edit max access in #{@project.name} for #{@team.name} team
|
||||
%h3.page_title
|
||||
Edit max access in #{link_to @project.name_with_namespace, @project} for #{link_to(@team.name, team_path(@team))} team
|
||||
|
||||
%hr
|
||||
%table.zebra-striped
|
||||
%tr
|
||||
%td Project:
|
||||
%td= @project.name
|
||||
%tr
|
||||
%td Team:
|
||||
%td= @team.name
|
||||
%tr
|
||||
%td Since:
|
||||
%td= assigned_since(@team, @project).stamp("Nov 11, 2010")
|
||||
|
||||
= render 'form'
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
- if current_user.can?(:manage_user_team, @team) && @avaliable_projects.any?
|
||||
%span.right
|
||||
= link_to new_team_project_path(@team), class: "btn success small grouped", title: "New Team Member" do
|
||||
= link_to new_team_project_path(@team), class: "btn btn-primary small grouped", title: "New Team Member" do
|
||||
Assign project to Team
|
||||
|
||||
%hr
|
||||
|
@ -30,7 +30,7 @@
|
|||
- if current_user.can?(:admin_user_team, @team)
|
||||
%td.bgred
|
||||
= link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn small"
|
||||
= link_to 'Relegate', team_project_path(@team, project), confirm: 'Remove project from team and move to global namespace. Are you sure?', method: :delete, class: "btn danger small"
|
||||
= link_to 'Relegate', team_project_path(@team, project), confirm: 'Remove project from team and move to global namespace. Are you sure?', method: :delete, class: "btn btn-remove small"
|
||||
|
||||
- else
|
||||
%p.nothing_here_message This team has no projects yet
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
%tr
|
||||
%td= select_tag :project_ids, options_from_collection_for_select(@avaliable_projects , :id, :name_with_namespace), multiple: true, data: {placeholder: 'Select projects'}, class: 'chosen span5'
|
||||
%td= select_tag :greatest_project_access, options_for_select(UserTeam.access_roles), {class: "project-access-select chosen span3" }
|
||||
%td= submit_tag 'Add', class: "btn primary", id: :assign_projects_to_team
|
||||
%td= submit_tag 'Add Project', class: "btn btn-create", id: :assign_projects_to_team
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue