{% extends "base.html" %} {% load widget_tweaks %} {% block title %} {% if object %}Edit Assessment{% else %}Create Assessment{% endif %} {% endblock %} {% block content %}

{% if object %}Edit Assessment{% else %}Create New Assessment{% endif %}

{% csrf_token %} {% if form.non_field_errors %} {% endif %}
{{ form.year|add_class:"form-control" }} {% if form.year.help_text %}
{{ form.year.help_text }}
{% endif %} {% if form.year.errors %}
{{ form.year.errors|join:", " }}
{% endif %}
{{ form.title|add_class:"form-control" }} {% if form.title.help_text %}
{{ form.title.help_text }}
{% endif %} {% if form.title.errors %}
{{ form.title.errors|join:", " }}
{% endif %}
{{ form.description|add_class:"form-control"|attr:"rows:4" }} {% if form.description.help_text %}
{{ form.description.help_text }}
{% endif %} {% if form.description.errors %}
{{ form.description.errors|join:", " }}
{% endif %}
{{ form.duration_minutes|add_class:"form-control" }} {% if form.duration_minutes.errors %}
{{ form.duration_minutes.errors|join:", " }}
{% endif %}
{{ form.randomize_questions|add_class:"form-check-input" }}
{% if form.randomize_questions.errors %}
{{ form.randomize_questions.errors|join:", " }}
{% endif %}
{{ form.question_count|add_class:"form-control" }} {% if form.question_count.help_text %}
{{ form.question_count.help_text }}
{% endif %} {% if form.question_count.errors %}
{{ form.question_count.errors|join:", " }}
{% endif %}
{{ form.is_active|add_class:"form-check-input" }}
When checked, candidates can see and take this assessment.
{% if form.is_active.errors %}
{{ form.is_active.errors|join:", " }}
{% endif %}
Cancel
{% endblock %}