Sha256: 538b47ed287cb55948592f14f37f63f29951f8c881419a73b96cbddd9ea21bd4
Contents?: true
Size: 1001 Bytes
Versions: 2
Compression:
Stored size: 1001 Bytes
Contents
<%= form_for(get_dejavu_for(@product)) do |f| %> <% if @product.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2> <ul> <% @product.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :name %><br /> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :code %><br /> <%= f.text_field :code %> </div> <div class="field"> <%= f.label :virtual %><br /> <%= f.text_field :virtual %> </div> <div> <%= f.fields_for :category do |ctf| %> <%= ctf.label :category_name %> <%= ctf.text_field :name %> <% end %> </div> <div> <%= f.fields_for :colors do |clf| %> <%= clf.label :color_name %> <%= clf.text_field :name %> <% end %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dejavu-0.3.1 | test_app/app/views/products/_form.html.erb |
dejavu-0.3.0 | test_app/app/views/products/_form.html.erb |