Sha256: 7794ec4f79e16b5a8e8e57f924763559f2e4dfb79bdb63fe65cf2fe6cfd7f1b9

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

-box do
  %h3=:new_ad.l
  = error_messages_for :ad
  = form_for(:ad, :url => ads_path, :html => {:class => "MainForm" }) do |f|
    %label=:name.l
    = f.text_field :name

    %label=:html.l
    = f.text_area :html, :size => '80x10', :class => "rich_text_editor"

    %label=:frequency.l
    = f.select :frequency, Ad.frequencies_for_select

    %label=:audience.l
    = f.select :audience, Ad.audiences_for_select

    %fieldset{"for"=>"ad_published"}
      = f.check_box :published
      %label
        =:published.l
        \?

    %fieldset{"for"=>"ad_time_constrained"}
      = f.check_box :time_constrained
      %label
        =:time_constrained.l
        \?

    #time_constraints{"style"=>"display:#{ @ad.time_constrained? ? 'block' : 'none'}"}
      %label=:start_date.l
      = f.datetime_select :start_date
      %label=:end_date.l
      = f.datetime_select :end_date

    -content_for :end_javascript do
      :javascript
        Event.observe("ad_time_constrained", "click", function(){$('time_constraints').toggle()})

    %label=:location.l
    = f.text_field :location

    %p
      = submit_tag :create.l

  = link_to :back.l, ads_path

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/ads/new.html.haml
community_engine-2.3.1 app/views/ads/new.html.haml
community_engine-2.3.0 app/views/ads/new.html.haml
community_engine-2.1.0 app/views/ads/new.html.haml
community_engine-2.0.0 app/views/ads/new.html.haml