Dailies new subheading and summary change (#8799)

* Dailies new subheading and summary change

* summary change
This commit is contained in:
LlamaLad 2017-07-06 15:31:13 -05:00 committed by Sabe Jones
parent c1e5d8b573
commit 48bbc22fb4
3 changed files with 10 additions and 0 deletions

View file

@ -357,6 +357,9 @@ angular.module('habitrpg')
var numberToShortDay = Shared.DAY_MAPPING;
function generateSummary(task) {
if (task._edit.everyX === 0)
return window.env.t('repeatZero');
var frequencyPlural = frequencyMap[task._edit.frequency];
var repeatDays = '';

View file

@ -147,6 +147,10 @@
"taskApprovalHasBeenRequested": "Approval has been requested",
"approvals": "Approvals",
"approvalRequired": "Approval Required",
"repeatZero": "Daily is never due",
"repeatType": "Repeat Type",
"repeatTypeHelpTitle": "What kind of repeat is this?",
"repeatTypeHelp": "Select \"Daily\" if you want this task to repeat every day or every third day, etc. Select \"Weekly\"if you want it to repeat on certain days of the week. If you select \"Monthly\" or \"Yearly\", adjust the Start Date to control which day of the month or year the task will be due on.",
"weekly": "Weekly",
"monthly": "Monthly",
"yearly": "Yearly",

View file

@ -8,6 +8,9 @@ fieldset.option-group.advanced-option(ng-show="task.type === 'daily'")
br
legend.option-title
span.hint(popover-title=env.t('repeatTypeHelpTitle'), popover=env.t("repeatTypeHelp"), popover-trigger='mouseenter')
=env.t('repeatType')
select.form-control(ng-model='task._edit.frequency', ng-disabled='!canEdit(task)')
option(value='daily')=env.t('daily')
option(value='weekly')=env.t('weekly')