2015-06-11 07:34:38 +00:00
< div ng - app = " Tasks " ng - cloak ng - controller = " AppController " ng - click = " closeAll( $event ) " id = " app " class = " handler " >
2014-07-26 08:24:31 +00:00
< div id = " app-navigation " ng - controller = " ListController " >
2015-05-13 12:22:16 +00:00
< ul id = " collections " >
< li ng - repeat = " collection in collections " id = " collection_ { { collection.id }} " rel = " { { collection.id }} "
2014-05-27 17:59:35 +00:00
ng - class = " { 'animate-up': hideCollection(collection.id), active: collection.id==route.listID} " oc - drop - task >
2015-05-13 12:22:16 +00:00
< a href = " #/lists/ { { collection.id }} " >
< span class = " icon collection- { { collection.id }} " >< text ng - show = " collection.id=='today' " >< ? php p ( $_ [ 'DOM' ]); ?> </text></span>
2015-05-28 15:01:58 +00:00
< span class = " title " > {{ collection . displayname }} </ span >
2015-05-13 12:22:16 +00:00
</ a >
2015-05-28 15:01:58 +00:00
< div class = " app-navigation-entry-utils " >
< ul >
< li class = " app-navigation-entry-utils-counter " > {{ getCollectionString ( collection . id ) }} </ li >
</ ul >
</ div >
2015-05-13 12:22:16 +00:00
</ li >
2015-06-14 17:10:08 +00:00
< li ng - repeat = " list in lists " id = " list_ { { list.id }} " rel = " { { list.id }} " class = " with-menu handler close-new "
2015-06-11 07:34:38 +00:00
ng - class = " { active: list.id==route.listID} " oc - drop - task >
< a href = " #/lists/ { { list.id }} " style = " border-right: 4px solid { { list.calendarcolor }}; " ng - dblclick = " editName(list.id) " ng - if - start = " route.listparameter != 'name' || route.listID != list.id " >
2015-05-13 12:22:16 +00:00
< span class = " icon list-list " ></ span >
2015-06-11 07:34:38 +00:00
< span class = " title " > {{ list . displayname }} </ span >
2015-05-13 12:22:16 +00:00
</ a >
< div class = " app-navigation-entry-utils " >
< ul >
2015-06-11 07:34:38 +00:00
< li class = " app-navigation-entry-utils-counter " > {{ getListCount ( list . id , 'all' ) }} </ li >
2015-05-13 12:22:16 +00:00
< li class = " app-navigation-entry-utils-menu-button svg " >< button ></ button ></ li >
</ ul >
</ div >
2015-06-11 07:34:38 +00:00
< div class = " app-navigation-entry-menu " ng - if - end >
2015-05-13 12:22:16 +00:00
< ul >
< li >< button class = " icon-rename svg " title = " rename " ng - click = " editName(list.id) " ></ button ></ li >
< li >< button class = " icon-delete svg " title = " delete " ng - click = " deleteList(list.id) " ng - show = " showDelete(list.id) " ></ button ></ li >
</ ul >
</ div >
2015-06-14 17:03:02 +00:00
< div class = " app-navigation-entry-edit " ng - if = " route.listparameter == 'name' && route.listID == list.id " >
2015-06-11 07:34:38 +00:00
< form >
< input ng - model = " list.displayname " class = " edit " type = " text " ng - keydown = " checkName( $event ) " autofocus - on - insert >
2015-06-11 19:09:03 +00:00
< input type = " submit " value = " " class = " action icon-checkmark svg " ng - click = " submitNewName() " >
2015-06-11 07:34:38 +00:00
</ form >
</ div >
2015-05-13 12:22:16 +00:00
</ li >
2015-06-14 19:20:19 +00:00
< li class = " newList handler " >
2015-06-14 18:57:09 +00:00
< a class = " addlist " ng - click = " startAddingList() " oc - click - focus = " { selector: '#newList', timeout: 0} " ng - hide = " status.addingList " >
2015-05-13 12:22:16 +00:00
< span class = " icon detail-add " ></ span >
2015-06-14 18:57:09 +00:00
< span class = " title " >< ? php p ( $l -> t ( 'Add List...' )); ?> </span>
2015-05-13 12:22:16 +00:00
</ a >
2015-06-14 18:57:09 +00:00
< div class = " app-navigation-entry-edit " ng - show = " status.addingList " >
< form ng - disabled = " isAddingList " >
< input id = " newList " ng - model = " status.newListName " class = " edit " type = " text " autofocus - on - insert
placeholder = " <?php p( $l->t ('New List')); ?> " ng - keydown = " checkListInput( $event ) " >
< input type = " submit " value = " " class = " action icon-checkmark svg " ng - click = " submitNewList( $event ) " >
</ form >
</ div >
2015-06-11 07:34:38 +00:00
</ li >
2015-05-13 12:22:16 +00:00
</ ul >
2015-05-13 13:15:31 +00:00
< div id = " app-settings " ng - controller = " SettingsController " >
2015-05-13 12:22:16 +00:00
< div id = " app-settings-header " >
< button class = " settings-button " data - apps - slide - toggle = " #app-settings-content " ></ button >
</ div >
< div id = " app-settings-content " >
2015-05-28 15:33:21 +00:00
< label for = " startOfWeek " >< ? php p ( $l -> t ( 'Start of week' )); ?> </label>
2015-05-13 12:22:16 +00:00
< select id = " startOfWeek " ng - change = " setStartOfWeek() " ng - model = " settingsmodel.getById('various').startOfWeek " ng - options = " startOfWeekOption.id as startOfWeekOption.name for startOfWeekOption in startOfWeekOptions " ></ select >
2015-05-13 13:15:31 +00:00
< h2 class = " bold " >< ? php p ( $l -> t ( 'Visibility of Smart Collections' )); ?> </h2>
< ul >
< li ng - repeat = " collection in collections " >
< span class = " icon collection- { { collection.id }} " >< text ng - show = " collection.id=='today' " >< ? php p ( $_ [ 'DOM' ]); ?> </text></span>
2015-06-11 07:34:38 +00:00
< label for = " visibilityCollection- { { collection.id}} " class = " title " > {{ collection . displayname }} </ label >
2015-05-13 13:15:31 +00:00
< select id = " visibilityCollection- { { collection.id}} " ng - change = " setVisibility(collection.id) " ng - model = " collection.show " ng - options = " collectionOption.id as collectionOption.name for collectionOption in collectionOptions " ></ select >
</ li >
</ ul >
2015-05-13 12:22:16 +00:00
</ div >
2014-03-28 19:11:56 +00:00
</ div >
</ div >
2014-07-26 08:24:31 +00:00
< div id = " app-content " ng - controller = " TasksController " ng - class = " { 'details-visible':route.taskID} " >
< div class = " content-wrapper " >
2015-05-28 19:20:41 +00:00
< div id = " add-task " class = " add-task handler " ng - show = " showInput() " ng - class = " { 'focus':status.focusTaskInput} " >
2014-07-26 08:24:31 +00:00
< a class = " input-star " >
2015-05-13 12:22:16 +00:00
< span class = " icon input-star " ></ span >
2014-07-26 08:24:31 +00:00
</ a >
< a class = " input-date " >
< span class = " icon input-date " ></ span >
</ a >
< form ng - submit = " addTask(taskName) " name = " addTaskForm " >
< input id = " target " ng - disabled = " isAddingTask " ng - click = " focusInput() " class = " transparent " placeholder = " { { getAddString() }} " ng - model = " taskName "
2015-05-13 12:22:16 +00:00
ng - keydown = " checkTaskInput( $event ) " />
2014-07-26 08:24:31 +00:00
</ form >
</ div >
2015-05-22 18:48:51 +00:00
< div class = " task-list " ng - class = " { 'completed-hidden':!settingsmodel.getById('various').showHidden} " >
2014-07-26 08:24:31 +00:00
< ? php print_unescaped ( $this -> inc ( 'part.tasklist' )); ?>
< ? php print_unescaped ( $this -> inc ( 'part.collectionall' )); ?>
< ? php print_unescaped ( $this -> inc ( 'part.collectionweek' )); ?>
2015-05-28 19:20:41 +00:00
< div id = " searchresults " ></ div >
2015-02-25 20:14:44 +00:00
< div class = " task-item template " >
< div class = " task-body " >
< div class = " percentdone " ></ div >
2015-05-28 19:20:41 +00:00
< a class = " task-checkbox " name = " toggleCompleted " ng - click = " toggleCompleted() " >
2015-02-25 20:14:44 +00:00
< span class = " icon task-checkbox " ></ span >
</ a >
< a class = " icon task-separator " ></ a >
2015-05-28 19:20:41 +00:00
< a class = " task-star " ng - click = " toggleStarred(task.id) " >
2015-02-25 20:14:44 +00:00
< span class = " icon task-star faded " ></ span >
</ a >
< a class = " duedate " ng - class = " { overdue: TasksModel.overdue(task.due)} " > {{ task . due | dateTaskList }} </ a >
< div class = " title-wrapper " >
< span class = " title " ></ span >
< span class = " icon task-attachment " ></ span >
</ div >
</ div >
</ div >
2014-07-26 08:24:31 +00:00
</ div >
2014-03-28 19:11:56 +00:00
</ div >
2015-02-08 19:13:16 +00:00
< div id = " task-details " ng - class = " { 'details-visible':route.taskID} " >
< div class = " content-wrapper " >
< ? php print_unescaped ( $this -> inc ( 'part.details' )); ?>
</ div >
2014-03-28 19:11:56 +00:00
</ div >
</ div >
2015-05-28 15:33:21 +00:00
</ div >