##// END OF EJS Templates
Lists can be reordered with drag and drop (#12909)....
Lists can be reordered with drag and drop (#12909). git-svn-id: http://svn.redmine.org/redmine/trunk@15336 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13661:b778c51e9049
r14954:42b5c332b2c2
Show More
_activities.html.erb
42 lines | 1.3 KiB | text/plain | TextLexer
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753
<table class="list">
<thead><tr>
<th><%= l(:field_name) %></th>
<th><%= l(:enumeration_system_activity) %></th>
<% TimeEntryActivity.new.available_custom_fields.each do |value| %>
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <th><%= value.name %></th>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <% end %>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <th><%= l(:field_active) %></th>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 </tr></thead>
<% @project.activities(true).each do |enumeration| %>
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <tr class="<%= cycle('odd', 'even') %>">
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td class="name">
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <%= enumeration %>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 </td>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td class="tick"><%= checked_image !enumeration.project %></td>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <% enumeration.custom_field_values.each do |value| %>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
</td>
<% end %>
Jean-Philippe Lang
Removed deprecated align and width html attributes (#15307)....
r12038 <td>
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 <%= ff.check_box :active %>
</td>
</tr>
<% end %>
<% end %>
</table>
<div class="contextual">
Toshi MARUYAMA
route: use ":controller" instead of ":as" for project_enumerations...
r8450 <%= link_to(l(:button_reset), project_enumerations_path(@project),
Toshi MARUYAMA
replace tabs to spaces at app/views/projects/settings/_activities.html.erb...
r7131 :method => :delete,
Jean-Philippe Lang
Deprecated :confirm => 'Text' option....
r9754 :data => {:confirm => l(:text_are_you_sure)},
Toshi MARUYAMA
set svn:eol-style=native app/views/projects/settings/_activities.rhtml....
r5753 :class => 'icon icon-del') %>
</div>
<%= submit_tag l(:button_save) %>
<% end %>