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.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (629 Bytes)
| 1 | 0:513646585e45 | Chris | <%= 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 | 909:cbb26bc654de | Chris | <p><%= custom_field_tag_with_label :enumeration, value %></p> |
| 18 | 0:513646585e45 | Chris | <% end %>
|
| 19 | </div> |