Sha256: 92f389fcfee40ecafc9a040ce751cf6f09ab68c7a1a3253fea614cfb836aef92

Contents?: true

Size: 1.32 KB

Versions: 11

Compression:

Stored size: 1.32 KB

Contents

= 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

        = render "ems/globals/content_editor", :form => f, :type=>"report"

        %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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ems-0.1.12 app/views/ems/reports/_form.html.haml
ems-0.1.11 app/views/ems/reports/_form.html.haml
ems-0.1.10 app/views/ems/reports/_form.html.haml
ems-0.1.9 app/views/ems/reports/_form.html.haml
ems-0.1.8 app/views/ems/reports/_form.html.haml
ems-0.1.7 app/views/ems/reports/_form.html.haml
ems-0.1.6 app/views/ems/reports/_form.html.haml
ems-0.1.5 app/views/ems/reports/_form.html.haml
ems-0.1.4 app/views/ems/reports/_form.html.haml
ems-0.1.3 app/views/ems/reports/_form.html.haml
ems-0.1.2 app/views/ems/reports/_form.html.haml