Commit 41a0ec336bd09755913df8799b86aed0e826f901

Authored by fbormann
2 parents b8afe62e 98841c6a

Merge branch 'dev' of https://github.com/amadeusproject/amadeuslms into dev

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
links/templates/links/create_link.html
@@ -12,6 +12,16 @@ @@ -12,6 +12,16 @@
12 <!-- Card --> 12 <!-- Card -->
13 <form method="post" action="" id="form-link" enctype="multipart/form-data"> 13 <form method="post" action="" id="form-link" enctype="multipart/form-data">
14 {% csrf_token %} 14 {% csrf_token %}
  15 + {% if messages %}
  16 + {% for message in messages %}
  17 + <div class="alert alert-{{ message.tags }} alert-dismissible" role="alert">
  18 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  19 + <span aria-hidden="true">&times;</span>
  20 + </button>
  21 + <p>{{ message }}</p>
  22 + </div>
  23 + {% endfor %}
  24 + {% endif %}
15 {% for field in form %} 25 {% for field in form %}
16 {% if field.field.required %} 26 {% if field.field.required %}
17 <label for="{{ field.auto_id }}">{{ field.label }}<span>*</span></label> 27 <label for="{{ field.auto_id }}">{{ field.label }}<span>*</span></label>