form->csrf() ?> form->hidden('project_id', $values) ?> form->hidden('task_id', $values) ?> form->hidden('opposite_subtask_id', $values) ?> form->hidden('id', $values) ?> form->label(t('Subtask'), 'subtask') ?> form->text( 'subtask', $values, $errors, array( 'required', 'autofocus', 'placeholder="'.t('Start to type subtask title...').'"', 'title="'.t('Start to type subtask title...').'"', 'data-dst-field="opposite_subtask_id"', 'data-search-url="'.$this->url->href('SubtaskAjaxController', 'autocomplete', array('plugin' => 'timetrackingeditor', 'task_id' => $values['task_id'])).'"', ), 'autocomplete') ?> form->label(t('Start Date'), 'start') ?> form->text('start', $values, $errors, array('maxlength="10"', 'required'), 'form-date') ?> form->label(t('Time spent'), 'time_spent') ?> form->numeric('time_spent', $values, $errors, array('maxlength="10"', 'required'), 'form-numeric') ?> hours form->label(t('Comment'), 'comment') ?> form->textarea('comment', $values, $errors, array(), 'markdown-editor') ?> form->checkbox('is_billable', t('Billable?'), 1, $values['is_billable'] == 1) ?> modal->submitButtons(); ?>