diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-10 07:02:47 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-10 07:02:47 +0100 |
| commit | 9e6b80c0321ba1fbe1c824083acbeeac7b7b94d4 (patch) | |
| tree | 67cd6d247cd1bc15c43ebad10e2f02249217e8ca /views | |
| parent | a932b664db987f2cf9ceefe9bb56e43793470d5e (diff) | |
post form and other stuff
Diffstat (limited to 'views')
| -rw-r--r-- | views/pages/post.ejs | 25 | ||||
| -rw-r--r-- | views/partials/comments.ejs | 2 | ||||
| -rw-r--r-- | views/partials/metadata.ejs | 2 | ||||
| -rw-r--r-- | views/partials/scripts.ejs | 1 |
4 files changed, 28 insertions, 2 deletions
diff --git a/views/pages/post.ejs b/views/pages/post.ejs new file mode 100644 index 0000000..2889905 --- /dev/null +++ b/views/pages/post.ejs @@ -0,0 +1,25 @@ +<% include ../partials/header %> + +<div id="content"> + +<table id="thread_form"> + <tr> + <td> + <form> + <input type="text" name="title" placeholder="Title"> + <textarea name="comment" placeholder="Enter your comment"></textarea><br> + <div class="inputs"> + <input name="files" type="file" multiple> + <select name="keyword" id="keywords"> + </select> + <input type="submit" value="POST" /> + </div> + <div class="errors"></div> + </form> + </td> + </tr> +</table> + +</div> + +<% include ../partials/footer %> diff --git a/views/partials/comments.ejs b/views/partials/comments.ejs index 6226a61..80f1b3c 100644 --- a/views/partials/comments.ejs +++ b/views/partials/comments.ejs @@ -26,7 +26,7 @@ <tr> <td> <form> - <textarea name="comment"></textarea><br> + <textarea name="comment" placeholder="Enter your comment"></textarea><br> <input type="file" multiple> <input type="submit" value="POST" /> </form> diff --git a/views/partials/metadata.ejs b/views/partials/metadata.ejs index 956ec18..67526db 100644 --- a/views/partials/metadata.ejs +++ b/views/partials/metadata.ejs @@ -1,5 +1,5 @@ <script type="text/html" class="metadata_template"> - Posted by {{ username }} + Posted by <a href="/profile/{{username}}">{{ username }}</a> on {{ date }} {{ time }} · Last active {{ active }} diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs index 2786fa8..5bb7049 100644 --- a/views/partials/scripts.ejs +++ b/views/partials/scripts.ejs @@ -18,6 +18,7 @@ <script src="/assets/js/lib/views/index/lastlog.js"></script> <script src="/assets/js/lib/views/index/hootbox.js"></script> <script src="/assets/js/lib/views/index/threadbox.js"></script> +<script src="/assets/js/lib/views/index/threadform.js"></script> <script src="/assets/js/lib/views/search/results.js"></script> |
