File: flash_error.tpl

package info (click to toggle)
postfixadmin 3.3.15%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,816 kB
  • sloc: php: 10,120; perl: 1,069; sh: 643; python: 169; xml: 62; sql: 3; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- {$smarty.template} -->
<br clear="all"/><br/>
{strip}
    {if isset($smarty.session.flash)}
        {if isset($smarty.session.flash.info)}
            <div class="alert alert-info" role="alert">
                <ul class="flash-info">
                    {foreach from=$smarty.session.flash.info item=msg}
                        <li>{$msg|escape:html}</li>
                    {/foreach}
                </ul>
            </div>
        {/if}
        {if isset($smarty.session.flash.error)}
            <div class="alert alert-danger" role="alert">
                <ul class="flash-error">
                    {foreach from=$smarty.session.flash.error item=msg}
                        <li>{$msg|escape:html}</li>
                    {/foreach}
                </ul>
            </div>
        {/if}
    {/if}
{/strip}