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.
51 lines
2.2 KiB
51 lines
2.2 KiB
15 years ago
|
<%= render :partial => 'action_menu' %>
|
||
16 years ago
|
|
||
18 years ago
|
<h2><%=l(:label_workflow)%></h2>
|
||
|
|
||
|
<p><%=l(:text_workflow_edit)%>:</p>
|
||
|
|
||
16 years ago
|
<% form_tag({}, :method => 'get') do %>
|
||
15 years ago
|
<p>
|
||
13 years ago
|
<label><%=l(:label_role)%>:
|
||
|
<%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label>
|
||
15 years ago
|
|
||
13 years ago
|
<label><%=l(:label_tracker)%>:
|
||
|
<%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label>
|
||
14 years ago
|
|
||
15 years ago
|
<%= 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 %>
|
||
18 years ago
|
</p>
|
||
|
<% end %>
|
||
|
|
||
15 years ago
|
<% if @tracker && @role && @statuses.any? %>
|
||
14 years ago
|
<% form_tag({}, :id => 'workflow_form' ) do %>
|
||
|
<%= hidden_field_tag 'tracker_id', @tracker.id %>
|
||
|
<%= hidden_field_tag 'role_id', @role.id %>
|
||
|
<div class="autoscroll">
|
||
|
<%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
|
||
14 years ago
|
|
||
14 years ago
|
<fieldset class="collapsible" style="padding: 0; margin-top: 0.5em;">
|
||
13 years ago
|
<legend onclick="toggleFieldset(this);"><a href="javascript:"><%= l(:label_additional_workflow_transitions_for_author) %></a></legend>
|
||
14 years ago
|
<div id="author_workflows" style="margin: 0.5em 0 0.5em 0;">
|
||
|
<%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
<%= javascript_tag "hideFieldset($('author_workflows'))" unless @workflows['author'].present? %>
|
||
14 years ago
|
|
||
14 years ago
|
<fieldset class="collapsible" style="padding: 0;">
|
||
13 years ago
|
<legend onclick="toggleFieldset(this);"><a href="javascript:"><%= l(:label_additional_workflow_transitions_for_assignee) %></a></legend>
|
||
14 years ago
|
<div id="assignee_workflows" style="margin: 0.5em 0 0.5em 0;">
|
||
|
<%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
<%= javascript_tag "hideFieldset($('assignee_workflows'))" unless @workflows['assignee'].present? %>
|
||
|
</div>
|
||
|
<%= submit_tag l(:button_save) %>
|
||
|
<% end %>
|
||
18 years ago
|
<% end %>
|
||
17 years ago
|
|
||
17 years ago
|
<% html_title(l(:label_workflow)) -%>
|