Orbit/app/views/admin/components/_form.html.erb

32 lines
694 B
Plaintext
Raw Normal View History

<%= f.error_messages %>
2010-01-18 07:52:52 +00:00
<%= 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" %>
2010-01-28 09:42:55 +00:00
<%= 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>