{% extends 'base.html' %} {% load static %} {% load widget_tweaks %} {% load crispy_forms_tags %} {% block title %} Home {% endblock title %} {% block content %}
...

{{ classroom.name }}

{{ classroom.description }}

Upcoming

Woohoo, no work due soon!

View all
{% csrf_token %}
{{ post_form.title|attr:"class:form-control"|attr:"placeholder:Title"}}
{{ post_form.description|attr:"class:form-control"|attr:"placeholder:Description" }}
{{ post_form.file_field|attr:"class:form-control btn btn-circle" }}
{% for content in contents %}
...
{% if content.content_type == 'post' %}

{{ content.title }}

{% else %}

{{ content.title }}

{% endif %}
Posted on {{ content.created_at }} By {{ content.created_by.username }}
{% for resource in content.resources %} {% endfor %}
{% if content.content_type == 'post' %}
{% for comment in content.post_comment %}
...

{{ comment.user }}: {{ comment.comment_text}}

{% endfor %}

... {% csrf_token %} {{ comment_form.comment_text|attr:"class:form-control rounded-pill"|attr:"placeholder:Add a class comment" }}
{% endif %}
{% endfor %}
{% endblock content %}