Sha256: c518b93bb6a84057580f199dff173a42d93734178f7ece99fdefad035fcfea88

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 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



        %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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ems-0.1.0 app/views/ems/reports/_form.html.haml
ems-0.0.9 app/views/ems/reports/_form.html.haml
ems-0.0.8 app/views/ems/reports/_form.html.haml
ems-0.0.7 app/views/ems/reports/_form.html.haml
ems-0.0.6 app/views/ems/reports/_form.html.haml
ems-0.0.5 app/views/ems/reports/_form.html.haml
ems-0.0.4 app/views/ems/reports/_form.html.haml
ems-0.0.3 app/views/ems/reports/_form.html.haml