##// END OF EJS Templates
Adds a setting to choose which role is given to a non-admin user who creates a project (#1007)....
Adds a setting to choose which role is given to a non-admin user who creates a project (#1007). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2754 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2627:7dccf9fda6f3
r2655:52b5b2920329
Show More
edit.rhtml
66 lines | 1.8 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <div class="contextual">
<%= link_to l(:field_summary), :action => 'index' %>
</div>
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
Application layout refactored....
r736 <p><label for="role_id"><%=l(:label_role)%>:</label>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <select name="role_id">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
Jean-Philippe Lang
Application layout refactored....
r736 </select>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Application layout refactored....
r736 <label for="tracker_id"><%=l(:label_tracker)%>:</label>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <select name="tracker_id">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
</select>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <%= 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
Slight changes to the workflow setup screen....
r1914 <% unless @tracker.nil? or @role.nil? or @statuses.empty? %>
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
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
Slight changes to the workflow setup screen....
r1914 <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>
<td></td>
<% for new_status in @statuses %>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <td width="<%= 75 / @statuses.size %>%" align="center"><%= new_status.name %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
</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
Slight changes to the workflow setup screen....
r1914 <tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
Performance improvement on workflow setup screen....
r944 <td><%= 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
added svn:eol-style native property on /app files...
r330 <td align="center">
Jean-Philippe Lang
Performance improvement on workflow setup screen....
r944 <input type="checkbox"
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 name="issue_status[<%= old_status.id %>][]"
value="<%= new_status.id %>"
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 <%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %> />
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
Jean-Philippe Lang
Performance improvement on workflow setup screen....
r944 <% end -%>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr>
<% end %>
Jean-Philippe Lang
Slight changes to the workflow setup screen....
r1914 </tbody>
</table>
<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)) -%>