mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
11 lines
939 B
Text
11 lines
939 B
Text
|
|
form.task-add(name='new{{list.type}}form', ng-hide='obj._locked', ng-submit='addTask(obj[list.type+"s"],list)')
|
||
|
|
textarea(rows='6', task-focus='list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolderBulk}}', ng-if='list.bulk', ui-keydown='{"meta-enter ctrl-enter":"addTask(obj[list.type+\'s\'],list)"}', required)
|
||
|
|
input(type='text', task-focus='!list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolder}}', ng-if='!list.bulk', required)
|
||
|
|
button(type='submit', ng-disabled='new{{list.type}}form.$invalid')
|
||
|
|
div.empty-task-notification( ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask") )
|
||
|
|
span.glyphicon.glyphicon-plus
|
||
|
|
span.glyphicon.glyphicon-plus(ng-show='!new{{list.type}}form.$invalid')
|
||
|
|
small.help-block.btn-link.pull-right(ng-click='toggleBulk(list)')
|
||
|
|
span(ng-if='!list.bulk')=env.t('addmultiple')
|
||
|
|
span(ng-if='list.bulk')=env.t('addsingle')
|