Mercurial > hg > soundsoftware-site
comparison .svn/pristine/25/25da0d3c14f76d4d61d0a700c479d9e89afb5581.svn-base @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1296:038ba2d95de8 | 1464:261b3d9a4903 |
---|---|
1 <%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %> | |
2 | |
3 <table class="list"> | |
4 <thead><tr> | |
5 <th><%= l(:field_name) %></th> | |
6 <th><%= l(:enumeration_system_activity) %></th> | |
7 <% TimeEntryActivity.new.available_custom_fields.each do |value| %> | |
8 <th><%= h value.name %></th> | |
9 <% end %> | |
10 <th><%= l(:field_active) %></th> | |
11 </tr></thead> | |
12 | |
13 <% @project.activities(true).each do |enumeration| %> | |
14 <%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> | |
15 <tr class="<%= cycle('odd', 'even') %>"> | |
16 <td class="name"> | |
17 <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> | |
18 <%= h(enumeration) %> | |
19 </td> | |
20 <td class="tick"><%= checked_image !enumeration.project %></td> | |
21 <% enumeration.custom_field_values.each do |value| %> | |
22 <td> | |
23 <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> | |
24 </td> | |
25 <% end %> | |
26 <td> | |
27 <%= ff.check_box :active %> | |
28 </td> | |
29 </tr> | |
30 <% end %> | |
31 <% end %> | |
32 </table> | |
33 | |
34 <div class="contextual"> | |
35 <%= link_to(l(:button_reset), project_enumerations_path(@project), | |
36 :method => :delete, | |
37 :data => {:confirm => l(:text_are_you_sure)}, | |
38 :class => 'icon icon-del') %> | |
39 </div> | |
40 | |
41 <%= submit_tag l(:button_save) %> | |
42 <% end %> |