Sha256: f26a15768f75d300a02eee2eb57a39aa0129b92fd469aaf5f75c7cd0561fa21e

Contents?: true

Size: 920 Bytes

Versions: 3

Compression:

Stored size: 920 Bytes

Contents

<table>
  <tr>
    <td><%= t("name") %>: </td>
    <td>
      <%=error_message_on :option_type, :name %>
      <%= f.text_field :name %>
    </td>
  </tr>
  <tr>
    <td><%= t("presentation") %>: </td>
    <td>
      <%=error_message_on :option_type, :presentation %>
      <%= f.text_field :presentation %>
    </td>
  </tr>
</table>
<br/>

<h3><%= t("option_values") %></h3>
<table class="basic-table">
  <thead>
    <tr>
      <th><%= t("name") %></th>
      <th><%= t("display") %></th>
      <th><%= t("action") %></th>
    </tr>
  </thead>
  <tbody id="option_values">
		<%= f.render_associated_form(@option_type.option_values) %>
		<tr id="none">
		  <td colspan="3"><%= @option_type.option_values.empty? ? t("none") : "" %></td>
		</tr>
	</tbody>
</table>
<%= f.add_associated_link(t("add_option_value"), @option_type.option_values.build, 
                         {:onclick => "Element.hide('none');"}) %>
<br/>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-0.6.0 app/views/admin/option_types/_form.html.erb
spree-0.7.1 app/views/admin/option_types/_form.html.erb
spree-0.7.0 app/views/admin/option_types/_form.html.erb