|
1 | | -- if not form.object.new_record? and @no_show_list.nil? |
2 | | - %div |
3 | | - %label{for: "addTaskTaskList#{form.object.id}"} |
4 | | - = t('task_list') |
5 | | - \: |
6 | | - %span.label_required * |
7 | | - = form.select 'task_list_id', TaskList.select_list(@active_project), {}, id: "addTaskTaskList#{task.id}" |
8 | | - %div |
9 | | - %label{for: "addTaskText#{form.object.id}"} |
10 | | - = t('text') |
11 | | - \: |
12 | | - %span.label_required * |
13 | | - = form.text_area 'text', id: "addTaskText#{form.object.id}", class: 'short autofocus', rows: 10, cols: 40 |
14 | | - %div |
15 | | - %label{for: "taskAssignedTo#{form.object.id}"} |
16 | | - = t('assign_to') |
17 | | - \: |
18 | | - = assign_project_select_form form, 'task', 'assigned_to_id', @active_project, id: "taskAssignedTo#{form.object.id}" |
19 | | - %div |
20 | | - = form.check_box 'send_notification', '1', id: "taskSendNotification#{form.object.id}", class: 'checkbox' |
21 | | - %label.checkbox{for: "taskSendNotification#{form.object.id}"}= t('send_email_notification_to_user') |
22 | | - %div |
23 | | - %label{for: "addTaskHours"} |
24 | | - = t('estimated_hours') |
25 | | - \: |
26 | | - = form.text_field 'estimated_hours', id: 'addTaskHours', class: 'short' |
| 1 | += error_messages_for :task |
| 2 | +%div |
| 3 | + %label{for: "addTaskTaskList#{form.object.id}"} |
| 4 | + = t('task_list') |
| 5 | + \: |
| 6 | + %span.label_required * |
| 7 | + = form.select 'task_list_id', TaskList.select_list(@active_project), {}, id: "addTaskTaskListSelect#{form.object.id}" |
| 8 | +%div |
| 9 | + %label{for: "addTaskText#{form.object.id}"} |
| 10 | + = t('text') |
| 11 | + \: |
| 12 | + %span.label_required * |
| 13 | + = form.text_area 'text', id: "addTaskText#{form.object.id}", class: 'short autofocus', rows: 10, cols: 40 |
| 14 | +%div |
| 15 | + %label{for: "taskAssignedTo#{form.object.id}"} |
| 16 | + = t('assign_to') |
| 17 | + \: |
| 18 | + = form_assign_project_select form, 'assigned_to_id', @active_project, id: "taskAssignedTo#{form.object.id}" |
| 19 | +%div |
| 20 | + = form.check_box :'send_notification', id: "taskSendNotification#{form.object.id}", class: 'checkbox' |
| 21 | + %label.checkbox{for: "taskSendNotification#{form.object.id}"}= t('send_email_notification_to_user') |
| 22 | +%div |
| 23 | + %label{for: "addTaskHours"} |
| 24 | + = t('estimated_hours') |
| 25 | + \: |
| 26 | + = form.text_field 'estimated_hours', id: 'addTaskHours', class: 'short' |
0 commit comments