daster/views/edit-number.dt

44 lines
2.1 KiB
Plaintext

- import structures;
div#number-data
table
tbody
tr
td.number-label Номер:
td.number-value
- if (edit)
input.number-input-main.input-focus#number-number(type='text', value='#{dataNumber.number}', disabled)
- else
input.number-input-main.input-focus#number-number(type='text', value='#{dataNumber.number}')
td.number-label Общие звонки:
td.number-value
input.number-input-cc.input-focus#number-all-cc(type='text', value='#{dataNumber.all_cc}')
tr
td.number-label Группа:
td.number-value
select#number-group
- foreach (group; groups)
- if (dataNumber.group == group.name)
option(selected, value='#{group.name}') #{group.comment}
- else
option(value='#{group.name}') #{group.comment}
td.number-label Белые звонки:
td.number-value
input.number-input-cc.input-focus#number-white-cc(type='text', value='#{dataNumber.white_cc}')
tr
td.number-label Список:
td.number-value
select#number-list
- foreach (list; lists)
- if (dataNumber.list == list.name)
option(selected, value='#{list.name}') #{list.comment}
- else
option(value='#{list.name}') #{list.comment}
td.number-label Черные звонки:
td.number-value
input.number-input-cc.input-focus#number-black-cc(type='text', value='#{dataNumber.black_cc}')
div.div-advanced
div.comment
div.comment-name Комментарий
div.comment-content
textarea.input-focus#number-comment #{dataNumber.comment}