{% extends 'admin/base.html.twig' %} {% block title %}AFC E-Learning{% endblock %} {% block body %}

Création d'un module pour la formation {{ training.name }}

{# == #} {{ form_start(form) }}

Informations générale

{{ form_label( form.name ) }} {{ form_widget( form.name ) }}
{{ form_label( form.orderNumber ) }} {{ form_widget( form.orderNumber ) }}
{{ form_label( form.timeSpentRequired ) }} {{ form_widget( form.timeSpentRequired ) }}
{{ form_label( form.content ) }} {{ form_widget( form.content ) }}

Test qcm de fin

{{ form_label( form.hasQcmTest ) }} {{ form_widget( form.hasQcmTest ) }}
{{ form_label( form.howManyQcmInTest ) }} {{ form_widget( form.howManyQcmInTest ) }}

Fiche résumé du module (.pdf )

{{ form_label( form.summarySheet ) }} {{ form_widget( form.summarySheet, {'attr': {'class': 'form-control'}} ) }}
{{ form_end(form) }} {# == #}

Les modules existants :

    {% for m in modules %}
  • n° {{ m.orderNumber }} - {{ m.name }} {{ m.questions|length }} qcm
  • {% endfor %}

La formation doit avoir au minimum 20 questions pour le test qcm final.
La formation contient actuellement {% if totalQcm < 20 %} {% else %} {% endif %} {{ totalQcm }} questions.

{% endblock %} {% block javascripts %} {% endblock %}