[TASK] refactor alert messages
This commit is contained in:
@ -8,16 +8,7 @@
|
||||
</div>
|
||||
|
||||
{% if flash %}
|
||||
{% if flash.0 == "success" %}
|
||||
<div class="bg-[#4ade80] text-white px-3 py-1 rounded-md text-center">
|
||||
{{ flash.1 }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if flash.0 == "error" %}
|
||||
<div class="bg-[#f43f5e] text-white px-3 py-1 rounded-md text-center">
|
||||
{{ flash.1 }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
|
||||
{% endif %}
|
||||
<form class="mt-8 space-y-6" method="post" action="/auth">
|
||||
<input type="hidden" name="remember" value="true">
|
||||
|
Reference in New Issue
Block a user