mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Changed empty task messageand added style.
This commit is contained in:
parent
9a157eea8c
commit
e5cd319ef5
3 changed files with 23 additions and 21 deletions
|
|
@ -78,5 +78,5 @@
|
|||
"streakCoins": "Streak Bonus!",
|
||||
"pushTaskToTop": "Push task to top",
|
||||
"pushTaskToBottom": "Push task to bottom",
|
||||
"emptyTask": "Please enter a <%= taskType %>."
|
||||
"emptyTask": "Enter the task's title first."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,6 +171,8 @@ for $stage in $stages
|
|||
border: 0
|
||||
float: right
|
||||
font-size: 0.85em
|
||||
.empty-task-notification
|
||||
height: 100%;
|
||||
|
||||
// an individual task entry
|
||||
// ------------------------
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ 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')
|
||||
div( ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask", {taskType: "{{list.type}}"}) )
|
||||
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)')
|
||||
|
|
|
|||
Loading…
Reference in a new issue