Files
code-cegled/template/templates/money_expense_create.tpl
2018-05-03 20:27:35 +02:00

57 lines
1.4 KiB
Smarty

<div class="form_wrapper">
<form method="post">
<input type="hidden" name="action" value="mox_create">
<div>
<label for="mox_name">Név:</label>
<div><input type="text" name="mox_name" id="mox_name"></div>
</div>
<div>
<label for="mox_date">Dátum:</label>
<div><input type="text" name="mox_date" id="mox_date" placeholder="ÉÉÉÉ-HH-NN" value="{$today}" required></div>
</div>
<div>
<label for="mox_item">Tétel:</label>
<div><input type="text" name="mox_item" id="mox_item" required></div>
</div>
<div>
<label class="desc" for="mox_payment_type">Fizetés típusa:</label>
<div>
<select name="mox_payment_type" id="mox_payment_type">
{foreach $pt_assoc_array as $pt_array}
<option value="{$pt_array.pt_id}">
{$pt_array.pt_name}
</option>
{/foreach}
</select>
</div>
</div>
<div>
<label for="mox_összeg">Összeg:</label>
<div><input type="text" name="mox_sum" id="mox_sum" required></div>
</div>
<div>
<label for="mox_item">Kategória:</label>
<div>
<select name="mox_moxc_id">
<option value='null'>- nincs beállítva -</option>
{foreach $moxc_array as $moxc}
<option value='{$moxc->get_moxc_id()}'>{$moxc->get_moxc_name()}</option>
{/foreach}
</select>
</div>
</div>
<div>
<div>
<input class="button black" type="submit" value="Létrehozás">
</div>
</div>
</form>
</div>