Sha256: 14db248c098c45671e5417dc99775b45472f4108ab3ad3e3f3afed7e7aeb8e53

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

-box do
  %h3=:editing_ad.l
  = error_messages_for :ad
  = form_for(:ad, :url => ad_path(@ad), :html => { :method => :put, :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 :update.l

  = link_to :show.l, ad_path(@ad)
  |
  = 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/edit.html.haml
community_engine-2.3.1 app/views/ads/edit.html.haml
community_engine-2.3.0 app/views/ads/edit.html.haml
community_engine-2.1.0 app/views/ads/edit.html.haml
community_engine-2.0.0 app/views/ads/edit.html.haml