diff options
author | adityacp | 2020-06-27 14:47:00 +0530 |
---|---|---|
committer | adityacp | 2020-06-27 14:47:00 +0530 |
commit | 555632b71cae356580be48f5745de64681682359 (patch) | |
tree | 571d3c5d13fb19e9182d4ab1fc2e56b64ea45adf /workshop_app/templates | |
parent | 49572eb103cbc46ccb463a9b0bfd80a57655acd9 (diff) | |
parent | bbf9616a58dca1acc5696dad4523041548cec51d (diff) | |
download | workshop_booking-555632b71cae356580be48f5745de64681682359.tar.gz workshop_booking-555632b71cae356580be48f5745de64681682359.tar.bz2 workshop_booking-555632b71cae356580be48f5745de64681682359.zip |
Merge branch 'messages' of https://github.com/pnshiralkar/workshop_booking into revampv2
Diffstat (limited to 'workshop_app/templates')
-rw-r--r-- | workshop_app/templates/workshop_app/base.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/workshop_app/templates/workshop_app/base.html b/workshop_app/templates/workshop_app/base.html index bce43bb..cbae805 100644 --- a/workshop_app/templates/workshop_app/base.html +++ b/workshop_app/templates/workshop_app/base.html @@ -10,9 +10,13 @@ </title> <link rel="stylesheet" href="{% static 'workshop_app/css/bootstrap.min.css' %}"> - <script src="{% static 'workshop_app/js/jquery-3.4.1.slim.min.js' %}"></script> + <script src="{% static 'workshop_app/js/jquery-3.4.1.min.js' %}"></script> <script src="{% static 'workshop_app/js/popper.min.js' %}"></script> + <link rel="stylesheet" href="{% static 'workshop_app/css/toastr.min.css' %}"> + <script src="{% static 'workshop_app/js/toastr.min.js' %}"></script> + + {% block extra-dependencies %} {% endblock %} @@ -92,6 +96,13 @@ <h1>Base Template Content. Please override me</h1> {% endblock %} +<script> + {% if messages %} + {% for message in messages %} + toastr[{% if message.tags %} "{{ message.tags }}" {% else %} "info" {% endif %}]("{{ message }}"); + {% endfor %} + {% endif %} +</script> </body> <footer class="footer"> |