Sha256: d1381784944c394def2d0c2655a277bcbb06ff61f5220b4f4828e6738404a3e9

Contents?: true

Size: 1.78 KB

Versions: 54

Compression:

Stored size: 1.78 KB

Contents

.grid.grid--auto.grid--flush.grid--center
  .grid__cell
    .card{ class: card_classes(:attributes, local_assigns[:active]) }
      = link_to edit_inventory_sku_path(model), class: 'card__header' do
        %span.card__header-text= t('workarea.admin.cards.attributes.title')
        = inline_svg 'workarea/admin/icons/attributes.svg', class: 'card__icon'

      - if local_assigns[:active].blank?
        .card__body
          %ul.list-reset
            %li
              %strong= t('workarea.admin.fields.policy')
              = model.policy.titleize.presence
            %li
              %strong= t('workarea.admin.fields.available')
              = model.available
            %li
              %strong= t('workarea.admin.fields.backordered')
              = model.backordered
            - if model.backordered_until.present?
              %li
                %strong= t('workarea.admin.fields.backordered_until')
                = model.backordered_until.to_s(:date_only)
            %li
              %strong= t('workarea.admin.fields.purchased')
              = model.purchased
            %li
              %strong= t('workarea.admin.fields.reserve')
              = model.reserve
            %li
              %strong= t('workarea.admin.fields.updated_at')
              #{local_time_ago(model.updated_at)}
            %li
              %strong= t('workarea.admin.fields.created_at')
              #{local_time_ago(model.created_at)}
          = link_to edit_inventory_sku_path(model), class: 'card__button' do
            %span.button.button--small= t('workarea.admin.cards.attributes.button')

  = append_partials('admin.inventory_sku_cards', model: model, active: local_assigns[:active])

  .grid__cell
    = render 'workarea/admin/timeline/card', timeline: model.timeline, active: local_assigns[:active]

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.15 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.34 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/inventory_skus/_cards.html.haml
workarea-admin-3.4.33 app/views/workarea/admin/inventory_skus/_cards.html.haml