Sha256: e210981bcbaefc83b04d038f1fac3bb40cdcb2e738407a29235752491803ba1f

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

<h2>Option Values</h2>
<table class="basic-table">
	<thead>
		<tr>
			<th>Name</th>
			<th>Display</th>
			<th>Action</th>
		</tr>
	</thead>
	<tbody>
		<% @option_type.option_values.each do |ov| %>
			<tr>
				<td><%=ov.name%></td>
				<td><%=ov.presentation%></td>
				<td>
				  <%= link_to_remote "Delete",
				                     :url => {:action => 'delete_option_value', :id=> @option_type, :option_value_id => ov},
				                     :before => "Element.show('ov_busy_indicator')", 
				                     :complete => "Element.hide('ov_busy_indicator')",
				                     :update => 'option-value-listing' %>
				</td>
			</tr>
		<% end %>
		<% if @option_type.option_values.empty? %>
			<tr>
				<td colspan="3">None Available.</td>
			</tr>
		<% end %>
	</tbody>
</table>
<% unless @option_type.new_record? %>
  <span id="new-ov-link">
	  <%= link_to_remote "New Option Value",
	                     :url => {:action => 'new_option_value', :id=> @option_type},
	                     :before => "Element.hide('new-ov-link');Element.show('ov_busy_indicator')", 
	                     :complete => "Element.hide('ov_busy_indicator');Element.hide('new-ov-link');",
	                     :update => 'new-option-value' %>
  </span>
	<%= image_tag "spinner.gif", :plugin=>"railscart", :style => "display:none", :id => 'ov_busy_indicator' %>
<% end %>
<br/>
<div id="new-option-value"></div>
<br/>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railscart-0.0.3 starter_app/vendor/plugins/railscart/app/views/admin/option_types/_option_values.rhtml
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/views/admin/option_types/_option_values.rhtml