Sha256: 71e9b71d066e25003c47d991f76633bf17b454e11951c5d10ac3b9613bf417a5
Contents?: true
Size: 1.44 KB
Versions: 9
Compression:
Stored size: 1.44 KB
Contents
<%= simple_form_for(@banner, :html => {:class => 'form-horizontal'}) do |f| %> <%= f.error_notification %> <div class="row"> <div class="span5"> <%= f.input :name %> <%= f.input :start_time, :as => 'string', :input_html => {:value => (@banner.start_time ? @banner.start_time.iso8601 : '')} %> <%= f.input :end_time, :as => 'string', :input_html => {:value => (@banner.end_time ? @banner.end_time.iso8601 : '')} %> <%= f.input :priority %> <%= f.input :target_view_count %> <%= f.input :fast_mode %> <%= f.input :frequency %> <%= f.input :comment, :input_html => {:rows => 5} %> <%= f.input :confirmed, :label_html => {:style => ((@banner.new_record? || @banner.confirmed?) ? '' : 'color: red; font-weight: bold')} %> <%= f.association :placement %> </div> <div class="span4"> <% @banner.helper_items.build @banner.helper_items.build if @banner.helper_items.size < 2 %> <%= f.fields_for :helper_items do |f_hi| %> <fieldset style="margin-bottom: 20px; border-bottom: 1px solid lightgray;"> <%= f_hi.input :name, :label => 'HelperItem Name' %> <%= f_hi.input :content_for %> <%= f_hi.input :position %> <%= f_hi.input :content, :input_html => {:rows => (f_hi.object.content_for? ? 5 : 1) } %> </fieldset> <% end %> </div> </div> <div class="form-actions"> <%= f.button :submit %> </div> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems