Sha256: f5361b04a2eaa64a9b0415d3e59f4716bc8f7a5d2761072c666d334877ca6b05

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
<h1><%= t(:editing_option_type) %></h1>
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
<%= form_for [:admin, @option_type] do |f| %>
<fieldset>
  <legend><%= t(:editing_option_type) %></legend>
  <%= render :partial => 'form', :locals => { :f => f } %>
  <h3><%= t(:option_values) %></h3>
  <table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
    <thead data-hook="option_header">
      <tr>
        <th><%= t(:name) %></th>
        <th><%= t(:display) %></th>
        <th></th>
      </tr>
    </thead>
    <tbody id="option_values">
      <tr id="none" data-hook="option_none">
        <td colspan="3"><%= @option_type.option_values.empty? ? t(:none) : '' %></td>
      </tr>
      <%= f.fields_for :option_values do |option_value_form| %>
        <%= render :partial => 'option_value_fields', :locals => { :f => option_value_form } %>
      <% end %>
    </tbody>
  </table>
  <span id="new_add_option_value" data-hook>
    <%= link_to_add_fields t(:add_option_value), "tbody#option_values" %>
  </span>

  <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
</fieldset>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.6 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.5 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.4 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.3 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.2 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.4 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.0 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.0.rc2 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.2.0.rc1 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.3 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.2 app/views/spree/admin/option_types/edit.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/option_types/edit.html.erb