Files
mozo-backend/app/assets/javascripts/supplier/app/templates/tables/index.emblem
T

28 lines
954 B
Plaintext

.row: .small-12.columns
h2.main-section-header=t 'models.plural.table'
if tables
table.table
thead
tr
th=t 'attributes.table.number'
th.link=t 'models.section'
/th.timestamp= t 'attributes.table.created_at'
th.actions=t 'helpers.actions.title'
tbody
each tables as |table|
tr
td= link-to 'table' table: span= table.number
td.link
if table.section
= link-to 'section' table.section
= table.section.title
/td.timestamp=time table.created_at
td.actions
if (can "manage" "tables")
a.table-edit{ action 'editTable' table }: span
a.table-destroy{ action 'destroyTable' table }: span
.form-actions
if (can "manage" "tables")
a.form-action-new.new-table-button{action "newTable"}= t 'table.new_button'
= qr-codes-link