Sha256: 39104354eb95488c00328d04ecbbea996d7e93e0e3842f94b3b25a2e6eca3b85
Contents?: true
Size: 1.87 KB
Versions: 18
Compression:
Stored size: 1.87 KB
Contents
<% content_for :page_title do %> <%= link_to Spree.t(:option_types), spree.admin_option_types_url %> / <%= @option_type.name %> <% end %> <% content_for :page_actions do %> <span id="new_add_option_value" data-hook> <%= button_link_to Spree.t(:add_option_value), "javascript:;", { :icon => 'add', :'data-target' => "tbody#option_values", :class => 'btn-success spree_add_fields' } %> </span> <% end %> <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @option_type } %> <%= form_for [:admin, @option_type] do |f| %> <div class="panel panel-default"> <div class="panel-heading"> <h1 class="panel-title"> <%= Spree.t(:option_values) %> </h1> </div> <div class="panel-body"> <%= render :partial => 'form', :locals => { :f => f } %> </div> <table class="table table-condensed table-bordered sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>"> <thead data-hook="option_header"> <tr> <th colspan="2"><%= Spree.t(:name) %> <span class="required">*</span></th> <th><%= Spree.t(:display) %> <span class="required">*</span></th> <th class="actions"></th> </tr> </thead> <tbody id="option_values"> <% if @option_type.option_values.empty? %> <tr id="none" data-hook="option_none"> <td colspan="2"><%= Spree.t(:none) %></td> <td class="actions text-center"></td> </tr> <% else %> <%= f.fields_for :option_values do |option_value_form| %> <%= render :partial => 'option_value_fields', :locals => { :f => option_value_form } %> <% end %> <% end %> </tbody> </table> <div class="panel-footer text-center"> <%= render :partial => 'spree/admin/shared/edit_resource_links' %> </div> </div> <% end %>
Version data entries
18 entries across 18 versions & 1 rubygems