2015-11-22 10:59:39 +08:00
|
|
|
{{template "_head.html" .}}
|
2016-02-06 14:55:31 +08:00
|
|
|
<div class="timeline">
|
2015-11-18 00:58:03 +08:00
|
|
|
<div class="modal-content">
|
2016-02-06 14:55:31 +08:00
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> Edit Task</h4>
|
|
|
|
</div>
|
2016-02-06 18:02:46 +08:00
|
|
|
{{ $categories := .Categories }} {{$referer := .Referer}} {{range $index, $task := .Tasks}}
|
2016-02-06 14:55:31 +08:00
|
|
|
<div class="modal-body">
|
|
|
|
<form action="/update/" method="POST">
|
|
|
|
<div class="form-group">
|
2016-02-15 01:46:22 +08:00
|
|
|
<input type="text" name="title" value="{{ $task.Title}}" class="form-control" id="add-note-title" placeholder="Title">
|
2016-02-06 14:55:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-02-15 01:46:22 +08:00
|
|
|
<textarea class="form-control" name="content" id="add-note-content" placeholder="Content" rows="10" >{{ $task.Content}}</textarea>
|
2015-11-18 00:58:03 +08:00
|
|
|
|
2016-02-06 14:55:31 +08:00
|
|
|
<input type="text" name="id" value="{{.Id}}" class="hidden" /> Priority:
|
|
|
|
<input type="radio" name="priority" value="3" {{if eq .Priority "3"}} checked="checked" {{end}} /> High
|
|
|
|
<input type="radio" name="priority" value="2" {{if eq .Priority "2"}} checked="checked" {{end}} /> Medium
|
|
|
|
<input type="radio" name="priority" value="1" {{if eq .Priority "1"}} checked="checked" {{end}} /> Low
|
|
|
|
</div>
|
2016-08-07 18:35:57 +08:00
|
|
|
<input type="checkbox" name="hide" id="hideChk"> Hide from timeline<br>
|
2016-02-06 14:55:31 +08:00
|
|
|
Category:
|
|
|
|
<select name="category">
|
|
|
|
<option>---</option>
|
|
|
|
{{range $index, $cat := $categories}}
|
|
|
|
<option value="{{$cat.Name}}" {{if eq $cat.Name $task.Category}} selected="true" {{end}}> {{$cat.Name}} </option>
|
|
|
|
{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-02-06 18:02:46 +08:00
|
|
|
<a href="{{$referer}}" ><button type="button" class="btn btn-default" data-dismiss="modal">Close</button></a>
|
|
|
|
<input type="submit" value="Submit" class="btn btn-default" />
|
2016-02-06 14:55:31 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-11-18 00:58:03 +08:00
|
|
|
</div>
|
2016-02-06 14:55:31 +08:00
|
|
|
</div>
|
|
|
|
{{end}} {{template "_footer.html"}}
|
2015-11-18 00:58:03 +08:00
|
|
|
|
|
|
|
</body>
|
2015-11-13 17:04:42 +08:00
|
|
|
|
2016-02-06 14:55:31 +08:00
|
|
|
</html>
|