Sha256: d84a928a4de08e6cb1ea9f9e89cff4024ba8c9ca90d03b9822a601ec892c98fe

Contents?: true

Size: 1.44 KB

Versions: 7

Compression:

Stored size: 1.44 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:editing_option_type) %> <span class="green">"<%= @option_type.name %>"</span>
<% end %>

<% content_for :page_actions do %>
  <li>
    <span id="new_add_option_value" data-hook>
      <%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button fa fa-plus' %>
    </span>
  </li>
  <li>
    <%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'arrow-left' %>
  </li>
<% end %>

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

<%= form_for [:admin, @option_type] do |f| %>
  <fieldset>
    <legend align="center"><%= Spree.t(:option_values) %></legend>

    <%= render :partial => 'form', :locals => { :f => f } %>

    <table class="index 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) %></th>
          <th><%= Spree.t(:display) %></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

7 entries across 7 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.0 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/option_types/edit.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/option_types/edit.html.erb