Add cancel button to forms that didn't have one already
This commit is contained in:
parent
67119e15c0
commit
ca01690305
4 changed files with 6 additions and 5 deletions
|
@ -23,3 +23,4 @@
|
||||||
|
|
||||||
.form-actions
|
.form-actions
|
||||||
= f.submit 'Create group', class: "btn btn-create", tabindex: 3
|
= f.submit 'Create group', class: "btn btn-create", tabindex: 3
|
||||||
|
= link_to 'Cancel', dashboard_groups_path, class: 'btn btn-cancel'
|
||||||
|
|
|
@ -96,8 +96,6 @@
|
||||||
= link_to 'Remove avatar', profile_avatar_path, data: { confirm: "Avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
|
= link_to 'Remove avatar', profile_avatar_path, data: { confirm: "Avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
|
||||||
|
|
||||||
|
|
||||||
.row
|
.form-actions
|
||||||
.col-md-7
|
= f.submit 'Save changes', class: "btn btn-success"
|
||||||
.form-group
|
= link_to "Cancel", user_path(current_user), class: "btn btn-cancel"
|
||||||
.col-sm-offset-2.col-sm-10
|
|
||||||
= f.submit 'Save changes', class: "btn btn-success"
|
|
||||||
|
|
|
@ -100,6 +100,7 @@
|
||||||
|
|
||||||
.form-actions
|
.form-actions
|
||||||
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
|
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4
|
||||||
|
= link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel'
|
||||||
|
|
||||||
- if current_user.can_create_group?
|
- if current_user.can_create_group?
|
||||||
.pull-right
|
.pull-right
|
||||||
|
|
|
@ -15,3 +15,4 @@
|
||||||
- if @service.valid? && @service.activated?
|
- if @service.valid? && @service.activated?
|
||||||
- disabled = @service.can_test? ? '':'disabled'
|
- disabled = @service.can_test? ? '':'disabled'
|
||||||
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: "btn #{disabled}"
|
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: "btn #{disabled}"
|
||||||
|
= link_to "Cancel", namespace_project_services_path(@project.namespace, @project), class: "btn btn-cancel"
|
||||||
|
|
Loading…
Reference in a new issue