ef02e59590
* Added initial should do weekly tests * Added support back in for days of the week and every x day * Added better week day mapper * Added initial monthly * Added every x months * Added yearlies * Fixed every nth weekdy of month * Fixed tests to check every x week on weekday * Began combining x month with nth weekday * Added every x month combined with date and weekday * Fixed lint issues * Saved moment-recurr to package.json * Added new repeat fields * Added UI for repeatables * Ensured only dalies are affected by summary * Added local strings * Updated npm shrinkwrap * Shared day map constant * Updated shrinkwrap * Added ui back * Updated copy of test cases * Added new translation strings * Updated shrinkwrap * Fixed broken test * Made should do tests static for better consitency * Fixed issue with no repeat * Fixed line endings * Added frequency enum values * Fixed spacing
93 lines
4.5 KiB
Plaintext
93 lines
4.5 KiB
Plaintext
div(ng-if='(task.type !== "reward") || (!obj.auth && obj.purchased && obj.purchased.active)')
|
|
button.advanced-options-toggle.option-title.mega(type='button',
|
|
ng-class='{active: task._edit._advanced}',
|
|
ng-click='task._edit._advanced = !task._edit._advanced', tooltip=env.t('expandCollapse'))
|
|
=env.t('advancedOptions')
|
|
|
|
fieldset.option-group.advanced-option(ng-if="task.userId" ng-show="task._edit._advanced")
|
|
legend.option-title
|
|
a.hint(href='http://habitica.wikia.com/wiki/Task_Alias', target='_blank', popover-trigger='mouseenter', popover="{{::env.t('taskAliasPopover')}} {{::task._edit.alias ? '\n\n\' + env.t('taskAliasPopoverWarning') : ''}}")=env.t('taskAlias')
|
|
input.form-control(ng-model='task._edit.alias' type='text' placeholder=env.t('taskAliasPlaceholder'))
|
|
|
|
include ./habits/frequency
|
|
|
|
fieldset.option-group.advanced-option(ng-show="task._edit._advanced", ng-if="!obj.auth && obj.purchased && obj.purchased.active")
|
|
group-tasks-actions(task='task', group='obj')
|
|
|
|
div(ng-show='task._edit._advanced')
|
|
div(ng-if='::task.type == "daily"')
|
|
.form-group
|
|
legend.option-title
|
|
span.hint(popover-title=env.t('startDateHelpTitle'), popover=env.t("startDateHelp"), popover-trigger='mouseenter')
|
|
=env.t('startDate')
|
|
|
|
input.form-control(type='text', ng-model='task._edit.startDate',
|
|
datepicker-popup='{{::user.preferences.dateFormat}}', is-open='datepickerOpened',
|
|
ng-click='datepickerOpened = true', ng-disabled='!canEdit(task)')
|
|
|
|
hr
|
|
|
|
.form-group
|
|
legend.option-title=env.t('repeat')
|
|
select.form-control(ng-model='task._edit.frequency', ng-disabled='!canEdit(task)')
|
|
option(value='daily')=env.t('daily')
|
|
option(value='weekly')=env.t('weekly')
|
|
option(value='monthly')=env.t('monthly')
|
|
option(value='yearly')=env.t('yearly')
|
|
|
|
//- select.form-control(ng-model='task._edit.frequency', ng-disabled='!canEdit(task)')
|
|
//- option(value='weekly')=env.t('repeatWeek')
|
|
//- option(value='daily')=env.t('repeatDays')
|
|
|
|
include ./dailies/repeat_options
|
|
|
|
.form-group(ng-show='task._edit.frequency === "monthly"')
|
|
legend.option-title=env.t('repeatsOn')
|
|
label
|
|
input(type="radio", ng-model='task._edit.repeatsOn', value='dayOfMonth')
|
|
=env.t('dayOfMonth')
|
|
label
|
|
input(type="radio", ng-model='task._edit.repeatsOn', value='dayOfWeek')
|
|
=env.t('dayOfWeek')
|
|
|
|
.form-group
|
|
legend.option-title=env.t('summary')
|
|
div {{summary}}
|
|
|
|
hr
|
|
|
|
fieldset.option-group.advanced-option(ng-show="task._edit._advanced")
|
|
legend.option-title
|
|
a.hint.priority-multiplier-help(href='http://habitica.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._edit.priority==0.1}',
|
|
ng-click='!canEdit(task) || (task._edit.priority=0.1)')
|
|
=env.t('trivial')
|
|
li
|
|
button(type='button', ng-class='{active: task._edit.priority==1 || !task._edit.priority}',
|
|
ng-click='!canEdit(task) || (task._edit.priority=1)')
|
|
=env.t('easy')
|
|
li
|
|
button(type='button', ng-class='{active: task._edit.priority==1.5}',
|
|
ng-click='!canEdit(task) || (task._edit.priority=1.5)')
|
|
=env.t('medium')
|
|
li
|
|
button(type='button', ng-class='{active: task._edit.priority==2}',
|
|
ng-click='!canEdit(task) || (task._edit.priority=2)')
|
|
=env.t('hard')
|
|
|
|
span(ng-if='task.type=="daily" && !$state.includes("options.social.challenges")')
|
|
legend.option-title.pull-left=env.t('restoreStreak')
|
|
input.option-content(type='number', ng-model='task._edit.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
|
|
each attribute, short in {str: 'strength', int: 'intelligence', con: 'constitution', per: 'perception'}
|
|
li
|
|
button(type='button', ng-class='{active: task._edit.attribute=="#{short}"}',
|
|
ng-click='task._edit.attribute="#{short}"',
|
|
popover=env.t('#{attribute}Example'), popover-trigger='mouseenter', popover-placement='top')
|
|
=env.t(attribute)
|