To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / workflows / edit.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (2.13 KB)
| 1 | 0:513646585e45 | Chris | <%= render :partial => 'action_menu' %>
|
|---|---|---|---|
| 2 | |||
| 3 | <h2><%=l(:label_workflow)%></h2> |
||
| 4 | |||
| 5 | <p><%=l(:text_workflow_edit)%>:</p> |
||
| 6 | |||
| 7 | <% form_tag({}, :method => 'get') do %>
|
||
| 8 | <p>
|
||
| 9 | <label><%=l(:label_role)%>:</label> |
||
| 10 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %>
|
||
| 11 | |||
| 12 | <label><%=l(:label_tracker)%>:</label> |
||
| 13 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %>
|
||
| 14 | |||
| 15 | <%= hidden_field_tag 'used_statuses_only', '0' %>
|
||
| 16 | <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label> |
||
| 17 | </p>
|
||
| 18 | <p>
|
||
| 19 | <%= submit_tag l(:button_edit), :name => nil %>
|
||
| 20 | </p>
|
||
| 21 | <% end %>
|
||
| 22 | |||
| 23 | <% if @tracker && @role && @statuses.any? %>
|
||
| 24 | 245:051f544170fe | Chris | <% form_tag({}, :id => 'workflow_form' ) do %>
|
| 25 | <%= hidden_field_tag 'tracker_id', @tracker.id %>
|
||
| 26 | <%= hidden_field_tag 'role_id', @role.id %>
|
||
| 27 | <div class="autoscroll"> |
||
| 28 | <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
|
||
| 29 | |||
| 30 | <fieldset class="collapsible" style="padding: 0; margin-top: 0.5em;"> |
||
| 31 | 441:cbce1fd3b1b7 | Chris | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_author) %></legend> |
| 32 | 245:051f544170fe | Chris | <div id="author_workflows" style="margin: 0.5em 0 0.5em 0;"> |
| 33 | <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %>
|
||
| 34 | </div>
|
||
| 35 | </fieldset>
|
||
| 36 | <%= javascript_tag "hideFieldset($('author_workflows'))" unless @workflows['author'].present? %>
|
||
| 37 | |||
| 38 | <fieldset class="collapsible" style="padding: 0;"> |
||
| 39 | 441:cbce1fd3b1b7 | Chris | <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_assignee) %></legend> |
| 40 | 245:051f544170fe | Chris | <div id="assignee_workflows" style="margin: 0.5em 0 0.5em 0;"> |
| 41 | <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %>
|
||
| 42 | </div>
|
||
| 43 | </fieldset>
|
||
| 44 | <%= javascript_tag "hideFieldset($('assignee_workflows'))" unless @workflows['assignee'].present? %>
|
||
| 45 | </div>
|
||
| 46 | <%= submit_tag l(:button_save) %>
|
||
| 47 | <% end %>
|
||
| 48 | 0:513646585e45 | Chris | <% end %>
|
| 49 | |||
| 50 | <% html_title(l(:label_workflow)) -%> |