diff --git a/aula/templates/groups.html b/aula/templates/groups.html index 1b14a37..f771a41 100644 --- a/aula/templates/groups.html +++ b/aula/templates/groups.html @@ -30,10 +30,14 @@ {% block sidebar %}

Opret gruppe

+{% if current_user.role == "teacher" %}

{{ form.title(class="form-control", placeholder="Gruppens navn") }}

{{ form.mandatory() }} {{ form.mandatory.label(class="form-check-label") }}

{{ form.submit(class="btn btn-primary btn-block") }}

+{% else %} +

Denne funktion er kun tilgængelig for lærer

+{% endif %} {% endblock sidebar %}