<div class="form_wrapper">
	<form method="post">
		<div class="buttons">
			<a href="/admin/delete_money_expense/{$mox->get_mox_id()}" class="addbutton delete-big">Kiadás törlése</a>
		</div>
		<input type="hidden" name="action" value="mox_update">
		<input type="hidden" name="mox_id" value="{$mox->get_mox_id()}">

		<div>
			<label for="mox_name">Név:</label>
			<div><input type="text" name="mox_name" id="mox_name" value="{if $mox->get_mox_coach()|is_a:'user'}{$mox->get_mox_coach()->get_ua_name()}{/if}"></div>
		</div>

		<div>
			<label for="mox_date">Dátum:</label>
			<div><input type="text" name="mox_date" id="mox_date" placeholder="ÉÉÉÉ-HH-NN" value="{$mox->get_mox_date()}" required></div>
		</div>

		<div>
			<label for="mox_item">Tétel:</label>
			<div><input type="text" name="mox_item" id="mox_item" value="{$mox->get_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}"{if $pt_array.pt_id == $mox->get_mox_payment_type_pt_id()} selected{/if}>
							{$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" value="{$mox->get_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()}'{if $moxc->get_moxc_id() == $mox->get_mox_money_expense_category_moxc_id()} selected{/if}>{$moxc->get_moxc_name()}</option>
					{/foreach}
				</select>
			</div>
		</div>

		<div>
			<div>
		  		<input class="button black" type="submit" value="Mentés">
		    </div>
		</div>

	</form>
</div>
