mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
21
app/views/enumerations/list.rhtml
Normal file
21
app/views/enumerations/list.rhtml
Normal file
@@ -0,0 +1,21 @@
|
||||
<h2><%=l(:label_enumerations)%></h2>
|
||||
|
||||
<% Enumeration::OPTIONS.each do |option, name| %>
|
||||
|
||||
<% if @params[:opt]==option %>
|
||||
|
||||
<p><%= image_tag 'dir_open' %> <b><%= l(name) %></b></p>
|
||||
<ul>
|
||||
<% for value in Enumeration.find(:all, :conditions => ["opt = ?", option]) %>
|
||||
<li><%= link_to value.name, :action => 'edit', :id => value %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><%= link_to ('» ' + l(:label_new)), :action => 'new', :opt => option %></li>
|
||||
</ul>
|
||||
|
||||
<% else %>
|
||||
<p><%= image_tag 'dir' %> <%= link_to l(name), :opt => option %></p>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user