Add messages

This commit is contained in:
2025-12-12 11:43:41 +05:30
parent 219acb3513
commit 3368c95ae2
6 changed files with 26 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
{% block body %}
<h1>Dashboard</h1>
{% include "notes/messages.html" %}
<h2>Notes for you</h2>
{% if notes %}

View File

@@ -0,0 +1,7 @@
{% if messages %}
<div class="messages">
{% for message in messages %}
<div class="card">{{ message }}</li>
{% endfor %}
</div>
{% endif %}

View File

@@ -4,6 +4,7 @@
{% block body %}
<h1>Post a Note</h1>
{% include "notes/messages.html" %}
<form method="post">{% csrf_token %}
{{ form.as_p }}
<button type="submit">Post!</button>

View File

@@ -4,9 +4,10 @@
{% block body %}
<h1>Profile</h1>
{% include "notes/messages.html" %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Post!</button>
<button type="submit">Save</button>
</form>
{% endblock %}