Sha256: aa32150271e600be92ffc4d7896ae83287e87fb30867b0e84e1a6fcb600149aa

Contents?: true

Size: 936 Bytes

Versions: 9

Compression:

Stored size: 936 Bytes

Contents

<%= simple_form_for(@placement, :html => {:class => 'form-horizontal'}) do |f| %>

  <%= f.error_notification %>

  <div class="row">
    <div class="span5">
      <%= f.input :name %>

      <%= f.input :only_once_per_session %>

      <%= f.input :conflicting_placements_array, :input_html => {:rows => 5} %>

      <div class="well" style="margin-left: 40px; font-size: 12px;">
        <strong>Conflicting links:</strong>
        <ul>
        <% @placement.conflicting_placements.each do |name| %>
          <li>
            <% if place = AdvertSelector::Placement.by_name(name).first %>
              <%= link_to place.name, place %>
            <% else %>
              <strong><%= name %> - NOT FOUND</strong>
            <% end %>
          </li>
        <% end %>
        </ul>
      </div>

    </div>

    <div class="span4">
    </div>

  </div>

  <div class="form-actions">
    <%= f.button :submit %>
  </div>

<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
advert_selector-3.0.1 app/views/advert_selector/placements/_form.html.erb
advert_selector-3.0.0 app/views/advert_selector/placements/_form.html.erb
advert_selector-2.0.1 app/views/advert_selector/placements/_form.html.erb
advert_selector-2.0.0 app/views/advert_selector/placements/_form.html.erb
advert_selector-1.0.4 app/views/advert_selector/placements/_form.html.erb
advert_selector-1.0.3 app/views/advert_selector/placements/_form.html.erb
advert_selector-1.0.2 app/views/advert_selector/placements/_form.html.erb
advert_selector-1.0.1 app/views/advert_selector/placements/_form.html.erb
advert_selector-1.0.0 app/views/advert_selector/placements/_form.html.erb