Files
mozo-backend/app/assets/javascripts/supplier/app/templates/employees.emblem
T
2015-09-21 18:25:37 +02:00

30 lines
1.1 KiB
Plaintext

.row: .small-12.columns
h2.main-section-header=t 'models.plural.employee'
if employees
table.table
thead
tr
th.name=t 'attributes.employee.name'
th.email=t 'attributes.employee.email'
th.boolean= t 'attributes.employee.manager'
th.boolean= t 'attributes.employee.active'
th.colorbox= t 'attributes.employee.color'
th.actions=t 'helpers.actions.title'
tbody
each employees as |employee|
tr
td: link-to 'employee' employee: span= employee.name
td.email
= employee.email
= errors employee.errors.email
td.boolean= boolean employee.manager
td.boolean= boolean employee.active
td.colorbox= colorbox employee.color
td.actions
if (can "manage" "employees")
a.table-edit{ action 'editEmployee' employee }: span
a.table-destroy{ action 'destroyEmployee' employee }: span
.form-actions
if (can "manage" "employees")
a.form-action-new.new-employee-button{action "newEmployee"}= t 'employee.new_button'