2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'enumeration' %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<div class="box">
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[form:optvalue]-->
|
2009-05-31 03:30:36 +04:00
|
|
|
<%= hidden_field 'enumeration', 'type' %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="enumeration_name"><%=l(:field_name)%></label>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'enumeration', 'name' %></p>
|
2007-10-05 21:44:15 +04:00
|
|
|
|
2009-10-22 02:34:28 +04:00
|
|
|
<p><label for="enumeration_active"><%=l(:field_active)%></label>
|
|
|
|
<%= check_box 'enumeration', 'active' %></p>
|
|
|
|
|
2007-10-05 21:44:15 +04:00
|
|
|
<p><label for="enumeration_is_default"><%=l(:field_is_default)%></label>
|
|
|
|
<%= check_box 'enumeration', 'is_default' %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:optvalue]-->
|
2009-10-22 02:34:22 +04:00
|
|
|
|
|
|
|
<% @enumeration.custom_field_values.each do |value| %>
|
2011-09-18 03:07:15 +04:00
|
|
|
<p><%= custom_field_tag_with_label :enumeration, value %></p>
|
2009-10-22 02:34:22 +04:00
|
|
|
<% end %>
|
2009-10-22 02:34:28 +04:00
|
|
|
</div>
|