Adds a button to duplicate a workflow permission to the next statuses.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11904 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4dbe2e7062
commit
69496179d4
|
@ -63,6 +63,7 @@
|
|||
<% for status in @statuses -%>
|
||||
<td align="center" class="<%= @permissions[status.id][field] %>">
|
||||
<%= field_permission_tag(@permissions, status, field) %>
|
||||
<% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %>
|
||||
</td>
|
||||
<% end -%>
|
||||
</tr>
|
||||
|
@ -82,6 +83,7 @@
|
|||
<% for status in @statuses -%>
|
||||
<td align="center" class="<%= @permissions[status.id][field.id.to_s] %>">
|
||||
<%= field_permission_tag(@permissions, status, field) %>
|
||||
<% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %>
|
||||
</td>
|
||||
<% end -%>
|
||||
</tr>
|
||||
|
@ -93,3 +95,12 @@
|
|||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$("a.repeat-value").click(function(e){
|
||||
e.preventDefault();
|
||||
var td = $(this).closest('td');
|
||||
var selected = td.find("select").find(":selected").val();
|
||||
td.nextAll('td').find("select").val(selected);
|
||||
});
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue