hanze/programmeerles-ouderen

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

new_course.html (4548B) download


  1{% extends "layout.html" %}
  2{% block content %}
  3<div class="content-section">
  4    <form method="POST" action="">
  5        {{ form.hidden_tag() }}
  6        <fieldset class="form-group">
  7            <legend class="border-bottom mb-4"><h1>{{ legend }}</h1></legend>
  8            <div class="form-group">
  9                {{ form.name.label(class="form-control-label") }}
 10                {% if form.name.errors %}
 11                {{ form.name(class="form-control form-control-lg is-invalid") }}
 12                <div class="invalid-feedback">
 13                    {% for error in form.name.errors %}
 14                    <span>{{ error }}</span>
 15                    {% endfor %}
 16                </div>
 17                {% else %}
 18                {{ form.name(class="form-control form-control-lg") }}
 19                {% endif %}
 20            </div>
 21            <div class="form-group">
 22                {{ form.description.label(class="form-control-label") }}
 23                {% if form.description.errors %}
 24                {{ form.description(class="form-control form-control-lg is-invalid") }}
 25                <div class="invalid-feedback">
 26                    {% for error in form.description.errors %}
 27                    <span>{{ error }}</span>
 28                    {% endfor %}
 29                </div>
 30                {% else %}
 31                {{ form.description(class="form-control form-control-lg") }}
 32                {% endif %}
 33            </div>
 34            <div class="form-group">
 35                {{ form.teacher_id.label(class="form-control-label") }}
 36                {% if form.teacher_id.errors %}
 37                {{ form.teacher_id(class="form-control form-control-lg is-invalid") }}
 38                <div class="invalid-feedback">
 39                    {% for error in form.teacher_id.errors %}
 40                    <span>{{ error }}</span>
 41                    {% endfor %}
 42                </div>
 43                {% else %}
 44                {{ form.teacher_id(class="form-control form-control-lg") }}
 45                {% endif %}
 46            </div>
 47            <div class="form-group">
 48                {{ form.weekday.label(class="form-control-label") }}
 49                {% if form.weekday.errors %}
 50                {{ form.weekday(class="form-control form-control-lg is-invalid") }}
 51                <div class="invalid-feedback">
 52                    {% for error in form.weekday.errors %}
 53                    <span>{{ error }}</span>
 54                    {% endfor %}
 55                </div>
 56                {% else %}
 57                {{ form.weekday(class="form-control form-control-lg") }}
 58                {% endif %}
 59            </div>
 60            <div class="form-group">
 61                {{ form.start.label(class="form-control-label") }}
 62                {% if form.start.errors %}
 63                {{ form.start(class="form-control form-control-lg is-invalid") }}
 64                <div class="invalid-feedback">
 65                    {% for error in form.start.errors %}
 66                    <span>{{ error }}</span>
 67                    {% endfor %}
 68                </div>
 69                {% else %}
 70                {{ form.start(class="form-control form-control-lg") }}
 71                {% endif %}
 72            </div>
 73            <div class="form-group">
 74                {{ form.end.label(class="form-control-label") }}
 75                {% if form.end.errors %}
 76                {{ form.end(class="form-control form-control-lg is-invalid") }}
 77                <div class="invalid-feedback">
 78                    {% for error in form.end.errors %}
 79                    <span>{{ error }}</span>
 80                    {% endfor %}
 81                </div>
 82                {% else %}
 83                {{ form.end(class="form-control form-control-lg") }}
 84                {% endif %}
 85            </div>
 86            <div class="form-group">
 87                {{ form.location.label(class="form-control-label") }}
 88                {% if form.location.errors %}
 89                {{ form.location(class="form-control form-control-lg is-invalid") }}
 90                <div class="invalid-feedback">
 91                    {% for error in form.location.errors %}
 92                    <span>{{ error }}</span>
 93                    {% endfor %}
 94                </div>
 95                {% else %}
 96                {{ form.location(class="form-control form-control-lg") }}
 97                {% endif %}
 98            </div>
 99        </fieldset>
100        <div class="form-group">
101            {{ form.submit(class="btn btn-outline-info") }}
102        </div>
103    </form>
104</div>
105{% endblock content %}