{% 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 %}