diff --git a/views/proposals_discussion_plugin_tasks/_task.html.erb b/views/proposals_discussion_plugin_tasks/_task.html.erb
new file mode 100644
index 0000000..a1f1651
--- /dev/null
+++ b/views/proposals_discussion_plugin_tasks/_task.html.erb
@@ -0,0 +1,110 @@
+
+ <%= tag :a, name: "task-#{task.id}" %>
+ <%= render :partial => 'task_icon', :locals => {:task => task} %>
+
+ <% if !@view_only && profile.organization? && @responsible_candidates.present? %>
+
+ <%= _('Assign to:') %>
+
+ <% change_responsible_url = url_for :action => :change_responsible, :controller => :tasks %>
+ <%= select_tag "tasks[#{task.id}][responsible]", options_from_collection_for_select(@responsible_candidates, :id, :name, task.responsible.present? ? task.responsible.id : nil), :include_blank => true, :onchange => "change_task_responsible(this);", 'data-old-responsible' => task.responsible.present? ? task.responsible.id : nil, 'data-task' => task.id, 'data-url' => change_responsible_url %>
+
+
+ <% end %>
+
+ <% if @view_only && task.responsible.present? %>
+
+ <%= _('Assigned to:') %>
+ <%= task.responsible.name %>
+
+ <% end %>
+
+
+ <% unless @view_only %>
+ <%=
+ labelled_radio_button(_("Accept"), "tasks[#{task.id}][decision]", 'finish', task.flagged_for_approval? || task.default_decision == 'accept',
+ :id => "decision-finish-#{task.id}",
+ :class => 'task_accept_radio',
+ :disabled => task.accept_disabled?,
+ :task_id => "#{task.id}") +
+ labelled_radio_button(_("Reject"), "tasks[#{task.id}][decision]", 'cancel', task.flagged_for_reproval? || task.default_decision == 'reject',
+ :id => "decision-cancel-#{task.id}",
+ :class => 'task_reject_radio',
+ :disabled => task.reject_disabled?,
+ :task_id => "#{task.id}") +
+ labelled_radio_button(_("Skip"), "tasks[#{task.id}][decision]", 'skip', task.default_decision == 'skip' && task.unflagged?,
+ :id => "decision-skip-#{task.id}",
+ :class => 'task_skip_radio',
+ :disabled => task.skip_disabled?,
+ :task_id => "#{task.id}")
+ %>
+ <% end %>
+
+
+
<%= show_time(task.created_at) %>
+
+ <%= render :partial => 'task_title', :locals => {:task => task} %>
+
+
+ <%= task_information(task) %>
+
+
+
+ <%= fields_for "tasks[#{task.id}][task]", task do |f| %>
+ <% if task.accept_details and !@view_only %>
+
+ <%= render :partial => partial_for_class(task.class, nil, :accept_details), :locals => {:task => task, :f => f} %>
+
+ <% end %>
+
+ <% if task.reject_details and !@view_only %>
+
+ <%= render :partial => partial_for_class(task.class, nil, :reject_details), :locals => {:task => task, :f => f} %>
+
+ <% end %>
+
+ <% if @view_only %>
+
+ <% end %>
+ <%#= select_tag "tasks[#{task.id}][setting][evaluation_flag]",
+ options_for_select(
+ [_('FLAGGED_FOR_APPROVAL'),_('FLAGGED_FOR_REPROVAL')],(task.flagged_status.present? ? task.flagged_status : nil)
+ ),
+ {
+ :include_blank => true,
+ :onchange => "change_flagged_status(this);",
+ 'data-old-responsible' => task.flagged_status.present? ? task.flagged_status.id : nil,
+ 'data-task' => task.id, 'data-url' => 'change_flagged_status_url'
+ } %>
+
+
+
+
+
+
+ <% end %>
+
+
diff --git a/views/proposals_discussion_plugin_tasks/_task_reject_details.html.erb b/views/proposals_discussion_plugin_tasks/_task_reject_details.html.erb
index 6db8695..5197210 100644
--- a/views/proposals_discussion_plugin_tasks/_task_reject_details.html.erb
+++ b/views/proposals_discussion_plugin_tasks/_task_reject_details.html.erb
@@ -3,6 +3,6 @@
<%= 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'))) %>
<% if task.flagged_for_reproval? %>
-
+
<% end %>
<% end %>
diff --git a/views/tasks/_task.html.erb b/views/tasks/_task.html.erb
deleted file mode 100644
index a1f1651..0000000
--- a/views/tasks/_task.html.erb
+++ /dev/null
@@ -1,110 +0,0 @@
-
- <%= tag :a, name: "task-#{task.id}" %>
- <%= render :partial => 'task_icon', :locals => {:task => task} %>
-
- <% if !@view_only && profile.organization? && @responsible_candidates.present? %>
-
- <%= _('Assign to:') %>
-
- <% change_responsible_url = url_for :action => :change_responsible, :controller => :tasks %>
- <%= select_tag "tasks[#{task.id}][responsible]", options_from_collection_for_select(@responsible_candidates, :id, :name, task.responsible.present? ? task.responsible.id : nil), :include_blank => true, :onchange => "change_task_responsible(this);", 'data-old-responsible' => task.responsible.present? ? task.responsible.id : nil, 'data-task' => task.id, 'data-url' => change_responsible_url %>
-
-
- <% end %>
-
- <% if @view_only && task.responsible.present? %>
-
- <%= _('Assigned to:') %>
- <%= task.responsible.name %>
-
- <% end %>
-
-
- <% unless @view_only %>
- <%=
- labelled_radio_button(_("Accept"), "tasks[#{task.id}][decision]", 'finish', task.flagged_for_approval? || task.default_decision == 'accept',
- :id => "decision-finish-#{task.id}",
- :class => 'task_accept_radio',
- :disabled => task.accept_disabled?,
- :task_id => "#{task.id}") +
- labelled_radio_button(_("Reject"), "tasks[#{task.id}][decision]", 'cancel', task.flagged_for_reproval? || task.default_decision == 'reject',
- :id => "decision-cancel-#{task.id}",
- :class => 'task_reject_radio',
- :disabled => task.reject_disabled?,
- :task_id => "#{task.id}") +
- labelled_radio_button(_("Skip"), "tasks[#{task.id}][decision]", 'skip', task.default_decision == 'skip' && task.unflagged?,
- :id => "decision-skip-#{task.id}",
- :class => 'task_skip_radio',
- :disabled => task.skip_disabled?,
- :task_id => "#{task.id}")
- %>
- <% end %>
-
-
-
<%= show_time(task.created_at) %>
-
- <%= render :partial => 'task_title', :locals => {:task => task} %>
-
-
- <%= task_information(task) %>
-
-
-
- <%= fields_for "tasks[#{task.id}][task]", task do |f| %>
- <% if task.accept_details and !@view_only %>
-
- <%= render :partial => partial_for_class(task.class, nil, :accept_details), :locals => {:task => task, :f => f} %>
-
- <% end %>
-
- <% if task.reject_details and !@view_only %>
-
- <%= render :partial => partial_for_class(task.class, nil, :reject_details), :locals => {:task => task, :f => f} %>
-
- <% end %>
-
- <% if @view_only %>
-
- <% end %>
- <%#= select_tag "tasks[#{task.id}][setting][evaluation_flag]",
- options_for_select(
- [_('FLAGGED_FOR_APPROVAL'),_('FLAGGED_FOR_REPROVAL')],(task.flagged_status.present? ? task.flagged_status : nil)
- ),
- {
- :include_blank => true,
- :onchange => "change_flagged_status(this);",
- 'data-old-responsible' => task.flagged_status.present? ? task.flagged_status.id : nil,
- 'data-task' => task.id, 'data-url' => 'change_flagged_status_url'
- } %>
-
-
-
-
-
-
- <% end %>
-
-
diff --git a/views/tasks/_task_accept_details.html.erb b/views/tasks/_task_accept_details.html.erb
deleted file mode 100644
index e69de29..0000000
--- a/views/tasks/_task_accept_details.html.erb
+++ /dev/null
diff --git a/views/tasks/_task_reject_details.html.erb b/views/tasks/_task_reject_details.html.erb
deleted file mode 100644
index 6a0452c..0000000
--- a/views/tasks/_task_reject_details.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<% if @email_templates.present? %>
-
- <%= 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'))) %>
-
-<% end %>
--
libgit2 0.21.2