Sha256: d6859ff5131ef79c51a86c17ea44c40faf71e9e4e62f309f3bce67da66e39782

Contents?: true

Size: 1019 Bytes

Versions: 15

Compression:

Stored size: 1019 Bytes

Contents

<%= simple_form_for(@product, html: {class: 'form-horizontal'}) do |f| %>
  <%= render partial: 'shared/form/error_messages', locals: { resource: @product } %>
  
  <div class="form-inputs">
    <%= f.input :name %>  
    <%= f.input :text, as: :text, input_html: {style: 'width: 500px; height:300px;'} %>
    
    <div class="control-group check_boxes required">
      <label class="check_boxes required control-label">
        <abbr title="required">*</abbr> 
        <%= t('areas.index.title') %>
      </label>
      <div class="controls">
  <% Area.all.each do |area| %>
        <label class="checkbox">
          <input class="check_boxes required" id="product_area_ids_<%=area.id%>" name="product[area_ids][]" 
          type="checkbox" value="<%=area.id%>"<%= @product.area_ids.include?(area.id) ? ' checked="checked"' : '' %>/>
          <%= link_to area.name, area %>
        </label>
  <% end %>
      </div>
    </div>
  </div>
  
  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
voluntary-0.4.0 app/views/products/_form.html.erb
voluntary-0.3.0 app/views/products/_form.html.erb
voluntary-0.2.4 app/views/products/_form.html.erb
voluntary-0.2.3 app/views/products/_form.html.erb
voluntary-0.2.2 app/views/products/_form.html.erb
voluntary-0.2.1 app/views/products/_form.html.erb
voluntary-0.2.0 app/views/products/_form.html.erb
voluntary-0.1.0 app/views/products/_form.html.erb
voluntary-0.1.0.rc4 app/views/products/_form.html.erb
voluntary-0.1.0.rc3 app/views/products/_form.html.erb
voluntary-0.1.0.rc2 app/views/products/_form.html.erb
voluntary-0.1.0.rc1 app/views/products/_form.html.erb
voluntary-0.0.3 app/views/products/_form.html.erb
voluntary-0.0.2 app/views/products/_form.html.erb
voluntary-0.0.1 app/views/products/_form.html.erb