Sha256: d26f3c853c060d3999aa0f11c884ad724df060f9bffa0408275d455108b00004

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

<%= render :partial => 'admin/shared/configuration_menu' %>

<%= render :partial => "js_head" %>

<h1><%= t("taxonomy_edit")%></h1>

<p id="ajax_error" class="errorExplanation" style="display:none;"></p>

<%= form_for(:taxon, :url => admin_taxonomy_url, :html => { :method => :put }) do |f| %>
  <%= render :partial => 'form', :locals => {:f => f} %>
	  <div>
	    <label><%= t("tree")%></label><br />	
      <div id="taxonomy_tree" class="tree"></div>
  	</div>
  	<p id="progress" style="display:none;">
      <img src="/images/spinner.gif?1234540747" alt="Spinner" style="vertical-align:bottom;"/> <%= t('updating') %>..
    </p>
    <p><br/><small><%= t("taxonomy_tree_instruction")%></small></p>

	<p class="form-buttons">
	  <%= button t("update") %> <%= t("or") %> <%= link_to t("cancel"), admin_taxonomies_path %>
  </p>
<% end %>


<% content_for :head do %>
  <script type="text/javascript">
    var initial = [
	   	{ attributes : 
	   	  { "id" : "<%= @taxonomy.root.id %>" }, 
			data : "<%= @taxonomy.root.name %>",
			state : "open",
			children : [
				<% @taxonomy.root.children.each_with_index do |taxon,i| %>
					{
						attributes :
						{ id : "<%= taxon.id %>"},
						data : "<%= taxon.name %>"
						<% unless taxon.children.empty? %>
							,state : "closed"
						<% end %>
					}<%= "," if i < (@taxonomy.root.children.size - 1) %>
				<% end %>
			]
      	}
    ];
    
  </script>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/admin/taxonomies/edit.html.erb
spree_core-0.30.1 app/views/admin/taxonomies/edit.html.erb
spree_core-0.30.0 app/views/admin/taxonomies/edit.html.erb
spree_core-0.30.0.beta1 app/views/admin/taxonomies/edit.html.erb