* Fix it so that all edit forms show an error banner if the form has validation errors. Previously forms had to manually call `error_messages_for`, which not all forms did. * Fix it so that the full validation error message is shown next to each input attribute that had errors. Also update the styling of these error messages to look better.
17 lines
575 B
Plaintext
17 lines
575 B
Plaintext
<div id="c-pools">
|
|
<div id="a-edit">
|
|
<%= edit_form_for(@pool) do |f| %>
|
|
<h1>Edit Pool: <%= @pool.pretty_name %></h1>
|
|
|
|
<%= f.input :name, :as => :string, :input_html => { :value => @pool.pretty_name } %>
|
|
<%= f.input :description, as: :dtext %>
|
|
<%= f.input :post_ids_string, as: :text, label: "Posts" %>
|
|
<%= f.input :category, :collection => ["series", "collection"], :include_blank => false %>
|
|
<%= f.button :submit %>
|
|
<%= dtext_preview_button "pool_description" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|