{% extends mobile_device|yesno:"base.html,base/popup.html" %} {% if mobile_device %} {% block extrahead %} {% load static %} {% endblock %} {% endif %} {% load custom_tags_and_filters %} {% load tz %} {% block title %} {% if form.instance.pk %} Edit {% else %} New {% endif %} training session {% endblock %} {% block content %} {% if not selected_tool %}
{% else %}
{% if form.errors %}
Oops! Something went wrong. Please correct the errors highlighted below.
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %}
{% if training_details.techniques.all %}
{% if form.technique.errors %}
{{ form.technique.errors|striptags }}
{% endif %}
{% endif %}
{% if suggested_times %} {% endif %} {% if form.start.errors %}
{{ form.start.errors|striptags }}
{% endif %}
{% if schedule_help %}
Show the  {{ selected_tool.name }}  and  my schedule  for the next {{ "training"|customization:"training_upcoming_schedule_days" }} days
{% for row in schedule_help.rows %} {% endfor %}
Start End Info
{{ row|get_item:"start"|date:"SHORT_DATETIME_FORMAT" }} {{ row|get_item:"end"|date:"SHORT_DATETIME_FORMAT" }} {{ row|get_item:"info" }}
{% endif %}
{% if form.location.errors %}
{{ form.location.errors|striptags }}
{% endif %}
if no users registered before.
{% if form.auto_cancel.errors %}
{{ form.auto_cancel.errors|striptags }}
{% endif %}
minutes
{% if form.duration.errors %}
{{ form.duration.errors|striptags }}
{% endif %}
attendees
{% if form.capacity.errors %}
{{ form.capacity.errors|striptags }}
{% endif %}
{% if form.invitation_only.errors %}
{{ form.invitation_only.errors|striptags }}
{% endif %}
{% if form.instance.id and form.instance.users.all %}
No users have registered for this training yet.
{% endif %}
No users have been invited to this training yet.
{% if suggested_users %}
Suggested users:
{% for user in suggested_users %}
{{ user.get_name }}
{% endfor %}
{% endif %}
{% if form.fields.qualification_levels.queryset %}
No prior qualifications needed for this training.
{% endif %}
{% if form.message.errors %}
{{ form.message.errors|striptags }}
{% endif %}
{% if not form.instance.pk %}
{% if form.recurrence_interval.errors %} {{ form.recurrence_interval.errors|striptags }} {% endif %}
{% if form.recurrence_frequency.errors %} {{ form.recurrence_frequency.errors|striptags }} {% endif %}
{% if form.recurrence_until.errors %} {{ form.recurrence_until.errors|striptags }} {% endif %}
{% endif %}
{% button type="save" submit=False value=form.instance.id|yesno:"Save changes,Create session" onclick="submit_form(this)" %}
{% endif %} {% endblock %}