Tasks/public/templates/edit.html

39 lines
1.6 KiB
HTML
Raw Normal View History

2015-11-22 08:29:39 +05:30
{{template "_head.html" .}}
2015-11-17 22:28:03 +05:30
<div class="timeline">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> Edit Task</h4>
</div>
2015-11-22 08:29:39 +05:30
{{range .Tasks}}
2015-11-17 22:28:03 +05:30
<div class="modal-body">
<form action="/update/" method="POST">
<div class="form-group">
<input type="text" name="title" value="{{.Title}}" class="form-control" id="add-note-title" placeholder="Title" style="border:none;border-bottom:1px solid gray; box-shadow:none;">
</div>
<div class="form-group">
2015-11-20 09:18:49 +05:30
<textarea class="form-control" name="content" id="add-note-content" placeholder="Content"
rows="10" style="border:none;border-bottom:1px solid gray; box-shadow:none;">{{.Content}}</textarea>
2015-11-17 22:28:03 +05:30
<input type="text" name="id" value="{{.Id}}" class="hidden" />
2016-01-23 19:17:34 +05:30
Priority: <select name="priority">
<option>---</option>
<option {{if eq .Priority "3"}} selected="true" {{end}} value="high">High</option>
<option {{if eq .Priority "2"}} selected="true" {{end}} value="medium">Medium</option>
<option {{if eq .Priority "1"}} selected="true" {{end}} value="low">Low</option>
</select>
2015-11-17 22:28:03 +05:30
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<input type="submit" text="submit" class="btn btn-default" />
</div>
</form>
</div>
</div>
2015-11-22 08:29:39 +05:30
{{end}}
2016-01-23 19:17:34 +05:30
{{template "_footer.html"}}
2015-11-17 22:28:03 +05:30
</body>
2015-11-13 14:34:42 +05:30
</html>