orbit-basic/app/views/admin/components/_form.html.erb

32 lines
694 B
Plaintext

<%= f.error_messages %>
<%= f.hidden_field :parent_name %>
<p>
<%= f.label :name, "Name" %>
<%= f.text_field :name, :class => 'text' %>
</p>
<p>
<%= f.label :title, "Title en" %>
<%= f.text_field :title_en, :class => 'text' %>
</p>
<p>
<%= f.label :layout_name, "Layout Name" %>
<%= f.select :layout_name, Layout.all.map{ |l| [l.description, l.name] } %>
</p>
<p>
<%= f.label :title, "Title zh_tw" %>
<%= f.text_field :title_zh_tw, :class => 'text' %>
</p>
<p>
<%= f.label :is_published, "Is Published" %>
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
</p>
<p>
<%= f.label :engine_name, "Choose Engine" %>
<%= f.text_field :engine_name %>
</p>