_suggest_article.rhtml
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h2><%= _('Processing task: %s') % task.description %></h2>
<%= render :file => 'shared/tiny_mce' %>
<% form_for('task', task, :url => { :action => 'close', :id => task.id}) do |f| %>
<p><%= label_tag(_("Sent by: %s") % task.name) %> </p>
<p><%= label_tag(_("Email: %s") % task.email) %> </p>
<%= 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) %>
<br style="clear: both;"/>
<%= button :add, _("Lead"), '#', :id => "lead-button", :style => "margin-left: 0px;" %>
<em><%= _('Used when a short version your text is needed.') %></em>
<div id="article-lead">
<%= labelled_form_field(_('Lead'), text_area_tag('task[article_abstract]', task.article_abstract, :style => 'width: 100%; height: 200px;')) %>
</div>
<div style="margin-top: 10px;">
<%= labelled_form_field(_('Text'), text_area_tag('task[article_body]', task.article_body, :style => 'width:100%; height: 500px;')) %>
</div>
<div>
<%= labelled_radio_button _('OK'), :decision, 'finish', true, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='none'" %>
</div>
<div>
<%= labelled_radio_button _('Cancel'), :decision, 'cancel', false, :onclick => "if(this.checked) $('rejection-field-#{task.id}').style.display='block'" %>
</div>
<% button_bar do %>
<%= submit_button(:ok, _('OK')) %>
<% end %>
<% end %>
<%= javascript_include_tag 'article' %>