Sha256: 92ce2cf0801f8889ef1e72c575171c37b9aa5a2716ca407e9b0e702abab28f62

Contents?: true

Size: 1.57 KB

Versions: 39

Compression:

Stored size: 1.57 KB

Contents

<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
<% admin_breadcrumb(link_to plural_resource_name(Spree::OptionType), spree.admin_option_types_path) %>
<% admin_breadcrumb(@option_type.name) %>


<% content_for :page_actions do %>
  <li>
    <span id="new_add_option_value" data-hook>
      <%= link_to_add_fields t('spree.add_option_value'), "tbody#option_values", class: 'button' %>
    </span>
  </li>
  <% end %>

<%= render partial: 'spree/shared/error_messages', locals: { target: @option_type } %>

<%= form_for [:admin, @option_type] do |f| %>

  <fieldset class="no-border-bottom">
    <legend><%= Spree::OptionType.model_name.human %></legend>
    <%= render partial: 'form', locals: { f: f } %>
  </fieldset>

  <fieldset>
    <legend><%= plural_resource_name(Spree::OptionValue) %></legend>
    <table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
      <thead data-hook="option_header">
        <tr>
          <th></th>
          <th><%= Spree::OptionValue.human_attribute_name(:name) %></th>
          <th><%= Spree::OptionValue.human_attribute_name(:presentation) %></th>
          <th class="actions"></th>
        </tr>
      </thead>
      <tbody id="option_values">
        <%= f.fields_for :option_values, @option_values do |option_value_form| %>
          <%= render partial: 'option_value_fields', locals: { f: option_value_form } %>
        <% end %>
      </tbody>
    </table>
    <%= render partial: 'spree/admin/shared/edit_resource_links' %>
  </fieldset>
<% end %>

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
solidus_backend-2.8.6 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.6.6 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.7.4 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.5 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.7.3 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.6.5 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.5.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.4 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.3 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.7.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.6.4 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.5.1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.6.3 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.8.0 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.7.1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-2.6.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/option_types/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/option_types/edit.html.erb