diff options
Diffstat (limited to 'app/views/enumerations/list.rhtml')
-rw-r--r-- | app/views/enumerations/list.rhtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/enumerations/list.rhtml b/app/views/enumerations/list.rhtml index 485dec71c..8143ad0f3 100644 --- a/app/views/enumerations/list.rhtml +++ b/app/views/enumerations/list.rhtml @@ -1,9 +1,9 @@ <h2><%=l(:label_enumerations)%></h2> -<% Enumeration::OPTIONS.each do |option, params| %> -<h3><%= l(params[:label]) %></h3> +<% Enumeration.get_subclasses.each do |klass| %> +<h3><%= l(klass::OptionName) %></h3> -<% enumerations = Enumeration.values(option) %> +<% enumerations = klass.all %> <% if enumerations.any? %> <table class="list"> <% enumerations.each do |enumeration| %> @@ -20,7 +20,7 @@ <% reset_cycle %> <% end %> -<p><%= link_to l(:label_enumeration_new), { :action => 'new', :opt => option } %></p> +<p><%= link_to l(:label_enumeration_new), { :action => 'new', :type => klass.name } %></p> <% end %> <% html_title(l(:label_enumerations)) -%> |