refactor buttons pt1
This commit is contained in:
parent
9fdbdc662a
commit
033aa1a885
75 changed files with 139 additions and 150 deletions
|
@ -77,9 +77,9 @@
|
|||
%br
|
||||
|
||||
.actions
|
||||
= f.submit 'Save', class: "btn save-btn"
|
||||
= f.submit 'Save', class: "btn btn-save"
|
||||
= link_to 'Cancel', @project, class: "btn"
|
||||
- unless @project.new_record?
|
||||
- if can?(current_user, :remove_project, @project)
|
||||
.right
|
||||
= link_to 'Remove Project', @project, confirm: 'Removed project can not be restored! Are you sure?', method: :delete, class: "btn danger"
|
||||
= link_to 'Remove Project', @project, confirm: 'Removed project can not be restored! Are you sure?', method: :delete, class: "btn btn-remove"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
Project name is
|
||||
.input
|
||||
= f.text_field :name, placeholder: "Example Project", class: "xxlarge"
|
||||
= f.submit 'Create project', class: "btn success project-submit"
|
||||
= f.submit 'Create project', class: "btn btn-create project-submit"
|
||||
|
||||
- if current_user.can_select_namespace?
|
||||
.clearfix
|
||||
|
|
|
@ -31,4 +31,4 @@
|
|||
|
||||
- if can? current_user, :remove_project, @project
|
||||
.prepend-top-20
|
||||
= link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn danger right"
|
||||
= link_to 'Remove project', @project, confirm: 'Are you sure?', method: :delete, class: "btn btn-remove right"
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
|
||||
|
||||
.actions
|
||||
= submit_tag 'Assign', class: "btn save-btn"
|
||||
= link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn"
|
||||
= submit_tag 'Assign', class: "btn btn-create"
|
||||
= link_to "Cancel", project_team_index_path(@project), class: "btn btn-cancel"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue