{% extends 'training_template.html' %} {% block training_content %}

Retro Tool

  1. Select trainee.
  2. Input lessons to add, only lessons with dates will be counted.
  3. Check for errors and preview lessons to be added.
  4. Add these lessons to the database.
{% include 'forms/field.html' with field=trainee_select_form.trainee %} {% include 'forms/field.html' with field=trainee_select_form.qualification %}
{% if formsets %}
{% if all_valid %}

After this lessons will be immediately added.

{% else %} {% endif %}
{% csrf_token %} {% for formset in formsets %} {{ formset.management_form }} {% for form in formset %} {% if form.display %} {% endif %} {% endfor %} {% endfor %}
{% if form.lesson_data.code %}

{{ form.lesson_data.code }}

{{ form.lesson_data.title }}

{% else %}

{{ form.lesson_data.title }}

{% endif %}
{% if form.already_completed %}

Lesson already completed

{% else %} {% if form.already_partial %}

This lesson is already partially completed

{% endif %} {% include 'forms/field.html' with field=form.date %} {% include 'forms/checkbox.html' with field=form.partially_completed %} {% include 'forms/field.html' with field=form.public_notes %} {% include 'forms/field.html' with field=form.private_notes %} {% endif %}
{% endif %}
{% endblock %}