Add comments

This commit is contained in:
Jan Tuomi
2017-10-11 19:04:59 +03:00
parent 074c4897a7
commit b61874bcbb
3 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -117,7 +117,9 @@ class KaehmyFormSelectedRole(models.Model):
class MessageParent(models.Model):
pass
def __str__(self):
return 'Message parent #{}'.format(self.id)
class KaehmyMessage(MessageParent):
+6
View File
@@ -27,6 +27,12 @@
{% for role in application.preset_roles.all %}
<h6>{{ role.name }}</h6>
{% endfor %}
<p>{{ application.text }}</p>
{% for message in application.messages.all %}
{% include "kaehmy_message.html" with messages=message.messages.all %}
{% endfor %}
</div>
</div>
{% endfor %}
+10
View File
@@ -0,0 +1,10 @@
<div class="card">
<div class="card-block">
<h4>{{ message.name }}</h4>
<p>{{ message.message }}</p>
{% for message in messages %}
{% include "kaehmy_message.html" with messages=message.messages.all %}
{% endfor %}
</div>
</div>