-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
_top_section.html.haml
30 lines (26 loc) · 1.21 KB
/
_top_section.html.haml
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
= hook(:campaign_top_section, self, :f => f) do
.section
%table
%tr
%td(colspan="5")
.label.top.req #{t :name}:
= f.text_field :name, :style => "width:500px"
%tr
%td
.label #{t :start_date}:
= f.text_field :starts_on, :value => f.object.starts_on ? l(f.object.starts_on, :format => :mmddyyyy) : "", :style => "width:110px", :autocomplete => :off
%td= spacer
%td
.label #{t :end_date}:
= f.text_field :ends_on, :value => f.object.ends_on ? l(f.object.ends_on, :format => :mmddyyyy) : "", :style => "width:110px", :autocomplete => :off
%td= spacer
%td
.label #{t :status}:
= f.select :status, Setting.unroll(:campaign_status), { :selected => (@campaign.status || "planned").to_sym }, { :style => "width:250px" }
- if Setting.background_info && Setting.background_info.include?(:campaign)
%tr
%td(colspan="5")
.label= t(:background_info) << ':'
= f.text_area :background_info, :style =>"width:500px", :rows => 3
= render :partial => "/shared/tags", :locals => {:f => f, :span => 5}
= hook(:campaign_top_section_bottom, self, :f => f)