{% extends "admin/index.html" %}

{% block content %}
  <div id="content-main">
    {% include "admin/app_list.html" with app_list=app_list show_changelinks=True %}

    <div class="content">
      <h1>üK</h1>
      <h1>Excel Import üK</h1>
      <h2>Durchführungen und Trainer</h2>
      <form method="post" enctype="multipart/form-data"
            action="/server/importer/coursesession-trainer-import/">
        {% csrf_token %}
        <input type="file" name="excel_file" accept=".xlsx, .xls">
        <input type="submit" value="Durchführungen und Trainer importieren">
      </form>

      <h2>Teilnehmer</h2>
      <form method="post" enctype="multipart/form-data"
            action="/server/importer/coursesession-students-import/">
        {% csrf_token %}
        <input type="file" name="excel_file" accept=".xlsx, .xls">
        <input type="submit" value="Teilnehmer importieren">
      </form>

      <h2>Sync mit T2L Daten</h2>
      <form method="post" enctype="multipart/form-data"
            action="/server/importer/t2l-sync/">
        {% csrf_token %}
        <input type="file" name="excel_file" accept=".xlsx, .xls">
        <input type="submit" value="Teilnehmer mit T2L-Daten Synchronisiern">
      </form>

      <h2>Export Edoniq Teilnehmer</h2>
      <a href="{% url 'edoniq_export_students' %}" class="btn btn-primary">Teilnehmer
        exportieren</a>

      <h2>Export Edoniq Trainer</h2>
      <a href="{% url 'edoniq_export_trainers' %}" class="btn btn-primary">Trainer
        exportieren</a>

      <h2>Export Edoniq Teilnehmer und Trainer</h2>
      <a href="{% url 'edoniq_export_students_and_trainers' %}" class="btn btn-primary">Teilnehmer
        und Trainer exportieren</a>

      <hr style="margin: 24px 0">

      <form action="/api/core/cypressreset/" method="post">
        {% csrf_token %}
        <label>
          <input type="checkbox" name="create_assignment_completion" value="true">
          create_assignment_completion
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>
        <label>
          <input type="checkbox" name="create_assignment_evaluation" value="true">
          create_assignment_evaluation
        </label><br>
        <label>
          evaluation score:
          <input type="text" name="assignment_evaluation_scores" placeholder="6,6,6,3,3">
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>

        <label>create_edoniq_test_result_data</label><br>
        <label>
          user points:
          <input type="number" name="edoniq_test_user_points" min="0">
        </label><br>
        <label>
          max points:
          <input type="number" name="edoniq_test_max_points" min="0">
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>

        <label>
          <input type="checkbox" name="create_feedback_responses" value="true">
          create_feedback_responses
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>

        <label>
          <input type="checkbox" name="create_course_completion_performance_criteria" value="true">
          create_course_completion_performance_criteria
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>

        <label>
          <input type="checkbox" name="create_attendance_days" value="true">
          create_attendance_days
        </label>
        <div style="margin-bottom: 8px; padding: 4px; border-bottom: 1px lightblue solid"></div>

        <button class="btn">Testdaten zurück setzen</button>
      </form>
    </div>
  </div>

{% endblock %}
