diff --git a/app/views/export_card_configurations/_form.html.erb b/app/views/export_card_configurations/_form.html.erb index 5898ef1233..fc9d07cae8 100644 --- a/app/views/export_card_configurations/_form.html.erb +++ b/app/views/export_card_configurations/_form.html.erb @@ -24,19 +24,17 @@ See doc/COPYRIGHT.md for more details. ++#%> -
-

<%= f.error_messages %>

- -

<%= f.text_field :name, :required => true %>

-

<%= f.text_area :description, :class => "wiki-edit" %>

-

<%= f.text_field :per_page, :required => true %>

-

<%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %>

-

<%= f.select :orientation, [:landscape, :portrait], :required => true %>

- -<% field = (f.text_area :rows, :required => true, :class => "wiki-edit") %> -<%= render partial: "rows_format_help", locals: { field: field } %> - - + +

<%= f.text_field :name, :required => true %>

+

<%= f.text_area :description, :class => "wiki-edit" %>

+

<%= f.text_field :per_page, :required => true %>

+

<%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %>

+

<%= f.select :orientation, [:landscape, :portrait], :required => true %>

+ + <% field = (f.text_area :rows, :required => true, :class => "wiki-edit") %> + <%= render partial: "rows_format_help", locals: { field: field } %> + +
<%= submit_tag l(@config.new_record? ? :button_create : :button_save) %> diff --git a/app/views/export_card_configurations/edit.html.erb b/app/views/export_card_configurations/edit.html.erb index db17af79ac..5f4e008f2f 100644 --- a/app/views/export_card_configurations/edit.html.erb +++ b/app/views/export_card_configurations/edit.html.erb @@ -26,6 +26,8 @@ See doc/COPYRIGHT.md for more details. <% html_title l(:label_administration), "#{l(:label_edit)} #{l(:label_export_card_configuration)} #{@config.name}" %> +<%= error_messages_for 'config' %> +

<%= link_to t(:label_export_card_configuration_plural), pdf_export_export_card_configurations_path %> » <%= h(@config.name) %>

<%= form_for @config, :method => :put, url: pdf_export_export_card_configuration_path(@config.id), :builder => TabularFormBuilder do |f| %> diff --git a/app/views/export_card_configurations/new.html.erb b/app/views/export_card_configurations/new.html.erb index 7551786c21..4f2f8a1530 100644 --- a/app/views/export_card_configurations/new.html.erb +++ b/app/views/export_card_configurations/new.html.erb @@ -24,9 +24,10 @@ See doc/COPYRIGHT.md for more details. ++#%> - <% html_title l(:label_administration), l(:label_export_card_configuration_new) %> +<%= error_messages_for 'config' %> +

<%= link_to t(:label_export_card_configuration_plural), pdf_export_export_card_configurations_path %> » <%= t(:label_export_card_configuration_new) %>

<%= form_for @config, :method => :post, url: pdf_export_export_card_configurations_path, :builder => TabularFormBuilder do |f| %>