Commit 838e7389e2d93562cefc2fb471eb421632158097

Authored by Victor Costa
1 parent 9458be63

Fix reject selection

views/tasks/_task.html.erb
... ... @@ -108,7 +108,3 @@
108 108 <% end %>
109 109  
110 110 </div><!-- class="task_box" -->
111   -
112   -<% if task.flagged_for_reproval? %>
113   - <script>jQuery("#decision-cancel-<%= task.id %>").click();</script>
114   -<% end %>
... ...
views/tasks/_task_reject_details.html.erb
... ... @@ -2,4 +2,8 @@
2 2 <div class="template-selection">
3 3 <%= labelled_form_field(_('Select a rejection email template:'), select_tag("tasks[#{task.id}][task][email_template_id]", options_from_collection_for_select(@email_templates, :id, :name), :include_blank => true, 'data-url' => url_for(:controller => 'email_templates', :action => 'show_parsed'))) %>
4 4 </div>
  5 +
  6 + <% if task.flagged_for_reproval? %>
  7 + <script>jQuery("#decision-cancel-<%= task.id %>").click();</script>
  8 + <% end %>
5 9 <% end %>
... ...