<h2>Current language: {langname}</h2> [<a href="admin.php?target={target}">choose another language</a>]<br>
<br>

<flexy:include src="admin/custompages/list.tpl">
<br>

<flexy:switch var="{mode}">
<flexy:case value="">
    <FORM action="admin.php" method=POST>
    <flexy:component name="fh" class="fill_hidden" exclude="id, mode, lang">
    <input type=hidden name="mode" value="add">
    <input type=hidden name="lang" value="{lang}">
    <input type=submit value=" Add custom page ">
    </form>
    <flexy:break>
<flexy:case value="add">
    <flexy:include src="admin/custompages/new.tpl">
    <flexy:break>
<flexy:case value="edit">
    <FORM action="admin.php" method=POST>
    <flexy:component name="fh" class="fill_hidden">
    <input type=hidden name="mode" value="add">
    <input type=hidden name="lang" value="lang">
    <input type=submit value=" Add custom page ">
    </form>
    <flexy:include src="admin/custompages/edit.tpl">
    <flexy:break>
<flexy:end>
