Sha256: c0fde7c0fe5440f0aef72cadab1b6471ee77fb13607bec36486c0773fec64c2b
Contents?: true
Size: 1.46 KB
Versions: 5
Compression:
Stored size: 1.46 KB
Contents
<div class = "widget-body"> <div class = "widget-forms clearfix"> <%= custom_form_for(@product, {:class => "form-horizontal"}) do |f| %> <%= render 'shared/error_messages', :object => @product %> <%= f.text_field :name, :label => t("model.attributes.product.Name"), :placeholder => t("Name of product") %> <%= f.text_field :brief, :label => t("Short description"), :placeholder => t("Short description of product") %> <div class="control-group"> <label class="control-label"><%= t "Description" %></label> <div class="controls"> <%= f.hidden_field :description, :id => "description-field" %> <% if @product.description.nil? %> <%= content_tag(:div, @product.description, :class => "editable", "data-placeholder" => t("Write description here")) %> <% else %> <%= content_tag(:div, @product.description.html_safe, :class => "editable", "data-placeholder" => t("Write description here")) %> <% end %> </div> </div> <%= f.select :category_id, @categories, :label => t("model.Category") %> <%= f.fields_for :images do |builder| %> <%= render 'image_fields', :f => builder, :model_name => @product.simple_name %> <% end -%> <%= link_to_add_fields t("Add Image"), f, :images, @product.simple_name %> </div> </div> <div class = "widget-footer"> <%= f.submit t("Save"), :disable_with => 'Submiting...', :id => "save-button" %> </div> <% end -%>
Version data entries
5 entries across 5 versions & 1 rubygems