2015-05-28 19:20:41 +00:00
< div ng - controller = " DetailsController " ng - click = " endEdit( $event ) " class = " handler " >
2016-03-14 22:06:23 +00:00
< div ng - show = " TaskState()=='found' " ng - class = " { 'disabled': !task.calendar.writable} " >
2016-03-06 14:04:10 +00:00
< a class = " detail-checkbox " ng - click = " toggleCompleted(task) " >
2016-03-14 22:06:23 +00:00
< span class = " icon detail-checkbox " ng - class = " { 'detail-checked':task.completed, 'disabled': !task.calendar.writable} " ></ span >
2015-02-07 11:56:20 +00:00
</ a >
2016-03-06 14:04:10 +00:00
< a class = " detail-star " ng - click = " toggleStarred(task) " >
2016-03-14 22:06:23 +00:00
< span class = " icon detail-star " ng - class = " { 'high':task.priority>5,'medium':task.priority==5,'low':task.priority > 0 && task.priority < 5, 'disabled': !task.calendar.writable} " ></ span >
2015-02-07 11:56:20 +00:00
</ a >
2015-05-23 18:59:35 +00:00
< div class = " title " ng - class = " { 'editing':route.parameter=='name'} " >
2016-03-14 22:06:23 +00:00
< span class = " title-text handler " ng - class = " { 'strike-through':task.completed} " ng - click = " editName( $event , task) "
2016-03-06 14:04:10 +00:00
oc - click - focus = " { selector: '#editName', timeout: 0} " ng - bind - html = " task.summary | linky:'_blank': { rel: 'nofollow'} " ></ span >
2015-05-28 19:20:41 +00:00
< div class = " expandable-container handler " >
2015-02-07 11:56:20 +00:00
< div class = " expandingArea active " >
2016-03-06 14:04:10 +00:00
< pre >< span > {{ task . summary }} </ span >< br /></ pre >
2016-03-14 13:52:24 +00:00
< textarea id = " editName " maxlength = " 200 " ng - model = " task.summary " ng - keydown = " endName( $event ) " ng - change = " triggerUpdate(task) " ></ textarea >
2015-02-07 11:56:20 +00:00
</ div >
2014-03-28 19:11:56 +00:00
</ div >
</ div >
2015-02-07 11:56:20 +00:00
< div class = " body " watch - top ng - style = " { top:divTop} " >
2016-03-09 19:02:45 +00:00
< div class = " section detail-start handler " ng - class = " { 'date':isDue(task.start), 'editing':route.parameter=='startdate'} " ng - click = " editStart( $event , task) " >
2015-02-07 11:56:20 +00:00
<!-- oc - click - focus = " { selector: 'div.detail-start input.datepicker-input', timeout: 0} " -->
< span class = " icon detail-start " ng - class = " { 'overdue':isOverDue(task.start)} " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-title " ng - class = " { 'overdue':isOverDue(task.start)} " >
2015-02-07 11:56:20 +00:00
< text > {{ task . start | startDetails }} </ text >
</ div >
2016-03-09 19:02:45 +00:00
< a class = " detail-delete handler end-edit " ng - click = " deleteStartDate(task) " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
2015-05-28 19:20:41 +00:00
< span class = " icon detail-save handler end-edit " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-edit " >
2015-02-07 11:56:20 +00:00
< input class = " datepicker-input medium focus " type = " text " key - value = " " placeholder = " dd.mm.yyyy " value = " { { task.start | dateTaskList }} " datepicker = " start " >
2015-05-28 19:20:41 +00:00
< input class = " timepicker-input medium focus handler " type = " text " key - value = " " placeholder = " hh:mm " value = " { { task.start | timeTaskList }} " timepicker = " start " >
2015-02-07 11:56:20 +00:00
</ div >
2014-03-28 19:11:56 +00:00
</ div >
2016-03-09 19:02:45 +00:00
< div class = " section detail-date handler " ng - class = " { 'date':isDue(task.due), 'editing':route.parameter=='duedate'} " ng - click = " editDueDate( $event , task) " >
2015-02-07 11:56:20 +00:00
<!-- oc - click - focus = " { selector: 'div.detail-date input.datepicker-input', timeout: 0} " -->
< span class = " icon detail-date " ng - class = " { 'overdue':isOverDue(task.due)} " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-title " ng - class = " { 'overdue':isOverDue(task.due)} " >
2015-02-07 11:56:20 +00:00
< text > {{ task . due | dateDetails }} </ text >
2014-05-27 17:59:35 +00:00
</ div >
2016-03-09 19:02:45 +00:00
< a class = " detail-delete handler end-edit " ng - click = " deleteDueDate(task) " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
2015-05-28 19:20:41 +00:00
< span class = " icon detail-save handler end-edit " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-edit " >
2015-02-07 11:56:20 +00:00
< input class = " datepicker-input medium focus " type = " text " key - value = " " placeholder = " dd.mm.yyyy " value = " { { task.due | dateTaskList }} " datepicker = " due " >
2015-05-28 19:20:41 +00:00
< input class = " timepicker-input medium focus " type = " text " key - value = " " placeholder = " hh:mm " value = " { { task.due | timeTaskList }} " timepicker = " due " >
2014-03-28 19:11:56 +00:00
</ div >
</ div >
2016-03-14 22:06:23 +00:00
<!-- < div class = " section detail-reminder handler " ng - class = " { 'date':isDue(task.reminder.date), 'editing':route.parameter=='reminder'} " ng - click = " editReminder( $event , task) " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-reminder " ng - class = " { 'overdue':isOverDue(task.reminder.date)} " ></ span >
< span class = " icon detail-remindertype " ng - click = " changeReminderType(task) " ng - show = " task.due || task.start " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-title " ng - class = " { 'overdue':isOverDue(task.reminder.date)} " >
2015-02-07 11:56:20 +00:00
< text rel = " " > {{ task . reminder | reminderDetails : this }} </ text >
</ div >
2015-05-28 19:20:41 +00:00
< a class = " detail-delete handler end-edit " ng - click = " deleteReminder() " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
2015-05-28 19:20:41 +00:00
< span class = " icon detail-save handler end-edit " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-edit " ng - switch = 'reminderType(task)' >
2015-02-07 11:56:20 +00:00
< div ng - switch - when = " DATE-TIME " >
< input class = " datepicker-input medium focus " type = " text " key - value = " " placeholder = " dd.mm.yyyy " value = " { { task.reminder.date | dateTaskList }} " datepicker = " reminder " >
2015-05-28 19:20:41 +00:00
< input class = " timepicker-input medium focus " type = " text " key - value = " " placeholder = " hh:mm " value = " { { task.reminder.date | timeTaskList }} " timepicker = " reminder " >
2015-02-07 11:56:20 +00:00
</ div >
< div ng - switch - when = " DURATION " >
2016-03-06 14:04:10 +00:00
< input ng - change = " setReminderDuration(task) " class = " duration-input medium focus " type = " number " key - value = " " placeholder = " " ng - model = " task.reminder.duration[task.reminder.duration.token] " >
2015-02-07 11:56:20 +00:00
< select ng - model = " task.reminder.duration.token " ng - options = " duration.id as duration.names for duration in durations " ></ select >
2016-03-06 14:04:10 +00:00
< select ng - change = " setReminderDuration(task) " ng - model = " task.reminder.duration.params " ng - options = " param as param.name for param in filterParams(params) track by param.id " ></ select >
2015-02-07 11:56:20 +00:00
</ div >
</ div >
2016-03-14 14:07:57 +00:00
</ div > -->
2016-03-14 22:06:23 +00:00
< div class = " section detail-priority handler " ng - class = " { 'editing':route.parameter=='priority','high':task.priority>5,'medium':task.priority==5,'low':task.priority > 0 && task.priority < 5, 'date':task.priority>0} " ng - click = " editPriority( $event , task) " >
2015-06-19 19:14:22 +00:00
< span class = " icon detail-priority " ></ span >
< div class = " section-title " >
< text > {{ task . priority | priorityDetails }} </ text >
</ div >
2016-03-07 20:50:16 +00:00
< a class = " detail-delete handler end-edit " ng - click = " deletePriority(task) " >
2015-06-19 19:14:22 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
< span class = " icon detail-save handler end-edit " ></ span >
< div class = " section-edit " >
2016-03-14 13:52:24 +00:00
< input class = " priority-input " type = " text " ng - model = " task.priority " ng - change = " triggerUpdate(task) " >
< input type = " range " ng - model = " task.priority " min = " 0 " max = " 9 " step = " 1 " ng - change = " triggerUpdate(task) " >
2015-06-19 19:14:22 +00:00
</ div >
</ div >
2016-03-14 22:06:23 +00:00
< div class = " section detail-complete handler " ng - class = " { 'editing':route.parameter=='percent', 'date':task.complete>0} " ng - click = " editPercent( $event , task) " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-percent " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-title " >
2015-06-19 19:14:22 +00:00
< text > {{ task . complete | percentDetails }} </ text >
2015-02-07 11:56:20 +00:00
</ div >
2016-03-07 20:50:16 +00:00
< a class = " detail-delete handler end-edit " ng - click = " deletePercent(task) " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
2015-05-28 19:20:41 +00:00
< span class = " icon detail-save handler end-edit " ></ span >
2015-05-23 18:59:35 +00:00
< div class = " section-edit " >
2016-03-14 13:52:24 +00:00
< input class = " percent-input " type = " text " ng - model = " task.complete " ng - change = " setPercentComplete(task, task.complete) " >
< input type = " range " ng - model = " task.complete " min = " 0 " max = " 100 " step = " 1 " ng - change = " setPercentComplete(task, task.complete) " >
2015-02-07 11:56:20 +00:00
</ div >
2014-07-11 20:50:01 +00:00
</ div >
2015-02-07 11:56:20 +00:00
<!-- < ul class = " subtasks buffer " ></ ul > -->
2016-03-08 20:48:49 +00:00
< div class = " section detail-categories " ng - class = " { 'active':task.cats.length>0} " >
2015-05-25 11:26:44 +00:00
< span class = " icon detail-categories " ></ span >
2015-05-24 10:09:05 +00:00
<!-- Edit line 1080 to show placeholder -->
2016-03-14 22:06:23 +00:00
< ui - select multiple tagging tagging - label = " <?php p( $l->t ('(New category)')); ?> " ng - model = " task.cats " theme = " select2 " ng - disabled = " !task.calendar.writable " style = " width: 100%; "
2015-05-24 10:09:05 +00:00
on - remove = " removeCategory( $item , $model ) " on - select = " addCategory( $item , $model ) " >
2016-03-08 20:48:49 +00:00
< ui - select - match placeholder = " <?php p( $l->t ('Select categories...')); ?> " > {{ $item }} </ ui - select - match >
2015-05-25 17:53:20 +00:00
< ui - select - choices repeat = " category in settingsmodel.getById('various').categories | filter: $select .search " >
2015-05-24 10:09:05 +00:00
{{ category }}
</ ui - select - choices >
2016-03-08 20:48:49 +00:00
</ ui - select >
2015-05-24 10:09:05 +00:00
</ div >
2015-02-07 11:56:20 +00:00
< div class = " section detail-note " >
< div class = " note " >
2016-03-14 22:06:23 +00:00
< div class = " note-body selectable handler " ng - click = " editNote( $event , task) " oc - click - focus = " { selector: '.expandingArea textarea', timeout: 0} " >
2015-02-07 11:56:20 +00:00
<!--
< a class = " open-fullscreen-note " >
< span class = " icon note-fullscreen " ></ span >
</ a >
-->
2015-05-23 18:59:35 +00:00
< div class = " content-fakeable " ng - class = " { 'editing':route.parameter=='note'} " >
2015-11-14 14:24:36 +00:00
< div class = " display-view " ng - bind - html = " task.note | linky:'_blank': { rel: 'nofollow'} " ></ div >
2015-05-23 18:59:35 +00:00
< div class = " edit-view " >
2015-02-07 11:56:20 +00:00
< div class = " expandingArea active " >
< pre >< span > {{ task . note }} </ span >< br />< br /></ pre >
2016-03-14 13:52:24 +00:00
< textarea ng - model = " task.note " ng - change = " triggerUpdate(task) " ></ textarea >
2015-02-07 11:56:20 +00:00
</ div >
2014-07-19 07:54:15 +00:00
</ div >
2014-03-28 19:11:56 +00:00
</ div >
</ div >
</ div >
</ div >
2016-03-14 14:07:57 +00:00
<!-- < div class = " section detail-comments " >
2015-02-07 11:56:20 +00:00
< ul >
< li ng - repeat = " comment in task.comments " class = " comment-item " rel = " { { comment.id }} " >
< div class = " avatar " avatar userID = " { { comment.userID }} " size = " 32 " ></ div >
2015-05-28 19:20:41 +00:00
< a class = " detail-delete end-edit " ng - click = " deleteComment(comment.id) " ng - show = " settingsmodel.getById('various').userID == comment.userID " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-delete " ></ span >
</ a >
< span class = " username " > {{ comment . name }} </ span >
2015-11-14 14:19:55 +00:00
< div class = " comment " ng - bind - html = " comment.comment | linky:'_blank': { rel: 'nofollow'} " ></ div >
2015-02-07 11:56:20 +00:00
< span class = " time " > {{ comment . time | dateFromNow }} </ span >
</ li >
</ ul >
2016-03-14 14:07:57 +00:00
</ div > -->
2014-03-28 19:11:56 +00:00
</ div >
2015-02-07 11:56:20 +00:00
< div class = " footer " >
2016-03-14 14:07:57 +00:00
<!-- < div class = " detail-addcomment " >
2015-02-07 11:56:20 +00:00
< input type = " text " placeholder = " { { commentStrings().input }} " ng - model = " CommentContent " ng - keydown = " sendComment( $event ) " >
< input type = " button " ng - click = " addComment() " name = " addComment " value = " { { commentStrings().button }} " ng - class = " { 'active':CommentContent} " >
2016-03-14 14:07:57 +00:00
</ div > -->
2016-03-14 22:06:23 +00:00
< a class = " detail-trash handler close-all " ng - click = " deleteTask(task) " ng - show = " task.calendar.writable " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-trash " ></ span >
</ a >
2015-05-28 19:20:41 +00:00
< a class = " detail-close handler close-all " >
2015-02-07 11:56:20 +00:00
< span class = " icon detail-close " ></ span >
</ a >
2014-07-19 07:54:15 +00:00
</ div >
2014-05-27 17:59:35 +00:00
</ div >
2015-02-07 11:56:20 +00:00
< div ng - show = " TaskState()=='loading' " class = " notice " >
< ? php p ( $l -> t ( 'Loading the task...' )); ?>
< div class = " loading " style = " height: 50px; " ></ div >
</ div >
< div ng - show = " TaskState()==null " class = " notice " >
< ? php p ( $l -> t ( 'Task not found!' )); ?>
2014-05-27 17:59:35 +00:00
</ div >
2015-11-14 14:19:55 +00:00
</ div >