<h1>Master account</h1>

<form action="{zoner}" method="POST">
<flexy:component name="ff" class="fill_hidden" exclude="mode">

{if:info}
    <input type=hidden name=action value="update">
    <table border=0>
    <tr>
        <td colspan=2><h2>Account info:</h2></td>
    </tr>
    <tr>
        <td width=100><b>Login:</b></td>
        <td>{info[email]}</td>
    </tr>
    <tr>
        <td><b>Password:</b></td>
        <td>{info[password]}</td>
    </tr>
    </table>

{else:}
    <input type=hidden name=action value="create">
    <p><h2 class=error>You don't have master account at now.</h2>
{end:}


<p>
<table border=0>
<tr>
    <td width=100><b>Login:</b></td>
    <td><input type=text name=email size=40></td>
    <td><flexy:component class="validator_not_empty" name="email"></td>
</tr>
<tr>
    <td><b>Password:</b></td>
    <td><input type=text name=password size=40></td>
    <td><flexy:component class="validator_not_empty" name="password"></td>
</tr>
{if:info}
    <tr>
        <td> </td>
        <td><input type=submit value=" Update "></td>
    </tr>
{else:}
    <tr>
        <td> </td>
        <td><input type=submit value=" Create "></td>
    </tr>
{end:}
</form>
</table>