Sha256: 7019503f6dae6c4c53b159089db69c4752be8488ec9e0295858267177b4e6532

Contents?: true

Size: 1.21 KB

Versions: 28

Compression:

Stored size: 1.21 KB

Contents

.card{ class: card_classes(:product_rules, local_assigns[:active]) }
  = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__header' do
    %span.card__header-text= t('workarea.admin.product_rules.card.header')
    = inline_svg 'workarea/admin/icons/rules.svg', class: 'card__icon'

  - if local_assigns[:active].blank?
    .card__body
      - if product_list.product_rules.usable.empty?
        %p.card__empty-note= t('workarea.admin.product_rules.card.description')
        %ul
          %li= t('workarea.admin.product_rules.card.example_1')
          %li= t('workarea.admin.product_rules.card.example_2')
          %li= t('workarea.admin.product_rules.card.example_3')

        = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__button' do
          %span.button.button--small= t('workarea.admin.product_rules.card.empty_button')

      - else
        %ul.list-reset
          - product_list.product_rules.usable.each do |rule|
            %li= render_product_rule_summary_for(rule)
        = link_to product_list_product_rules_path(product_list.to_global_id), class: 'card__button' do
          %span.button.button--small= t('workarea.admin.product_rules.card.button')

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.15 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.11 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.10 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.9 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/product_rules/_card.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/product_rules/_card.html.haml