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:
1 parent
eabc04d836
commit
96f83cc8f0
472 files changed
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<%= error_messages_for 'enumeration' %>
|
||||
<div class="box">
|
||||
<!--[form:optvalue]-->
|
||||
<%= hidden_field 'enumeration', 'opt' %>
|
||||
|
||||
<p><label for="enumeration_name"><%=l(:field_name)%></label>
|
||||
<%= text_field 'enumeration', 'name' %></p>
|
||||
<!--[eoform:optvalue]-->
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<h2><%=l(:label_enumerations)%></h2>
|
||||
|
||||
<%= start_form_tag({:action => 'update', :id => @enumeration}, :class => "tabular") %>
|
||||
<%= render :partial => 'form' %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<%= end_form_tag %>
|
||||
|
||||
<%= start_form_tag :action => 'destroy', :id => @enumeration %>
|
||||
<%= submit_tag l(:button_delete) %>
|
||||
<%= end_form_tag %>
|
||||
@@ -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 %>
|
||||
@@ -0,0 +1,6 @@
|
||||
<h2><%= l(@enumeration.option_name) %>: <%=l(:label_enumeration_new)%></h2>
|
||||
|
||||
<%= start_form_tag({:action => 'create'}, :class => "tabular") %>
|
||||
<%= render :partial => 'form' %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= end_form_tag %>
|
||||
Reference in new issue
Block a user