annotate .svn/pristine/29/29a1561941007c06e8cd16ad09f34224b899351f.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= render :partial => 'action_menu' %>
Chris@1464 2
Chris@1464 3 <%= title l(:label_workflow) %>
Chris@1464 4
Chris@1464 5 <div class="tabs">
Chris@1464 6 <ul>
Chris@1464 7 <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li>
Chris@1464 8 <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker} %></li>
Chris@1464 9 </ul>
Chris@1464 10 </div>
Chris@1464 11
Chris@1464 12 <p><%=l(:text_workflow_edit)%>:</p>
Chris@1464 13
Chris@1464 14 <%= form_tag({}, :method => 'get') do %>
Chris@1464 15 <p>
Chris@1464 16 <label><%=l(:label_role)%>:
Chris@1464 17 <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %></label>
Chris@1464 18
Chris@1464 19 <label><%=l(:label_tracker)%>:
Chris@1464 20 <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %></label>
Chris@1464 21
Chris@1464 22 <%= submit_tag l(:button_edit), :name => nil %>
Chris@1464 23
Chris@1464 24 <%= hidden_field_tag 'used_statuses_only', '0' %>
Chris@1464 25 <label><%= check_box_tag 'used_statuses_only', '1', @used_statuses_only %> <%= l(:label_display_used_statuses_only) %></label>
Chris@1464 26
Chris@1464 27 </p>
Chris@1464 28 <% end %>
Chris@1464 29
Chris@1464 30 <% if @tracker && @role && @statuses.any? %>
Chris@1464 31 <%= form_tag({}, :id => 'workflow_form' ) do %>
Chris@1464 32 <%= hidden_field_tag 'tracker_id', @tracker.id %>
Chris@1464 33 <%= hidden_field_tag 'role_id', @role.id %>
Chris@1464 34 <%= hidden_field_tag 'used_statuses_only', params[:used_statuses_only] %>
Chris@1464 35 <div class="autoscroll">
Chris@1464 36 <%= render :partial => 'form', :locals => {:name => 'always', :workflows => @workflows['always']} %>
Chris@1464 37
Chris@1464 38 <fieldset class="collapsible" style="padding: 0; margin-top: 0.5em;">
Chris@1464 39 <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_author) %></legend>
Chris@1464 40 <div id="author_workflows" style="margin: 0.5em 0 0.5em 0;">
Chris@1464 41 <%= render :partial => 'form', :locals => {:name => 'author', :workflows => @workflows['author']} %>
Chris@1464 42 </div>
Chris@1464 43 </fieldset>
Chris@1464 44 <%= javascript_tag "hideFieldset($('#author_workflows'))" unless @workflows['author'].present? %>
Chris@1464 45
Chris@1464 46 <fieldset class="collapsible" style="padding: 0;">
Chris@1464 47 <legend onclick="toggleFieldset(this);"><%= l(:label_additional_workflow_transitions_for_assignee) %></legend>
Chris@1464 48 <div id="assignee_workflows" style="margin: 0.5em 0 0.5em 0;">
Chris@1464 49 <%= render :partial => 'form', :locals => {:name => 'assignee', :workflows => @workflows['assignee']} %>
Chris@1464 50 </div>
Chris@1464 51 </fieldset>
Chris@1464 52 <%= javascript_tag "hideFieldset($('#assignee_workflows'))" unless @workflows['assignee'].present? %>
Chris@1464 53 </div>
Chris@1464 54 <%= submit_tag l(:button_save) %>
Chris@1464 55 <% end %>
Chris@1464 56 <% end %>