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

30 lines
975 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.email
.form-label=t 'attributes.employee.email'
.form-field.half
= input type="email" valueBinding="model.email" action="save"
= errors model.errors.email
if isNotSelf
.form-row.manager
.form-label= t 'attributes.employee.manager'
.form-field= boolean-switch value=model.manager
.form-row.active
.form-label= t 'attributes.employee.active'
.form-field= boolean-switch value=model.active
.form-row.color
.form-label= t 'attributes.employee.color'
.form-field.full
span.current-color= colorbox model.color
each colors as |color|
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'