|
@@ -21,6 +21,8 @@ module SimpleNavigationn
|
|
|
else
|
|
else
|
|
|
list << content_tag(:li, item.name[:text], class: 'active ') if item.selected?
|
|
list << content_tag(:li, item.name[:text], class: 'active ') if item.selected?
|
|
|
end
|
|
end
|
|
|
|
|
+ else
|
|
|
|
|
+ next
|
|
|
end
|
|
end
|
|
|
# rubocop:enable Style/IfInsideElse
|
|
# rubocop:enable Style/IfInsideElse
|
|
|
end
|
|
end
|
|
@@ -139,7 +141,11 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
primary.item :products, { icon: "fa fa-fw fa-cubes", text: "Productos" }, products_path, class: 'menu-dropdown classic-menu-dropdown' do |sub_nav|
|
|
primary.item :products, { icon: "fa fa-fw fa-cubes", text: "Productos" }, products_path, class: 'menu-dropdown classic-menu-dropdown' do |sub_nav|
|
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
|
sub_nav.item :units, 'Unidades de medida', units_path
|
|
sub_nav.item :units, 'Unidades de medida', units_path
|
|
|
- sub_nav.item :list_categories, 'Lista de líneas de productos', categories_path
|
|
|
|
|
|
|
+ sub_nav.item :divider_before_categories, '#', divider: true
|
|
|
|
|
+ sub_nav.item :new_category, 'Nueva línea de producto', new_category_path
|
|
|
|
|
+ sub_nav.item :list_categories, 'Lista de líneas de producto', categories_path
|
|
|
|
|
+ sub_nav.item :divider_before_products, '#', divider: true
|
|
|
|
|
+ sub_nav.item :new_product, 'Nuevo Producto', new_product_path
|
|
|
sub_nav.item :list_products, 'Lista de productos', products_path
|
|
sub_nav.item :list_products, 'Lista de productos', products_path
|
|
|
sub_nav.item :divider_after_list_products, '#', divider: true
|
|
sub_nav.item :divider_after_list_products, '#', divider: true
|
|
|
sub_nav.item :stock_by_pointsale, 'Existencias', stock_by_pointsale_path
|
|
sub_nav.item :stock_by_pointsale, 'Existencias', stock_by_pointsale_path
|