Commit 98841c6a2e67948968fa623ee34e625a8be0a9c3

Authored by Gustavo Bernardo
1 parent e32a033c

Messages included [Issue:#120]

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
links/templates/links/create_link.html
... ... @@ -12,6 +12,16 @@
12 12 <!-- Card -->
13 13 <form method="post" action="" id="form-link" enctype="multipart/form-data">
14 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 25 {% for field in form %}
16 26 {% if field.field.required %}
17 27 <label for="{{ field.auto_id }}">{{ field.label }}<span>*</span></label>
... ...