From 5d529ed128ae405602b6b43422ad57b3e5757cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C4=ABna=20Lukjanovi=C4=8Da?= Date: Mon, 29 Apr 2024 06:35:02 +0000 Subject: [PATCH] Add templates/post.html --- templates/post.html | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 templates/post.html diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..e260040 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,58 @@ +{% extends 'base.html' %} + +{% block content %} +
+

Create New Post

+
+ {{ form.hidden_tag() }} +
+ {{ form.category_id.label }}
+ {{ form.category_id(class="form-control") }} +
+
+ {{ form.post_name.label }}
+ {{ form.post_name(class="form-control") }} +
+
+ {{ form.created_by.label }}
+ {{ form.created_by(class="form-control") }} +
+
+ {{ form.text.label }}
+ {{ form.text(class="form-control") }} +
+
+ {{ form.media.label }}
+ {{ form.media(class="form-control-file") }} +
+ +
+ +
+ +

Comments

+ {% if comments %} + + {% else %} +

No comments yet. Be the first to comment!

+ {% endif %} + + {% if g.user %} +
+
+ + +
+ +
+ {% else %} +

Log in to leave a comment.

+ {% endif %} +
+{% endblock %}