adapt error messages to core change

pull/6827/head
Christian Ratz 11 years ago
parent e51ad36406
commit 349a938167
  1. 24
      app/views/export_card_configurations/_form.html.erb
  2. 2
      app/views/export_card_configurations/edit.html.erb
  3. 3
      app/views/export_card_configurations/new.html.erb

@ -24,19 +24,17 @@ See doc/COPYRIGHT.md for more details.
++#%>
<div class="box tabular">
<p><%= f.error_messages %></p>
<!--[form:export_card_configuration]-->
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.text_area :description, :class => "wiki-edit" %></p>
<p><%= f.text_field :per_page, :required => true %></p>
<p><%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %></p>
<P><%= f.select :orientation, [:landscape, :portrait], :required => true %></p>
<% field = (f.text_area :rows, :required => true, :class => "wiki-edit") %>
<%= render partial: "rows_format_help", locals: { field: field } %>
<!--[eoform:export_card_configuration]-->
<!--[form:export_card_configuration]-->
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.text_area :description, :class => "wiki-edit" %></p>
<p><%= f.text_field :per_page, :required => true %></p>
<p><%= f.text_field :page_size, :required => true, :value => "A4", :readonly => true %></p>
<P><%= f.select :orientation, [:landscape, :portrait], :required => true %></p>
<% field = (f.text_area :rows, :required => true, :class => "wiki-edit") %>
<%= render partial: "rows_format_help", locals: { field: field } %>
<!--[eoform:export_card_configuration]-->
</div>
<%= submit_tag l(@config.new_record? ? :button_create : :button_save) %>

@ -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' %>
<h2><%= link_to t(:label_export_card_configuration_plural), pdf_export_export_card_configurations_path %> &#187; <%= h(@config.name) %></h2>
<%= form_for @config, :method => :put, url: pdf_export_export_card_configuration_path(@config.id), :builder => TabularFormBuilder do |f| %>

@ -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' %>
<h2><%= link_to t(:label_export_card_configuration_plural), pdf_export_export_card_configurations_path %> &#187; <%= t(:label_export_card_configuration_new) %></h2>
<%= form_for @config, :method => :post, url: pdf_export_export_card_configurations_path, :builder => TabularFormBuilder do |f| %>

Loading…
Cancel
Save