Files
mozo-backend/app/assets/javascripts/supplier/app/templates/modals/employee_edit.emblem
T

30 lines
982 B
Plaintext

p=t 'employee.modal.body_header'
.form-row.name
.form-label=t 'attributes.employee.name'
.form-field
= input valueBinding="model.name"
= errors model.errors.name
.form-row.name
.form-label=t 'attributes.employee.email'
.form-field
= input type="email" valueBinding="model.email" action="save"
= errors model.errors.email
if isNotSelf
.form-row.active
.form-label= t 'attributes.employee.manager'
.form-field= view "boolean-switch" value=model.manager
.form-row.active
.form-label= t 'attributes.employee.active'
.form-field= view "boolean-switch" value=model.active
.form-row.active
.form-label= t 'attributes.employee.color'
.form-field.full
span.current-color= colorbox model.color
each color in colors
a{action "setColor" color}= colorbox color
hr
button.modal-close{action "close"}=t 'employee.modal.close_button'
button.modal-confirm.right{action "save"} disabled=model.isInvalid
=t 'employee.modal.save_button'