##// END OF EJS Templates
UsersController tests cleanup....
UsersController tests cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3580:a925435b2943
r4387:758f2f0a4efd
Show More
edit.rhtml
73 lines | 2.4 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Adds workflow copy functionality (#1727)....
r3040 <%= render :partial => 'action_menu' %>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <h2><%=l(:label_workflow)%></h2>
<p><%=l(:text_workflow_edit)%>:</p>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <% form_tag({}, :method => 'get') do %>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <p>
<label><%=l(:label_role)%>:</label>
<%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %>
<label><%=l(:label_tracker)%>:</label>
<%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %>
Jean-Philippe Lang
By default, only show statuses that are used by the tracker on the workflow edit view....
r3074
<%= hidden_field_tag 'used_statuses_only', '0' %>
<label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label>
</p>
<p>
<%= submit_tag l(:button_edit), :name => nil %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </p>
<% end %>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033
<% if @tracker && @role && @statuses.any? %>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <% form_tag({}, :id => 'workflow_form' ) do %>
<%= hidden_field_tag 'tracker_id', @tracker.id %>
<%= hidden_field_tag 'role_id', @role.id %>
Jean-Philippe Lang
Removes overflow:auto on #content which broke the fix in r2118 (#4724)....
r3262 <div class="autoscroll">
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <table class="list">
<thead>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <th align="left"><%=l(:label_current_status)%></th>
<th align="center" colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr>
<tr>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <td></td>
<% for new_status in @statuses %>
Jean-Philippe Lang
Add "Check/Unckeck all" buttons to rows and columns on workflow edit screen (#3201)....
r3580 <td width="<%= 75 / @statuses.size %>%" align="center">
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.new-status-#{new_status.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
<%= new_status.name %>
</td>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 </thead>
<tbody>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% for old_status in @statuses %>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
Add "Check/Unckeck all" buttons to rows and columns on workflow edit screen (#3201)....
r3580 <td>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.old-status-#{old_status.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
<%= old_status.name %>
</td>
Jean-Philippe Lang
Allows multiple roles on the same project (#706). Prerequisite for user groups feature....
r2627 <% new_status_ids_allowed = old_status.find_new_statuses_allowed_to([@role], @tracker).collect(&:id) -%>
Jean-Philippe Lang
Performance improvement on workflow setup screen....
r944 <% for new_status in @statuses -%>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 <td align="center">
Jean-Philippe Lang
Add "Check/Unckeck all" buttons to rows and columns on workflow edit screen (#3201)....
r3580 <%= check_box_tag "issue_status[#{ old_status.id }][]", new_status.id, new_status_ids_allowed.include?(new_status.id),
:class => "old-status-#{old_status.id} new-status-#{new_status.id}" %>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 </td>
Jean-Philippe Lang
Performance improvement on workflow setup screen....
r944 <% end -%>
Jean-Philippe Lang
Cleaning workflow edit view....
r3033 </tr>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 </tbody>
</table>
Jean-Philippe Lang
Removes overflow:auto on #content which broke the fix in r2118 (#4724)....
r3262 </div>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <p><%= check_all_links 'workflow_form' %></p>
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <%= submit_tag l(:button_save) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
<% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_workflow)) -%>