Skip to content

Commit

Permalink
refactor: Extending warning alert types
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsorst committed Feb 19, 2024
1 parent 88605de commit 363da8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/Alert/container-flash.partial.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{% set alertType = 'alert-success' %}
{% elseif type == 'error' %}
{% set alertType = 'alert-danger' %}
{% elseif type == 'warn' %}
{% set alertType = 'alert-warning' %}
{% elseif type == 'warning' %}
{% set alertType = 'alert-warning' %}
{% else %}
{% set alertType = 'alert-info' %}
{% endif %}
Expand Down
4 changes: 4 additions & 0 deletions templates/Alert/flash.partial.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
{% set alertType = 'alert-success' %}
{% elseif type == 'error' %}
{% set alertType = 'alert-danger' %}
{% elseif type == 'warn' %}
{% set alertType = 'alert-warning' %}
{% elseif type == 'warning' %}
{% set alertType = 'alert-warning' %}
{% else %}
{% set alertType = 'alert-info' %}
{% endif %}
Expand Down

0 comments on commit 363da8a

Please sign in to comment.