<%# a generic task solver %>

<%= _('Processing task: %s') % task.description %>

<% form_for('task', task, :url => { :action => 'close', :id => task.id}) do |f| %>
<%= labelled_radio_button _('OK'), :decision, 'finish', true, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='none'" %>
<%= labelled_radio_button _('Cancel'), :decision, 'cancel', false, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='block'" %>
<% button_bar do %> <%= submit_button(:ok, _('OK')) %> <% end %> <% end %>