Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make cancel buttons consistent

bsatarnejad64e406bc7d5f
diff --git a/app/views/colors/_form.html.erb b/app/views/colors/_form.html.erb
index 35420d7331d..f68418a1a8d 100644
--- a/app/views/colors/_form.html.erb
+++ b/app/views/colors/_form.html.erb
@@ -65,4 +65,4 @@ See docs/COPYRIGHT.rdoc for more details.
</fieldset>
<%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark' %>
-<%= link_to t(:button_cancel), colors_path, class: 'button' %>
+<%= link_to t(:button_cancel), colors_path, class: 'button -with-icon icon-cancel' %>
diff --git a/app/views/enterprises/_form.html.erb b/app/views/enterprises/_form.html.erb
index 86ba915355d..087ea215e4d 100644
--- a/app/views/enterprises/_form.html.erb
+++ b/app/views/enterprises/_form.html.erb
@@ -20,6 +20,6 @@
<div class="form--space"></div>
<%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :show }, class: 'button' %>
+ <%= link_to t(:button_cancel), { action: :show }, class: 'button -with-icon icon-cancel' %>
<% end %>
<% end %>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index 35a94dd698b..e1031134ab7 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -39,7 +39,7 @@ See docs/COPYRIGHT.rdoc for more details.
<hr class="form--separator"/>
<%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), '', class: 'cancel-add-message-button button' %>
+ <%= link_to t(:button_cancel), '', class: 'cancel-add-message-button button -with-icon icon-cancel' %>
<% csp_onclick('jQuery("#add-message").hide();', '.cancel-add-message-button') %>
<% end %>
<div id="preview"></div>
diff --git a/app/views/members/_autocomplete_for_member.html.erb b/app/views/members/_autocomplete_for_member.html.erb
index ea0aba5b271..858170e54ab 100644
--- a/app/views/members/_autocomplete_for_member.html.erb
+++ b/app/views/members/_autocomplete_for_member.html.erb
@@ -66,4 +66,4 @@ See docs/COPYRIGHT.rdoc for more details.
id: 'member-add-submit',
class: 'button -highlight -with-icon icon-checkmark',
style: roles.any? && (principals.any? && principals.size <= 20) ? "": "display:none" %>
-<%= link_to I18n.t('button_cancel'), '', class: 'button hide-member-form-button', role: 'button' %>
+<%= link_to I18n.t('button_cancel'), '', class: 'button -with-icon icon-cancel hide-member-form-button', role: 'button' %>
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 0827535f1f6..2ab4aafd8f4 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -60,7 +60,7 @@ See docs/COPYRIGHT.rdoc for more details.
<%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to_function l(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button'%>
+ <%= link_to_function l(:button_cancel), 'jQuery("#edit-news").hide()', class: 'button -with-icon icon-cancel'%>
<% end %>
</div>
<% end %>
diff --git a/app/views/projects/identifier.html.erb b/app/views/projects/identifier.html.erb
index cc84aac6915..de98f81cb0e 100644
--- a/app/views/projects/identifier.html.erb
+++ b/app/views/projects/identifier.html.erb
@@ -51,7 +51,7 @@ See docs/COPYRIGHT.rdoc for more details.
</span>
<span>
<%= link_to settings_generic_project_path(@project), class: 'button' do %>
- <span class="button--text"><%= l(:button_cancel) %></span>
+ <span class="button--text button -with-icon icon-cancel"><%= l(:button_cancel) %></span>
<% end %>
</span>
</div>
diff --git a/app/views/wiki/_page_form.html.erb b/app/views/wiki/_page_form.html.erb
index 811c4cf5952..d894b8e1517 100644
--- a/app/views/wiki/_page_form.html.erb
+++ b/app/views/wiki/_page_form.html.erb
@@ -46,5 +46,5 @@
<%= link_to t(:button_cancel),
{ controller: '/wiki', action: 'show', project_id: @project, id: (@page.new_record? ? nil : @page) },
data: { confirm: t(:text_are_you_sure) },
- class: 'button' %>
+ class: 'button -with-icon icon-cancel' %>
diff --git a/app/views/wiki_menu_items/edit.html.erb b/app/views/wiki_menu_items/edit.html.erb
index c3ba324efdd..281b4f35e46 100644
--- a/app/views/wiki_menu_items/edit.html.erb
+++ b/app/views/wiki_menu_items/edit.html.erb
@@ -64,6 +64,6 @@ See docs/COPYRIGHT.rdoc for more details.
class: '-highlight -with-icon icon-checkmark' %>
<%= link_to l(:button_cancel),
{controller: '/wiki', action: 'show', project_id: @project, id: @page_title},
- class: 'button'%>
+ class: 'button -with-icon icon-cancel'%>
</p>
<% end %>
diff --git a/frontend/src/app/components/modals/save-modal/save-query.modal.html b/frontend/src/app/components/modals/save-modal/save-query.modal.html
index e78680d9a9d..3a582aa9f74 100644
--- a/frontend/src/app/components/modals/save-modal/save-query.modal.html
+++ b/frontend/src/app/components/modals/save-modal/save-query.modal.html
@@ -47,7 +47,7 @@
[textContent]="text.button_save"
[disabled]="isBusy || !queryName">
</button>
- <button class="button"
+ <button class="button -with-icon icon-cancel"
[textContent]="text.button_cancel"
(click)="closeMe($event)">
</button>
diff --git a/frontend/src/app/components/modals/share-modal/query-sharing.modal.html b/frontend/src/app/components/modals/share-modal/query-sharing.modal.html
index 8d7b1b18934..534b81de319 100644
--- a/frontend/src/app/components/modals/share-modal/query-sharing.modal.html
+++ b/frontend/src/app/components/modals/share-modal/query-sharing.modal.html
@@ -26,7 +26,7 @@
(click)="saveQuery($event)"
[textContent]="text.button_save">
</button>
- <button class="button"
+ <button class="button -with-icon icon-cancel"
[textContent]="text.button_cancel"
[disabled]="isBusy"
(click)="closeMe($event)">
diff --git a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
index b83c9d67bd6..e082c7c255b 100644
--- a/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
+++ b/modules/ldap_groups/app/views/ldap_groups/synchronized_groups/new.html.erb
@@ -51,7 +51,7 @@
<p>
<%= styled_button_tag t(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), url_for(action: :index), class: 'button' %>
+ <%= link_to t(:button_cancel), url_for(action: :index), class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erb
index ec5acc4bca0..23db7007715 100644
--- a/modules/meeting/app/views/meeting_contents/_form.html.erb
+++ b/modules/meeting/app/views/meeting_contents/_form.html.erb
@@ -49,7 +49,7 @@ See docs/COPYRIGHT.rdoc for more details.
<p><%= f.text_field :comment, :size => 120 %></p>
<p><%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark button--save-agenda' %>
- <%= link_to t(:button_cancel), "#", data: { 'content-type': content_type }, class: 'button button--cancel-agenda' %>
+ <%= link_to t(:button_cancel), "#", data: { 'content-type': content_type }, class: 'button -with-icon icon-cancel button--cancel-agenda' %>
<% end %>
<%= render :partial => 'shared/meeting_header' %>
diff --git a/modules/meeting/app/views/meetings/edit.html.erb b/modules/meeting/app/views/meetings/edit.html.erb
index 47180392e28..cb6e4a1b2cd 100644
--- a/modules/meeting/app/views/meetings/edit.html.erb
+++ b/modules/meeting/app/views/meetings/edit.html.erb
@@ -34,5 +34,5 @@ See docs/COPYRIGHT.rdoc for more details.
<%= render :partial => 'form', :locals => {:f => f} %>
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>
<%= link_to l(:button_cancel), { :action => 'show', :id => @meeting },
- class: 'button' %>
+ class: 'button -with-icon icon-cancel' %>
<% end if @project %>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
index 02bbbf6dc27..03f8ef4e595 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/edit.html.erb
@@ -12,6 +12,6 @@
<%= render partial: "form", locals: { f: f } %>
<p>
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button' %>
+ <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
index ca9a4a29c57..a90bfc4c33e 100644
--- a/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
+++ b/modules/openid_connect/app/views/openid_connect/providers/new.html.erb
@@ -10,6 +10,6 @@
<%= render partial: "form", locals: { f: f } %>
<p>
<%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button' %>
+ <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
index e3cce820520..485d31cd698 100644
--- a/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/two_factor_devices/new.html.erb
@@ -16,6 +16,6 @@
<p>
<%= styled_button_tag l(:button_continue), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), index_path, class: 'button' %>
+ <%= link_to t(:button_cancel), index_path, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
index 89fef9e6244..322f7a6dbba 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/edit.html.erb
@@ -18,6 +18,6 @@
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button' %>
+ <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
\ No newline at end of file
diff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
index e5194ea829f..30b141a47b9 100644
--- a/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/new.html.erb
@@ -18,6 +18,6 @@
<%= render partial: "form", locals: { f: f, webhook: @webhook } %>
<p>
<%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>
- <%= link_to t(:button_cancel), { action: :index }, class: 'button' %>
+ <%= link_to t(:button_cancel), { action: :index }, class: 'button -with-icon icon-cancel' %>
</p>
<% end %>
\ No newline at end of file