Commit 03c28fea33ab9eac4342439988b496f6aa8201df
1 parent
838e7389
Exists in
master
and in
9 other branches
Fix reject selection
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
views/proposals_discussion_plugin_tasks/_task_reject_details.html.erb
... | ... | @@ -2,4 +2,7 @@ |
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 | + <% if task.flagged_for_reproval? %> | |
6 | + <script>jQuery("#decision-cancel-<%= task.id %>").click();</script> | |
7 | + <% end %> | |
5 | 8 | <% end %> | ... | ... |
views/tasks/_task_reject_details.html.erb
... | ... | @@ -2,8 +2,4 @@ |
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 %> | |
9 | 5 | <% end %> | ... | ... |