hanze/programmeerles-ouderen

pgmles/templates/course_overview.html in master
Repositories | Summary | Log | Files

course_overview.html (1817B) download


 1{% extends "layout.html" %}
 2{% block content %}
 3<article class="media content-section">
 4  <legend class="border-bottom mb-4">
 5    <h1>{{ legend }}</h1>
 6  </legend>
 7</article>
 8<article class="media content-section">
 9  <div class="media-body">
10    <div>
11      <a class="btn btn-secondary btn-sm mt-1 mb-1" href="{{ url_for('new_course') }}">Nieuwe les</a>
12    </div>
13  </div>
14</article>
15{% for course, teacher in courses %}
16<article class="media content-section">
17  <div class="media-body">
18    <h2><a class="article-title" href="{{url_for('course', course_id=course.id)}}">{{course.name}} <small>by {{
19          teacher.username }}</small></a></h2>
20    <div>
21      <a class="btn btn-secondary btn-sm mt-1 mb-1"
22        href="{{ url_for('update_course', course_id = course.id) }}">Bewerken</a>
23      <button type="button" class="btn btn-danger btn-sm m-1" data-toggle="modal"
24        data-target="#deleteModal">Verwijderen</button>
25    </div>
26  </div>
27</article>
28<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteModalLabel"
29  aria-hidden="true">
30  <div class="modal-dialog" role="document">
31    <div class="modal-content">
32      <div class="modal-header">
33        <h5 class="modal-title" id="deleteModalLabel">Les verwijderen?</h5>
34        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
35          <span aria-hidden="true">&times;</span>
36        </button>
37      </div>
38      <div class="modal-footer">
39        <button type="button" class="btn btn-secondary" data-dismiss="modal">Sluiten</button>
40        <form action="{{ url_for('delete_course', course_id=course.id) }}" method="POST">
41          <input class="btn btn-danger" type="submit" value="Delete">
42        </form>
43      </div>
44    </div>
45  </div>
46</div>
47{% endfor %}
48{% endblock content %}