<?php include '__header.phtml'; ?>
<h2 class="page-header">Nieuwe overboeking</h2>
<?php
if (isset($error)) {
?>
<div class="alert alert-danger" role="alert"><?php echo Inforbank\Application\Helper\Overboekingen::getErrorMessage($error) ?></div>
}
<div class="panel panel-default">
<div class="panel-body">
<form method="post" action="" class="form-horizontal">
<div class="form-group">
<label for="van" class="col-sm-2 control-label">Van</label>
<div class="col-sm-10">
<select name="van" class="form-control">
foreach ($rekeningen as $rekening) {
echo "<option value=" . $rekening['nr'] . ">" . $rekening['iban'] . "</option>\n";
</select>
</div>
<label for="naar" class="col-sm-2 control-label">Naar (IBAN)</label>
<input name="naar" type="text" class="form-control" placeholder="NL00 INFO 0000 0000 00"></input>
<br/>
<label for="bedrag" class="col-sm-2 control-label">Bedrag</label>
<div class="input-group">
<div class="input-group-addon">€</div><input class="form-control" name="bedrag" type="decimal" placeholder=""></input>
<label for="omschrijving" class="col-sm-2 control-label">Omschrijving (40 tekens)</label>
<textarea class="form-control" name="omschrijving" maxlength=40></textarea>
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Overboeking bevestigen</button>
</form>
<?php include '__footer.phtml'; ?>