hanze/programmeerles-ouderen

pgmles/templates/course.html in dev_2
Repositories | Summary | Log | Files

course.html (1609B) download


 1{% extends "layout.html" %}
 2{% block content %}
 3    <article class="media content-section">
 4        <div class="media-body">
 5            <h2><a class="article-title" href="{{url_for('course', course_id=course.id)}}">
 6              {{course.name}} 
 7              {% if course.id in subs %}(subscribed){% endif %}
 8            </a></h2>
 9            <p> {{course.description}}</p>
10            <p>De Cursus {{course.name}} wordt gegeven door
11              {%for x in teachers%}
12                {%if x[0] == course.teacher_id%}
13                  {{x[1]}}
14                {%endif%}
15              {%endfor%}
16            </p>
17            <p>Start elke {{course.weekday}} vanaf {{course.start}} tot {{course.end}} op locatie: {{course.location}}</p>
18        </div>
19        <div class="article-metadata">
20            {% if current_user.is_authenticated %}
21                {% if show %}
22                <form method="POST" action="">
23                    {{ form.hidden_tag() }}
24                    <div class="form-group">
25                        {{ form.submit(class="btn btn-outline-info") }}
26                    </div>
27                </form>
28                {% else %}
29                <form method="POST" action="">
30                    {{ form2.hidden_tag() }}
31                    <div class="form-group">
32                        {{ form2.submit(class="btn btn-outline-info") }}
33                    </div>
34                </form>
35                {%endif%}
36            {% else %}
37                <p> Please Log in to subscribe to course</p>
38            {% endif %}
39        </div>
40    </article>
41{% endblock content %}