Added tooltip for when a task is empty
This commit is contained in:
@@ -77,5 +77,6 @@
|
||||
"sureDelete": "Are you sure you want to delete this task?",
|
||||
"streakCoins": "Streak Bonus!",
|
||||
"pushTaskToTop": "Push task to top",
|
||||
"pushTaskToBottom": "Push task to bottom"
|
||||
"pushTaskToBottom": "Push task to bottom",
|
||||
"emptyTask": "Please enter a <%= taskType %>."
|
||||
}
|
||||
|
||||
@@ -27,7 +27,9 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
|
||||
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')
|
||||
span.glyphicon.glyphicon-plus
|
||||
div( ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask", {taskType: "{{list.type}}"}) )
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user