%# 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'" %>
<%= required labelled_form_field(_('Rejection explanation'), text_area(:task, :reject_explanation, :rows => 5))%>
<% button_bar do %>
<%= submit_button(:ok, _('OK')) %>
<% end %>
<% end %>