Improve new pool category select ui
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
<div id="c-new">
|
<div id="c-new">
|
||||||
<%= simple_form_for(@pool) do |f| %>
|
<%= simple_form_for(@pool) do |f| %>
|
||||||
<h1>New Pool</h1>
|
<h1>New Pool</h1>
|
||||||
<%= f.input :name, :as => :string %>
|
<%= f.input :name, :as => :string, :required => true %>
|
||||||
<%= dtext_field "pool", "description" %>
|
<%= dtext_field "pool", "description" %>
|
||||||
<%= f.input :post_ids, :label => "Posts" %>
|
<%= f.input :post_ids, :label => "Posts" %>
|
||||||
<%= f.input :category, :collection => ["series", "collection"], :include_blank => false %>
|
<%= f.input :category, :collection => ["series", "collection"], :include_blank => true, :selected => "", :required => true %>
|
||||||
<%= f.input :is_active %>
|
<%= f.input :is_active %>
|
||||||
<%= f.button :submit, "Submit" %>
|
<%= f.button :submit, "Submit" %>
|
||||||
<%= dtext_preview_button "pool", "description" %>
|
<%= dtext_preview_button "pool", "description" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user