From 3a215fc2e5d5a6ebf013b6e298d9f24db7bbc40f Mon Sep 17 00:00:00 2001 From: Splines Date: Mon, 30 Oct 2023 17:37:38 +0100 Subject: [PATCH] Move Send button before Cancel button --- app/views/feedbacks/_feedback_form.html.erb | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/feedbacks/_feedback_form.html.erb b/app/views/feedbacks/_feedback_form.html.erb index d7d7edf68..18694dbe4 100644 --- a/app/views/feedbacks/_feedback_form.html.erb +++ b/app/views/feedbacks/_feedback_form.html.erb @@ -13,13 +13,13 @@ feedback_mail: mail_to(DefaultSetting::FEEDBACK_EMAIL, t('basics.mail_noun'))) %> <%= form_with model: Feedback.new, remote: true do |f| %> - <%# Title %> +
<%= f.text_field :title, class: 'form-control', placeholder: '_' %> <%= f.label :title, t('feedback.title') %>
- <%# Comment %> +
<%= f.text_area :feedback, class: 'form-control', @@ -33,7 +33,7 @@ <%= f.label :feedback, t('feedback.comment') %>
- <%# Email contact %> +
<%= f.check_box :can_contact, checked: 'checked', @@ -43,20 +43,20 @@ class: 'form-check-label' %>
- <%# Submit %> - <%# Dummy submit button, the actual submit button is in the modal footer %> + + <%= f.submit 'Submit', id: 'submit-feedback-form-btn', style: 'display: none;' %> <% end %>