mirror of
https://github.com/thewhitetulip/Tasks.git
synced 2025-04-26 13:49:18 +08:00
formatted html
This commit is contained in:
parent
761ba4e33a
commit
ae736c93f3
@ -1,4 +1,3 @@
|
||||
<footer class="footer" >
|
||||
Made in India with <span class="glyphicon glyphicon-heart"></span> by <a href="htp://github.com/thewhitetulip">@thewhitetulip</a>
|
||||
</footer>
|
||||
|
||||
<footer class="footer">
|
||||
Made in India with <span class="glyphicon glyphicon-heart"></span> by <a href="htp://github.com/thewhitetulip">@thewhitetulip</a>
|
||||
</footer>
|
@ -1,22 +1,22 @@
|
||||
{{template "_head.html" .}}
|
||||
|
||||
<div class="timeline">
|
||||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
<li role="presentation">Priority: {{.Priority}}</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/incomplete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-eye-close"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<!--<li role="presentation">
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<!--<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span> Mask</a>
|
||||
</li>
|
||||
@ -26,18 +26,18 @@
|
||||
</li>
|
||||
<!-- <li role="presentation"><a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span> Restore</a></li> -->
|
||||
</ul>
|
||||
</span>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
{{end}} {{else}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">No Tasks here</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
<p class="noteHeading">No Tasks here</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "_footer.html"}}
|
||||
</div>
|
||||
{{template "_footer.html"}}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
@ -2,50 +2,50 @@
|
||||
<!--end mainHeader -->
|
||||
{{if .}}
|
||||
<a href="/delete/all">
|
||||
<button class="btn-danger btn glyphicon glyphicon-trash floating-action-icon"></button>
|
||||
<button class="btn-danger btn glyphicon glyphicon-trash floating-action-icon"></button>
|
||||
</a>
|
||||
{{end}}
|
||||
|
||||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
<!-- <li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/share/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-share"></span> Share</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span> Mask</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/archive/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span> Edit</a>
|
||||
</li>!-->
|
||||
<li role="presentation">Priority: {{.Priority}}</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/delete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
{{end}} {{else}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">No Tasks here</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span> Mask</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/archive/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span> Edit</a>
|
||||
</li>!-->
|
||||
<li role="presentation">Priority: {{.Priority}}</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/delete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/restore/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-inbox"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}} {{else}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">No Tasks here</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "footer.html"}}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
@ -1,44 +1,40 @@
|
||||
{{template "_head.html" .}}
|
||||
<div class="timeline">
|
||||
<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>
|
||||
{{ $categories := .Categories }}
|
||||
{{range $index, $task := .Tasks}}
|
||||
<div class="modal-body">
|
||||
<form action="/update/" method="POST">
|
||||
<div class="form-group">
|
||||
<input type="text" name="title" value="{{ $task.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">
|
||||
<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;">{{ $task.Content}}</textarea>
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> Edit Task</h4>
|
||||
</div>
|
||||
{{ $categories := .Categories }} {{range $index, $task := .Tasks}}
|
||||
<div class="modal-body">
|
||||
<form action="/update/" method="POST">
|
||||
<div class="form-group">
|
||||
<input type="text" name="title" value="{{ $task.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">
|
||||
<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;">{{ $task.Content}}</textarea>
|
||||
|
||||
<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>
|
||||
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">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<input type="submit" text="submit" class="btn btn-default" />
|
||||
</div>
|
||||
</form>
|
||||
<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>
|
||||
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">
|
||||
<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>
|
||||
{{end}}
|
||||
{{template "_footer.html"}}
|
||||
</div>
|
||||
{{end}} {{template "_footer.html"}}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
@ -1,90 +1,94 @@
|
||||
{{template "_head.html" .}}
|
||||
|
||||
<!--end mainHeader -->
|
||||
<button class=" btn-danger btn glyphicon glyphicon-plus floating-action-icon floating-action-icon-add"></button>
|
||||
<!--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">
|
||||
<!-- 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">×</span></button>
|
||||
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> New Task</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form enctype="multipart/form-data" action="/add/" method="POST">
|
||||
<div class="form-group">
|
||||
|
||||
<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;">
|
||||
<input type="hidden" name="CSRFToken" value={{.CSRFToken}}>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="newNoteLabel"><span class="glyphicon glyphicon-pencil"></span> New Task</h4>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="modal-body">
|
||||
<form enctype="multipart/form-data" action="/add/" method="POST">
|
||||
<div class="form-group">
|
||||
|
||||
<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>
|
||||
File: <input type="file" name="uploadfile" /> <br>
|
||||
Priority:
|
||||
<input type="radio" name="priority" value="3" /> High
|
||||
<input type="radio" name="priority" value="2" /> Medium
|
||||
<input type="radio" name="priority" value="1" /> Low
|
||||
<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;">
|
||||
<input type="hidden" name="CSRFToken" value={{.CSRFToken}}>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<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>
|
||||
File:
|
||||
<input type="file" name="uploadfile" />
|
||||
<br> Priority:
|
||||
<input type="radio" name="priority" value="3" /> High
|
||||
<input type="radio" name="priority" value="2" /> Medium
|
||||
<input type="radio" name="priority" value="1" /> Low
|
||||
</div>
|
||||
Category:
|
||||
<select name="category" class="dropdown">
|
||||
<option>---</option>
|
||||
{{$navigation := .Navigation}} {{$categories := .Categories}} {{range $cat := $categories}}
|
||||
<option value="{{$cat.Name}}" {{if eq $cat.Name $navigation }} checked="checked" {{end}}> {{$cat.Name}} </option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
Category:
|
||||
<select name="category" class="dropdown">
|
||||
<option>---</option>
|
||||
{{$categories := .Categories}}
|
||||
{{range $cat := $categories}}
|
||||
<option value="{{$cat.Name}}" > {{$cat.Name}} </option>
|
||||
{{end}}
|
||||
</select>
|
||||
<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 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>
|
||||
|
||||
<div class="timeline">
|
||||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range $key, $value := .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{ $value.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<p class="noteHeading">{{ $value.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
|
||||
<span class="noteContent">{{$value.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<span class="noteContent">{{$value.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
<li role="presentation">Priority: {{$value.Priority}}</li>
|
||||
<li role="presentation">
|
||||
<span class="glyphicon glyphicon-time"></span> {{$value.Created}}</li>
|
||||
<li role="presentation">
|
||||
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span></a></li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</span>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
{{end}} {{else}}
|
||||
<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>
|
||||
<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>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "_footer.html" .}}
|
||||
</div>
|
||||
{{template "_footer.html" .}}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
@ -1,43 +1,43 @@
|
||||
{{template "_head.html" .}}
|
||||
<div class="timeline">
|
||||
<div class="timeline">
|
||||
{{ if .Tasks}} {{range .Tasks}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<p class="noteHeading">{{.Title}}</p> <span class="toggle glyphicon glyphicon-resize-full"></span>
|
||||
<span class="noteContent">{{.Content}}</span>
|
||||
<span class="notefooter">
|
||||
<ul class="menu">
|
||||
<li role="presentation">Priority: {{.Priority}}</li>
|
||||
<li role="presentation">
|
||||
<span class="glyphicon glyphicon-time"></span> {{.Created}}</li>
|
||||
<!-- <li role="presentation">
|
||||
<!-- <li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/mask/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-lock"></span> Mask</a></li> !-->
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/trash/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-trash"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/complete/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-check"></span></a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a role="menuitem" tabindex="-1" href="/edit/{{.Id}}">
|
||||
<span class="glyphicon glyphicon-pencil"></span></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</span>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
{{end}} {{else}}
|
||||
<div class="note">
|
||||
<p class="noteHeading">No results found</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
<p class="noteHeading">No results found</p>
|
||||
<p class="notefooter">Go to home page <a href="/">here</a> </p>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "_footer.html"}}
|
||||
</div>
|
||||
{{template "_footer.html"}}
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user