15 lines
648 B
Plaintext
15 lines
648 B
Plaintext
@* Krátká zpráva po přesměrování (např. „Profil uložen“). Nastavuje se přes TempData.Success / TempData.Error. *@
|
|||
|
|
@if (TempData[Flash.Success] is string success)
|
||
|
|
{
|
||
|
|
<div class="alert alert-success alert-dismissible fade show" role="status">
|
||
|
|
@success
|
||
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Zavřít"></button>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
@if (TempData[Flash.Error] is string error)
|
||
|
|
{
|
||
|
|
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||
|
|
@error
|
||
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Zavřít"></button>
|
||
|
|
</div>
|
||
|
|
}
|