forked from OrgGo/Tasks
Updated comments & schema DDL
This commit is contained in:
parent
ca9a110526
commit
930a75c045
|
@ -13,6 +13,15 @@ Notes: omninotesweb
|
|||
/*--------------------------------------
|
||||
Layout
|
||||
-------------------------------------- */
|
||||
|
||||
.commentslist {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.comment {
|
||||
padding-left: 25px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
ul{
|
||||
list-style-type: none;
|
||||
}
|
||||
|
@ -325,7 +334,7 @@ Media Queries
|
|||
float:right;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
body{
|
||||
margin-top:105px;
|
||||
|
|
|
@ -11,3 +11,5 @@ finish_date timestamp
|
|||
CREATE TABLE files(name varchar(1000) not null, autoName varchar(255) not null);
|
||||
|
||||
CREATE TABLE category( id integer primary key autoincrement ,name varchar(1000) not null);
|
||||
|
||||
CREATE TABLE comments(id integer primary key autoincrement, content ntext, taskID references task(id));
|
||||
|
|
|
@ -54,21 +54,19 @@
|
|||
|
||||
<span class="noteContent">
|
||||
{{$value.Content}}
|
||||
<span class="noteComments">
|
||||
<ul>
|
||||
<div class="commentslist">
|
||||
{{range $value.Comments}}
|
||||
<li>{{.Content}}</li>
|
||||
<div class="comment">{{.Content}}</div>
|
||||
{{end}}
|
||||
|
||||
<li>
|
||||
<div class="comment">
|
||||
<form method="POST" action="/add-comment/">
|
||||
<textarea rows="2" cols="30" name="commentText" placeholder="Add Comment"></textarea>
|
||||
<textarea rows="1" cols="30" name="commentText" placeholder="Add Comment"></textarea>
|
||||
<input type="text" class="hidden" name="taskID" value="{{$value.Id}}">
|
||||
<input type="submit" value="Comment" class="btn btn-primary" />
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
<span class="notefooter">
|
||||
|
|
Loading…
Reference in New Issue