= simple_form_for @report, :url => report_form_url do |f| - main_content "Report List" do %fieldset{ :class=>"inputs"} = f.association :category, :as => :hidden %ol %li = f.input :title %li = f.input :standfirst, :input_html => { :rows => 4 } = render "ems/globals/lead_image", :form => f, :imageName => @report.image.url %li #button-bar.input-buttons = f.label :content = f.input_field :content, :data => {:wmd => "report_content"} %li = f.input :download_cta %li = f.input :report = render "ems/globals/asset", :form => f %fieldset{ :class=>"button"} %ol %li = f.submit - side_content do %fieldset{ :class=>"inputs"} %ol %li = f.input :status, :as => :select, :collection => [:draft, :pending, :live], :include_blank => false %li = f.input :publish_from, :as => :string, :input_html => { :class => 'datepicker', :value => @report.try(:publish_from).try(:strftime,'%d/%m/%Y'), :data => { :alt_date => "alt-date-" }} %li = f.association :channels, :collection => Ems::Channel.joins(:categories).where(:ems_categories_channels => {:category_id => @report.category.id}) %li = f.label "Reprot Priority" = f.input :hot = f.input :featured