{# -*- engine:django -*- #} {% extends 'core/base.html' %} {% load material_form martortags static widget_tweaks %} {% block content %}

{% if mode == "new" %} {% blocktrans %} Create hint {% endblocktrans %} {% else %} {% blocktrans %} Edit hint {% endblocktrans %} {% endif %}

{% if msg == "success" %}

check_circle {% blocktrans %}The hint was successfully created and published. Do you want to create another hint or go back to overview?{% endblocktrans %}
arrow_back{% blocktrans %}Back to overview{% endblocktrans %} add {% blocktrans %}Create antoher hint{% endblocktrans %}

{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
warning {{ form.non_field_errors }}
{% endif %}
{% blocktrans %}When should the hint be displayed?{% blocktrans %} *
{% if form.from_date.errors %}
warning {{ form.from_date.errors }}
{% endif %} {{ form.from_date.label_tag }} {{ form.from_date|add_class:"datepicker required" }}
{% if form.to_date.errors %}
warning {{ form.to_date.erros }}
{% endif %} {{ form.to_date.label_tag }} {{ form.to_date|add_class:"datepicker required" }}
{% blocktrans %}For whom should the hint be displayed?{% endblocktrans %} *
{% if form.classes.errors %}
warning {{ form.classes.erros }}
{% endif %} {{ form.classes.label_tag }} {{ form.classes }} {% blocktrans %}Select all{% endblocktrans %} ยท {% blocktrans %}Unselect all{% endblocktrans %} {% if form.teachers.errors %}
warning {{ form.teachers.erros }}
{% endif %}

{% blocktrans %}Hint text{% endblocktrans %} *
{% if form.text.errors %}
warning {{ form.text.erros }}
{% endif %} {{ form.text }}
{% endblock %}