diff options
author | Frederick Muriuki Muriithi | 2023-12-06 13:00:53 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-12-06 13:00:53 +0300 |
commit | 493f8fbe747650a4fbac2e0b153ad0074b4f91e4 (patch) | |
tree | 578fce7f9548c4a850a02b5817865e5fcb73d007 /qc_app/templates/flash_messages.html | |
parent | 968fc27c54099ec1ed5d1770925aed98013ecf55 (diff) | |
download | gn-uploader-493f8fbe747650a4fbac2e0b153ad0074b4f91e4.tar.gz |
Feature: Upload Samples/Cases
Implements the code enabling the upload of the samples/cases to the database.
Diffstat (limited to 'qc_app/templates/flash_messages.html')
-rw-r--r-- | qc_app/templates/flash_messages.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qc_app/templates/flash_messages.html b/qc_app/templates/flash_messages.html new file mode 100644 index 0000000..b7af178 --- /dev/null +++ b/qc_app/templates/flash_messages.html @@ -0,0 +1,25 @@ +{%macro flash_all_messages()%} +{%with messages = get_flashed_messages(with_categories=true)%} +{%if messages:%} +<ul> + {%for category, message in messages:%} + <li class="{{category}}">{{message}}</li> + {%endfor%} +</ul> +{%endif%} +{%endwith%} +{%endmacro%} + +{%macro flash_messages(filter_class)%} +{%with messages = get_flashed_messages(with_categories=true)%} +{%if messages:%} +<ul> + {%for category, message in messages:%} + {%if filter_class in category%} + <li class="{{category}}">{{message}}</li> + {%endif%} + {%endfor%} +</ul> +{%endif%} +{%endwith%} +{%endmacro%} |