Sha256: 00e8a77fa3d298adb397e0a0b80c3fdd361663b84e8742ec4f1dbe5b900b62ca
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
class SuppliersHooks < Spree::ThemeSupport::HookListener insert_after :admin_tabs do %(<%= tab(:suppliers) %>) end # insert_after :admin_order_tabs do # %(<%= tab(:order_line_items) %>) # end # insert_after :admin_product_tabs do # %(<%= tab(:selected_admin_productor_vendors_url) %>) # end insert_after :admin_product_form_right ,"admin/products/suppliers_form" insert_after :admin_configuration_menu do %(<tr><td><%= link_to t("Suppliers"), admin_suppliers_url %><td><td><%= t("Suppliers_description") %></td></tr>) end # Add on_hand field to admin/products listing insert_after :admin_products_index_headers do %(<th><%= sort_link @search, :count_on_hand, t("count_on_hand") %></th>) end insert_after :admin_tabs do %(<%= tab(:pickups) %>) end insert_after :admin_inside_head do %(<%= javascript_include_tag 'jquery.ui.datepicker.js', 'jquery-ui.multidatespicker.js' %>) end insert_after :admin_inside_head do %(<%= stylesheet_link_tag 'suppliers.css' %>) end insert_after :admin_products_index_rows do %(<td><%= product.count_on_hand %></td>) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_suppliers-0.0.1 | lib/spree_suppliers_hooks.rb |
spree_suppliers-0.60.3 | lib/spree_suppliers_hooks.rb |