Module: Crm::ExportedCatalogItemPacketsHelper
- Defined in:
- app/helpers/crm/exported_catalog_item_packets_helper.rb
Instance Method Summary collapse
Instance Method Details
#exported_packet_edit_tab_options(f) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/helpers/crm/exported_catalog_item_packets_helper.rb', line 14 def (f) { packet_details: { partial: 'edit_packet_details', locals: { f: f } }, attributes: { counter: @attributes.size, partial: 'edit_attributes', locals: { f: f } }, items: { counter: @exported_catalog_items.size, partial: 'edit_catalog_items', locals: { f: f } }, images: { partial: 'edit_item_images', locals: { f: f } }, literature: { partial: 'edit_literature', locals: { f: f } }, att_order: { partial: 'edit_attribute_order', locals: { f: f } } } end |
#exported_packet_tab_options ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/crm/exported_catalog_item_packets_helper.rb', line 3 def { attributes: { counter: @attributes.size, remote_href: tab_attributes_exported_catalog_item_packet_path(@packet) }, items: { counter: @exported_catalog_items.size, remote_href: tab_items_exported_catalog_item_packet_path(@packet) }, images: { remote_href: tab_images_exported_catalog_item_packet_path(@packet) }, literature: { remote_href: tab_literature_exported_catalog_item_packet_path(@packet) }, uploads: { counter: @packet.uploads.size, remote_href: tab_uploads_exported_catalog_item_packet_path(@packet) }, history: { title: "Transmit History", remote_href: tab_history_exported_catalog_item_packet_path(@packet) } } end |