app/views/spree/admin/taxonomies/edit.erb in spree_backend-2.4.10 vs app/views/spree/admin/taxonomies/edit.erb in spree_backend-3.0.0.rc1
- old
+ new
@@ -1,43 +1,32 @@
-<%= render :partial => 'spree/admin/shared/configuration_menu' %>
+<%= render partial: 'js_head' %>
-<%= render :partial => 'js_head' %>
-
<% content_for :page_title do %>
<%= Spree.t(:taxonomy_edit) %>
<% end %>
-<% content_for :page_actions do %>
- <li>
- <%= button_link_to Spree.t(:back_to_taxonomies_list), spree.admin_taxonomies_path, :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, Spree.t(:tree) %><br />
+ <fieldset>
+ <%= render partial: 'form', locals: { f: f } %>
+ <div class="form-group">
+ <%= label_tag nil, Spree.t(:tree) %>
<script>
Spree.routes.taxonomy_taxons_path = "<%= spree.api_taxonomy_taxons_path(@taxonomy) %>";
Spree.routes.admin_taxonomy_taxons_path = "<%= spree.admin_taxonomy_taxons_path(@taxonomy) %>";
Spree.routes.jstree_theme_path = "<%= stylesheet_path("jquery.jstree/themes/apple/style.css") %>";
</script>
<div id="taxonomy_tree" class="tree"></div>
</div>
- <div id="progress" style="display:none;">
- <%= image_tag 'select2-spinner.gif', :title => 'Spinner', :style => "vertical-align:bottom;" %> <%= Spree.t(:updating) %>..
+
+ <div class="alert alert-info">
+ <%= Spree.t(:taxonomy_tree_instruction) %>
</div>
- <div class="info"><%= Spree.t(:taxonomy_tree_instruction) %></div>
-
- <br>
-
- <div class="filter-actions actions">
- <%= button Spree.t('actions.update'), 'refresh' %>
+ <div class="form-actions">
+ <%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: 'delete' %>
<span class="or"><%= Spree.t(:or) %></span>
- <%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, :icon => 'remove' %>
+ <%= button Spree.t('actions.update'), 'ok', 'submit', { class: 'btn-success' } %>
</div>
</fieldset>
<% end %>