|
|
|
@ -2,12 +2,12 @@ |
|
|
|
|
|
|
|
|
|
<table class="list"> |
|
|
|
|
<thead><tr> |
|
|
|
|
<th><%= l(:field_name) %></th> |
|
|
|
|
<th><%= Enumeration.human_attribute_name(:name) %></th> |
|
|
|
|
<th><%= l(:enumeration_system_activity) %></th> |
|
|
|
|
<% TimeEntryActivity.new.available_custom_fields.each do |value| %> |
|
|
|
|
<th><%= h value.name %></th> |
|
|
|
|
<th><%= h value.name %></th> |
|
|
|
|
<% end %> |
|
|
|
|
<th style="width:15%;"><%= l(:field_active) %></th> |
|
|
|
|
<th style="width:15%;"><%= Enumeration.human_attribute_name(:active) %></th> |
|
|
|
|
</tr></thead> |
|
|
|
|
|
|
|
|
|
<% @project.activities(true).each do |enumeration| %> |
|
|
|
@ -19,9 +19,9 @@ |
|
|
|
|
</td> |
|
|
|
|
<td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td> |
|
|
|
|
<% enumeration.custom_field_values.each do |value| %> |
|
|
|
|
<td align="center"> |
|
|
|
|
<%= custom_field_tag "enumerations[#{enumeration.id}]", value %> |
|
|
|
|
</td> |
|
|
|
|
<td align="center"> |
|
|
|
|
<%= custom_field_tag "enumerations[#{enumeration.id}]", value %> |
|
|
|
|
</td> |
|
|
|
|
<% end %> |
|
|
|
|
<td align="center" style="width:15%;"> |
|
|
|
|
<%= label_tag "enumerations_#{enumeration.id}_active", l(:description_active), :class => "hidden-for-sighted" %> |
|
|
|
@ -34,8 +34,8 @@ |
|
|
|
|
|
|
|
|
|
<div class="contextual"> |
|
|
|
|
<%= link_to(l(:button_reset), project_enumerations_path(@project), |
|
|
|
|
:method => :delete, |
|
|
|
|
:confirm => l(:text_are_you_sure), |
|
|
|
|
:method => :delete, |
|
|
|
|
:confirm => l(:text_are_you_sure), |
|
|
|
|
:class => 'icon icon-del') %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|