To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / enumerations / _form.rhtml @ 441:cbce1fd3b1b7
History | View | Annotate | Download (628 Bytes)
| 1 |
<%= error_messages_for 'enumeration' %>
|
|---|---|
| 2 |
<div class="box"> |
| 3 |
<!--[form:optvalue]-->
|
| 4 |
<%= hidden_field 'enumeration', 'type' %>
|
| 5 |
|
| 6 |
<p><label for="enumeration_name"><%=l(:field_name)%></label> |
| 7 |
<%= text_field 'enumeration', 'name' %></p> |
| 8 |
|
| 9 |
<p><label for="enumeration_active"><%=l(:field_active)%></label> |
| 10 |
<%= check_box 'enumeration', 'active' %></p> |
| 11 |
|
| 12 |
<p><label for="enumeration_is_default"><%=l(:field_is_default)%></label> |
| 13 |
<%= check_box 'enumeration', 'is_default' %></p> |
| 14 |
<!--[eoform:optvalue]-->
|
| 15 |
|
| 16 |
<% @enumeration.custom_field_values.each do |value| %>
|
| 17 |
<p><%= custom_field_tag_with_label :enumeration, value %></p> |
| 18 |
<% end %>
|
| 19 |
</div>
|