mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
61 lines
2.4 KiB
HTML
61 lines
2.4 KiB
HTML
{% extends 'base_training.html' %}
|
|
|
|
{% load static %}
|
|
{% load button from filters %}
|
|
{% load colour_from_depth from tags %}
|
|
|
|
{% block css %}
|
|
{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="{% static 'css/selects.css' %}"/>
|
|
{% endblock %}
|
|
|
|
{% block preload_js %}
|
|
{{ block.super }}
|
|
<script src="{% static 'js/selects.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{{ block.super }}
|
|
<script src="{% static 'js/autocompleter.js' %}"></script>
|
|
<script src="{% static 'js/interaction.js' %}"></script>
|
|
<script src="{% static 'js/tooltip.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col">
|
|
<form class="form" method="POST" id="session_form" action="{% url 'session_log' %}">
|
|
{% include 'form_errors.html' %}
|
|
{% csrf_token %}
|
|
<h3>People</h3>
|
|
<div class="form-group row">
|
|
{% include 'partials/supervisor_field.html' %}
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="trainees_id" class="col-sm-2">Select Attendees</label>
|
|
<select multiple name="trainees" id="trainees_id" class="selectpicker col-sm-10" data-live-search="true" data-sourceurl="{% url 'api_secure' model='profile' %}?fields=first_name,last_name,initials">
|
|
</select>
|
|
</div>
|
|
<h3>Training Items</h3>
|
|
{% for depth in depths %}
|
|
<div class="form-group row">
|
|
<label for="selectpicker" class="col-sm-2 rounded bg-{% colour_from_depth depth.0 %} text-center py-1">{{ depth.1 }} Items</label>
|
|
<select multiple name="items_{{depth.0}}" id="items_{{depth.0}}_id" class="selectpicker col-sm-10 px-0" data-live-search="true" data-sourceurl="{% url 'api_secure' model='training_item' %}?fields=display_id,description&filters=active">
|
|
</select>
|
|
</div>
|
|
{% endfor %}
|
|
<h3>Session Information</h3>
|
|
<div class="form-group">
|
|
{% include 'partials/form_field.html' with field=form.date %}
|
|
</div>
|
|
<div class="form-group">
|
|
{% include 'partials/form_field.html' with field=form.notes %}
|
|
</div>
|
|
<div class="col-sm-12 text-right my-3">
|
|
{% button 'submit' %}
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|