<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" value="{$mox->get_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="{$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 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()}'>{$moxc->get_moxc_name()}{if $moxc->get_moxc_id() == $mox->get_mox_moxc_id()} selected{/if}</select>						
					{/foreach}
				</select>
			</div>
		</div>
		
		<div>
			<div>
		  		<input class="button black" type="submit" value="Mentés">
		    </div>
		</div>

	</form>
</div>