<%= _('Processing task: %s') % task.description %>
<%= render :file => 'shared/tiny_mce' %>
<% form_for('task', task, :url => { :action => 'close', :id => task.id}) do |f| %>
<%= labelled_form_field(_("Sent by: "), f.text_field(:name)) %>
<%= label_tag(_("Email: %s") % task.email) %>
<%= required labelled_form_field(_('Title'), f.text_field(:article_name, :size => 50)) %>
<%= labelled_form_field(_('Source'), f.text_field(:source_name)) %>
<%= labelled_form_field(_("Source URL"), f.text_field(:source)) %>
<%= select_folder(_('Select the folder where the article must be published'), 'task', 'article_parent_id', task.target.folders) %>
<%= button :add, _("Lead"), '#', :id => "lead-button", :style => "margin-left: 0px;" %>
<%= _('Used when a short version your text is needed.') %>
<%= labelled_form_field(_('Lead'), text_area_tag('task[article_abstract]', task.article_abstract, :style => 'width: 100%; height: 200px;')) %>
<%= labelled_form_field(_('Text'), text_area_tag('task[article_body]', task.article_body, :style => 'width:100%; height: 500px;')) %>
<%= 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 %>
<%= javascript_include_tag 'article' %>