Sha256: 77bd019943a0b1856fd03e0e02268f9d83969951555ac93d5a15827157ebfe45

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

p.actions
  = create_button new_expense_gun_category_path, action: :create

  table.table.default#category
    thead
      tr
        th.actions.category-name
          = ::Dorsale::ExpenseGun::Category.t(:name)
        th.actions.category-code
          = ::Dorsale::ExpenseGun::Category.t(:code)
        th.actions.category-vat_deductible
          = ::Dorsale::ExpenseGun::Category.t(:vat_deductible)
        th.actions.category-action
          = "Action"

    tbody
      - @categories.each do |category|
        tr.actions.category
          td.actions.category-name
            = category.name
          td.actions.category-code
            = category.code
          td.actions.category-vat_deductible
            - if category.vat_deductible?
              = icon(:check)
            - else
              = icon(:remove)
          td.actions.category-action
            = update_button edit_expense_gun_category_path(category), id: "edit-#{category.id}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/views/dorsale/expense_gun/categories/index.html.slim
dorsale-3.0.2 app/views/dorsale/expense_gun/categories/index.html.slim