Tasks/public/templates/home.html

85 lines
3.4 KiB
HTML
Raw Normal View History

2015-11-21 21:20:51 +08:00
{{template "_head.html" .}}
2015-11-18 00:58:03 +08:00
<!--end mainHeader -->
<button class=" btn-danger btn glyphicon glyphicon-plus floating-action-icon floating-action-icon-add"></button>
<!-- Add note modal -->
<div class="modal fade " id="addNoteModal" tabindex="-1" role="dialog" aria-labelledby="newNoteLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> New Task</h4>
</div>
<div class="modal-body">
2016-01-18 10:28:08 +08:00
<form enctype="multipart/form-data" action="/add/" method="POST">
2015-11-18 00:58:03 +08:00
<div class="form-group">
2016-01-23 21:47:34 +08:00
2015-11-18 00:58:03 +08:00
<input type="text" name="title" class="form-control" id="add-note-title" placeholder="Title" style="border:none;border-bottom:1px solid gray; box-shadow:none;">
2016-01-18 09:02:37 +08:00
<input type="hidden" name="CSRFToken" value={{.CSRFToken}}>
2015-11-18 00:58:03 +08:00
</div>
<div class="form-group">
2016-01-23 21:47:34 +08:00
2015-11-18 00:58:03 +08:00
<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;"></textarea>
2016-01-23 21:47:34 +08:00
File: <input type="file" name="uploadfile" /> <br>
Priority: <select name="priority">
<option>---</option>
<option value="3">High</option>
<option value="2">Medium</option>
<option value="1">Low</option>
</select>
2015-11-18 00:58:03 +08:00
</div>
2016-01-18 10:28:08 +08:00
2015-11-18 00:58:03 +08:00
</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>
</div>
<div class="timeline">
2015-11-21 22:12:20 +08:00
{{ if .Tasks}} {{range .Tasks}}
2015-11-18 00:58:03 +08:00
<div class="note">
2016-01-10 22:16:17 +08:00
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
2015-11-18 00:58:03 +08:00
<p class="noteContent">{{.Content}}</p>
<span class="notefooter">
2016-01-23 21:47:34 +08:00
<ul class="menu">
<li role="presentation">Priority: {{.Priority}}</li>
<li role="presentation">
<span class="glyphicon glyphicon-time"></span> {{.Created}}</li>
2015-12-18 01:34:21 +08:00
<li role="presentation">
2016-01-23 21:47:34 +08:00
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
2016-01-18 09:02:37 +08:00
<span class="glyphicon glyphicon-lock"></span></a></li>
2015-11-18 00:58:03 +08:00
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
2016-01-18 09:02:37 +08:00
<span class="glyphicon glyphicon-trash"></span></a>
2015-11-18 00:58:03 +08:00
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
2016-01-18 09:02:37 +08:00
<span class="glyphicon glyphicon-check"></span></a>
2015-11-18 00:58:03 +08:00
</li>
<li role="presentation">
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
2016-01-18 09:02:37 +08:00
<span class="glyphicon glyphicon-pencil"></span></a>
2015-11-18 00:58:03 +08:00
</li>
</ul>
</span>
</div>
{{end}} {{else}}
2015-11-21 18:42:14 +08:00
<div class="note">
<p class="noteHeading">No Tasks here</p>
<p class="notefooter">Create new task<button class="floating-action-icon-add" style="border:none;border-bottom:1px solid gray; box-shadow:none;"> here </button> </p>
</div>
2015-11-18 00:58:03 +08:00
{{end}}
</div>
2016-01-18 09:02:37 +08:00
{{template "_footer.html" .}}
2015-11-18 00:58:03 +08:00
</body>
2015-11-13 17:04:42 +08:00
</html>