Sha256: f17f53332d98f607e3e0555b569f71ffbe20db34a51dec6a4e352df9795ad2ed
Contents?: true
Size: 1.9 KB
Versions: 9
Compression:
Stored size: 1.9 KB
Contents
<%= render :partial => 'spree/admin/shared/configuration_menu' %> <%= render :partial => 'js_head' %> <% content_for :page_title do %> <%= t(:taxonomy_edit) %> <% end %> <% content_for :page_actions do %> <li> <%= button_link_to t(:back_to_taxonomies_list), spree.admin_taxonomies_path, :icon => 'icon-arrow-left' %> </li> <% end %> <div id="ajax_error" class="errorExplanation" style="display:none;"></div> <%= form_for [:admin, @taxonomy] do |f| %> <fieldset class="no-border-top"> <%= render :partial => 'form', :locals => { :f => f } %> <div> <%= label_tag nil, t(:tree) %><br /> <div id="taxonomy_tree" class="tree" data-url="<%= admin_taxonomy_taxons_path @taxonomy %>"></div> </div> <div id="progress" style="display:none;"> <%= image_tag 'spinner.gif', :title => 'Spinner', :style => "vertical-align:bottom;" %> <%= t(:updating) %>.. </div> <div class="info"><%= t(:taxonomy_tree_instruction) %></div> <br> <div class="filter-actions actions"> <%= button t(:update), 'icon-refresh' %> <span class="or"><%= t(:or) %></span> <%= button_link_to t(:cancel), admin_taxonomies_path, :icon => 'icon-remove' %> </div> </fieldset> <% end %> <% content_for :head do %> <%= javascript_tag do -%> var initial = [ { "attr" : { "id" : "<%= @taxonomy.root.id %>", "rel" : "root" }, "data" : "<%= escape_javascript(raw(@taxonomy.root.name)) %>", "state" : "open", "children" : [ <% @taxonomy.root.children.each_with_index do |taxon,i| %> { "attr" : { "id" : "<%= taxon.id %>"}, "data" : "<%= escape_javascript(raw(taxon.name)) %>" <% unless taxon.children.empty? %> ,"state" : "closed" <% end %> }<%= ',' if i < (@taxonomy.root.children.size - 1) %> <% end %> ] } ]; <% end -%> <% end %>
Version data entries
9 entries across 9 versions & 2 rubygems