diff --git a/app/views/enumerations/_form.html.erb b/app/views/enumerations/_form.html.erb index 21b948166d..d64b087a1b 100644 --- a/app/views/enumerations/_form.html.erb +++ b/app/views/enumerations/_form.html.erb @@ -1,19 +1,19 @@ <%= error_messages_for 'enumeration' %>
-<%= hidden_field 'enumeration', 'type' %> +<%= hidden_field 'enumeration', 'type' %> -

-<%= text_field 'enumeration', 'name' %>

+

+<%= text_field 'enumeration', 'name' %>

-

-<%= check_box 'enumeration', 'active' %>

+

+<%= check_box 'enumeration', 'active' %>

-

-<%= check_box 'enumeration', 'is_default' %>

+

+<%= check_box 'enumeration', 'is_default' %>

<% @enumeration.custom_field_values.each do |value| %> -

<%= custom_field_tag_with_label :enumeration, value %>

+

<%= custom_field_tag_with_label :enumeration, value %>

<% end %>
diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb index 3b1191c7bc..38e2109f82 100644 --- a/app/views/enumerations/index.html.erb +++ b/app/views/enumerations/index.html.erb @@ -7,24 +7,24 @@ <% if enumerations.any? %> - - - - - + + + + + <% enumerations.each do |enumeration| %> - - - - - + + + + + :method => :post, + :confirm => l(:text_are_you_sure), + :class => 'icon icon-del' %> + <% end %>
<%= l(:field_name) %><%= l(:field_is_default) %><%= l(:field_active) %> <%= Enumeration.human_attribute_name(:name) %><%= Enumeration.human_attribute_name(:is_default) %><%= Enumeration.human_attribute_name(:active) %>
<%= link_to h(enumeration), :action => 'edit', :id => enumeration %><%= checked_image enumeration.is_default? %><%= checked_image enumeration.active? %><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :method => :put) %> + <%= link_to h(enumeration), :action => 'edit', :id => enumeration %><%= checked_image enumeration.is_default? %><%= checked_image enumeration.active? %><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :method => :put) %> <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, - :method => :post, - :confirm => l(:text_are_you_sure), - :class => 'icon icon-del' %> -