cryptonas/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs

38 lines
1.5 KiB
C#

<h1><?cs var:Lang.Title.Init ?></h1>
<div class="init">
<form action="<?cs var:ScriptName ?>" method="post" enctype="application/x-www-form-urlencoded">
<table class="form">
<!-- TODO: replace colgroup by css? -->
<colgroup><col align="right" width="50%"/><col align="left" width="50%"/></colgroup>
<caption style="caption-side:top; text-align:center; font-weight:bold; color:red">
<?cs var:Lang.Text.InitWarning ?></caption>
<tr><td colspan="2" style="text-align:center"></td></tr>
<tr><td align="right"><?cs var:Lang.Text.EnterNewPassword ?></td><td>
<input type="password" name="password" size="20" tabindex="1" maxlength="40" />
</td></tr>
<tr><td align="right"><?cs var:Lang.Text.EnterSamePassword ?> </td><td>
<input type="password" name="password2" size="20" tabindex="2" maxlength="40" />
</td></tr>
<tr><td colspan="2" align="center">
<?cs var:Lang.Text.ConfirmInitHint ?> <span id="confirmtext"><?cs var:Lang.Text.ConfirmInit ?></span></td></tr>
<tr><td colspan="2" align="center">
<input type="text" name="confirm" size="30" tabindex="3" maxlength="50" />
</td></tr>
<tr><td colspan="2" align="center" style="padding:3%">
<button type="submit" name="action" value="init_do"><?cs var:Lang.Button.DoInit ?></button>
</td></tr>
</table>
</form>
</div>
<div class="partition_info">
<hr/>
<h2><?cs var:Lang.Text.PartitionInfo ?></h2>
<!-- TODO: CSS! -->
<p style="margin-left:10%; margin-right:10%; font-family:monospace">
<?cs var:Data.PartitionInfo ?>
</p>
</div>