super-productivity/app/scripts/dialogs/task-selection/task-selection-c.html
2017-01-03 18:32:15 +01:00

35 lines
No EOL
1.1 KiB
HTML

<md-dialog aria-label="Time estimation dialog"
class="dialog-task-selection">
<md-dialog-content layout-padding>
<form ng-submit="vm.submit()">
<p>Select the task you want to work on next or just press enter to work on</p><p>
<strong>{{ vm.undoneTasks[0].title }}</strong></p>
<md-autocomplete
md-selected-item="vm.selectedTask"
md-search-text="vm.searchText"
md-items="task in vm.undoneTasks"
md-item-text="task.title"
md-min-length="0"
md-autofocus
placeholder="Select a task to start with">
<md-item-template>
<span md-highlight-text="vm.searchText"
md-highlight-flags="^i">{{task.title}}</span>
</md-item-template>
<md-not-found>
No states matching "{{vm.searchText}}" were found.
<a ng-click="vm.newState(vm.searchText)">Create a new one!</a>
</md-not-found>
</md-autocomplete>
</form>
</md-dialog-content>
<md-dialog-actions>
<md-button ng-click="vm.submit()"
class="md-primary md-raised">
Go go go!
</md-button>
</md-dialog-actions>
</md-dialog>