{% extends 'website/templates/base.html' %} {% load static %} {% load widget_tweaks %} {% load permission_tags %} {% block title %} {{ question.category }} - {{ question.title }} - FOSSEE Forums {% endblock %} {% block content %} saving . . . saved
{{ question.title }}
Title
Question
{{ question.body|safe }}

{{ question.category }} {% if user|can_edit:question %} Edit Save {% endif %} {{ question.date_created|date:"d-m-y" }}, {{ question.date_created|time }} {{ question.user }}

Answers:

{% for answer in answers %}
{{ answer.body|safe }}
{{ answer.date_created|date:"d-m-y" }}, {{ answer.date_created|time }} {{ answer.user }} {% if user|can_edit:answer %} Edit Save {% endif %}
{% for comment in answer.answercomment_set.all %}
{{ comment.body|safe }}
{{ comment.date_created|date:"d-m-y" }}, {{ comment.date_created|time }} {{ comment.user }} {% if user|can_edit:comment %} {% endif %}
{% endfor %} {% if user.is_authenticated %}
{% csrf_token %}
add comment post comment cancel comment {% else %}
Login to add comment {% endif %}


{% endfor %} {% if user.is_authenticated %}
{% csrf_token %} {% with WIDGET_ERROR_CLASS='field_error' %}
{{ form.body.errors }}
{% render_field form.question value=question.id %} {% render_field form.body class+='form-control' %}
{% endwith %}
{% else %}

Log-in to answer to this question.

{% endif %} {% endblock %} {% block javascript %} {% endblock %}