mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
72 lines
3.0 KiB
Plaintext
72 lines
3.0 KiB
Plaintext
div(ng-if='::task.type!="reward"')
|
|
button.advanced-options-toggle.option-title.mega(type='button',
|
|
ng-click='task._advanced = !task._advanced', tooltip=env.t('expandCollapse'))
|
|
=env.t('advancedOptions')
|
|
|
|
div(ng-show='task._advanced')
|
|
div(ng-if='::task.type == "daily"')
|
|
.form-group
|
|
legend.option-title=env.t('startDate')
|
|
.input-group
|
|
input.form-control(type='text', ng-model='task.startDate',
|
|
datepicker-popup='M/dd/yyyy', is-open='task._isDatePickerOpen',
|
|
ng-required='true', close-text='Close')
|
|
span.input-group-btn
|
|
button.btn.btn-default(type='button' ng-click='openDatePicker($event, task)')
|
|
i.glyphicon.glyphicon-calendar
|
|
|
|
hr
|
|
|
|
.form-group
|
|
legend.option-title=env.t('repeat')
|
|
select.form-control(ng-model='task.frequency')
|
|
option(value='weekly')=env.t('repeatWeek')
|
|
option(value='daily')=env.t('repeatDays')
|
|
|
|
include ./dailies/repeat_options
|
|
|
|
hr
|
|
|
|
fieldset.option-group.advanced-option(ng-show="task._advanced")
|
|
|
|
legend.option-title
|
|
a.hint.priority-multiplier-help(href='http://habitrpg.wikia.com/wiki/Difficulty', target='_blank', popover-title=env.t('difficultyHelpTitle'), popover-trigger='mouseenter', popover=env.t('difficultyHelpContent'))=env.t('difficulty')
|
|
ul.priority-multiplier
|
|
li
|
|
button(type='button', ng-class='{active: task.priority==1 || !task.priority}',
|
|
ng-click='task.challenge.id || (task.priority=1)')
|
|
=env.t('easy')
|
|
li
|
|
button(type='button', ng-class='{active: task.priority==1.5}',
|
|
ng-click='task.challenge.id || (task.priority=1.5)')
|
|
=env.t('medium')
|
|
li
|
|
button(type='button', ng-class='{active: task.priority==2}',
|
|
ng-click='task.challenge.id || (task.priority=2)')
|
|
=env.t('hard')
|
|
|
|
span(ng-if='task.type=="daily"')
|
|
legend.option-title.pull-left=env.t('restoreStreak')
|
|
input.option-content(type='number', ng-model='task.streak')
|
|
|
|
div(ng-if='::(user.preferences.allocationMode == "taskbased" && user.preferences.automaticAllocation) || $state.is("options.social.challenges")')
|
|
legend.option-title.pull-left=env.t('attributes')
|
|
ul.task-attributes
|
|
li
|
|
button(type='button', ng-class='{active: task.attribute=="str"}',
|
|
ng-click='task.attribute="str"')
|
|
=env.t('physical')
|
|
li
|
|
button(type='button', ng-class='{active: task.attribute=="int"}',
|
|
ng-click='task.attribute="int"')
|
|
=env.t('mental')
|
|
li
|
|
button(type='button', ng-class='{active: task.attribute=="con"}',
|
|
ng-click='task.attribute="con"')
|
|
=env.t('social')
|
|
li
|
|
button(type='button', ng-class='{active: task.attribute=="per"}',
|
|
ng-click='task.attribute="per"',
|
|
popover=env.t('otherExamples'), popover-trigger='mouseenter', popover-placement='top')
|
|
=env.t('other')
|