kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.8 KiB
65 lines
1.8 KiB
16 years ago
|
<div class="contextual">
|
||
|
<%= link_to l(:field_summary), :action => 'index' %>
|
||
|
</div>
|
||
|
|
||
18 years ago
|
<h2><%=l(:label_workflow)%></h2>
|
||
|
|
||
|
<p><%=l(:text_workflow_edit)%>:</p>
|
||
|
|
||
16 years ago
|
<% form_tag({}, :method => 'get') do %>
|
||
17 years ago
|
<p><label for="role_id"><%=l(:label_role)%>:</label>
|
||
18 years ago
|
<select id="role_id" name="role_id">
|
||
|
<%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
|
||
17 years ago
|
</select>
|
||
18 years ago
|
|
||
17 years ago
|
<label for="tracker_id"><%=l(:label_tracker)%>:</label>
|
||
18 years ago
|
<select id="tracker_id" name="tracker_id">
|
||
|
<%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
|
||
|
</select>
|
||
16 years ago
|
<%= submit_tag l(:button_edit), :name => nil %>
|
||
18 years ago
|
</p>
|
||
|
<% end %>
|
||
|
|
||
|
|
||
|
|
||
|
<% unless @tracker.nil? or @role.nil? %>
|
||
16 years ago
|
<% form_tag({}, :id => 'workflow_form' ) do %>
|
||
|
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
||
|
<%= hidden_field_tag 'role_id', @role.id %>
|
||
18 years ago
|
<div class="box">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td align="center"><strong><%=l(:label_current_status)%></strong></td>
|
||
|
<td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<% for new_status in @statuses %>
|
||
|
<td width="80" align="center"><%= new_status.name %></td>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
|
||
|
<% for old_status in @statuses %>
|
||
|
<tr>
|
||
17 years ago
|
<td><%= old_status.name %></td>
|
||
|
<% new_status_ids_allowed = old_status.find_new_statuses_allowed_to(@role, @tracker).collect(&:id) -%>
|
||
|
<% for new_status in @statuses -%>
|
||
18 years ago
|
<td align="center">
|
||
17 years ago
|
<input type="checkbox"
|
||
18 years ago
|
name="issue_status[<%= old_status.id %>][]"
|
||
|
value="<%= new_status.id %>"
|
||
17 years ago
|
<%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %>>
|
||
18 years ago
|
</td>
|
||
17 years ago
|
<% end -%>
|
||
18 years ago
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
17 years ago
|
<p><%= check_all_links 'workflow_form' %></p>
|
||
|
</div>
|
||
19 years ago
|
<%= submit_tag l(:button_save) %>
|
||
18 years ago
|
<% end %>
|
||
|
|
||
|
<% end %>
|
||
17 years ago
|
|
||
17 years ago
|
<% html_title(l(:label_workflow)) -%>
|