Sha256: 7b6baca25c72d85687f000c8f55694af6fcb68a1cc8767da4a338e6fc0485fef

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 KB

Contents

<% if @landing_page.errors.any? %>
<div id="error_explanation">
  <h2>Please correct the following errors:</h2>
  <% @landing_page.errors.to_a.in_groups(2, false).each do |group| %>
  <ul>
    <% group.each do |msg| %>
    <li><%= msg %></li>
    <% end %>
  </ul>
  <% end %>
  <br style="clear: both;" />
</div>
<br style="clear: both;" />
<% end %>

<div class="form_container">
  <%= legend_tag 'About This Landing Page' -%>

  <div class="form_column">
    <%= f.text_field :name -%>
    <%= f.text_field :window_title -%>
    <%= f.text_field :desired_slug, :label => 'Slug', :value => @landing_page.slug -%>
    <%= f.text_field :conversion_url, :label => 'Conversion URL' -%>
  </div>
  <div class="form_column">
    <%= f.select :layout, Site.layouts -%>
    <%- unless @landing_page.has_variants? -%>
      <%= f.select :parent_id, @variantables, :label => 'Variant Of', :include_blank => 'None' -%>
    <%- end -%>
    <%= f.check_box :active, :inline_label => 'Active', :label => 'Options' -%>
    <%= f.check_box :show_locations, :inline_label => 'Show Locations', :label => false -%>
    <%= f.check_box :show_local_offer, :inline_label => 'Show Local Offers', :label => false -%><br />
  </div>
  <br style="clear: both;" />
</div>

<div class="form_container">
  <%= legend_tag "Offer" -%>
  <%= f.text_area :offer, :label => 'Default Offer', :class => 'wide' -%>
</div>

<div class="form_container">
  <%= legend_tag "Disclaimer" -%>
  <%= f.text_area :disclaimer, :label => 'Default Disclaimer', :class => 'wide' -%>
</div>
  <div class="link_block attached">
    <%= f.submit 'Save', :class => 'link_button' -%>
    <%= link_to 'Cancel', admin_landing_pages_path, :class => 'link_button' -%>
  </div>
</fieldset>

<br style="clear: both;" />

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppc_logic-0.8.0 app/views/admin/landing_pages/_form.html.erb