<commit_before>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load wysiwyg %}


{% block menu %}
    {% include 'menu.html' with active='tasks' %}
{% endblock %}

{% block content %}
    <div class="col-md-9 col-md-offset-2 small-spacing">
        <span style="text-align: center;"> <h3>{{ task.title }}</h3> </span>
        {{ task.description|safe }}
        <span style="text-align: center;"> <h4>{% trans 'Evaluation criterias' %}</h4> </span>
        {{ task.criterias|safe }}

        {% if form %}
        <hr/>
        <span style="text-align: center;"> <h4>{% trans 'Enter your task results:' %}</h4></span>

        <form action="." method="post" enctype="multipart/form-data">{% csrf_token %}
            {% wysiwyg_setup %}
            {% bootstrap_form form %}
            
            {% buttons %}
            <input class="btn btn-primary col-md-offset-2" type="submit" value="{% trans "Submit" %}" /></p>
            {% endbuttons %}
        </form>
        {% endif %}

        {% if comment_form %}
        <hr/>
        <span style="text-align: center;"> <h4>{% trans 'Comments:' %}</h4></span>
        {% for comment in comments %}
        <p>{{ comment }} <i>--{{ comment.user }}</i></p>
        {% endfor %}

        <form action="{% url 'comment-task' task.slug %}" method="post">{% csrf_token %}
            {{ comment_form.comment }}
            <input class="btn btn-primary" type="submit" value="{% trans "Comment" %}" /></p>
        </form>
        {% endif %}

    </div>
    {% wysiwyg_editor "id_description" %}
    {% wysiwyg_editor "id_criterias" %}
{% endblock %}<commit_msg>Remove wysiwyg editor for TaskResult description.<commit_after>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load wysiwyg %}


{% block menu %}
    {% include 'menu.html' with active='tasks' %}
{% endblock %}

{% block content %}
    <div class="col-md-9 col-md-offset-2 small-spacing">
        <span style="text-align: center;"> <h3>{{ task.title }}</h3> </span>
        {{ task.description|safe }}
        <span style="text-align: center;"> <h4>{% trans 'Evaluation criterias' %}</h4> </span>
        {{ task.criterias|safe }}

        {% if form %}
        <hr/>
        <span style="text-align: center;"> <h4>{% trans 'Enter your task results:' %}</h4></span>

        <form action="." method="post" enctype="multipart/form-data">{% csrf_token %}
            {% wysiwyg_setup %}
            {% bootstrap_form form %}
            
            {% buttons %}
            <input class="btn btn-primary col-md-offset-2" type="submit" value="{% trans "Submit" %}" /></p>
            {% endbuttons %}
        </form>
        {% endif %}

        {% if comment_form %}
        <hr/>
        <span style="text-align: center;"> <h4>{% trans 'Comments:' %}</h4></span>
        {% for comment in comments %}
        <p>{{ comment }} <i>--{{ comment.user }}</i></p>
        {% endfor %}

        <form action="{% url 'comment-task' task.slug %}" method="post">{% csrf_token %}
            {{ comment_form.comment }}
            <input class="btn btn-primary" type="submit" value="{% trans "Comment" %}" /></p>
        </form>
        {% endif %}

    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.20690728064716865, 'fraction_numerical': 0.008711885500933417, 'mean_word_length': 2.2772680937818555, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2885760', 'n_tokens_mistral': 1128, 'n_tokens_neox': 993, 'n_words': 237}