<div class="form_wrapper">
	<form method="post">
		<input type="hidden" name="action" value="mi_create">

		<div>
			<label for="mi_date">Dátum:</label>
			<div><input type="text" name="mi_date" id="mi_date" placeholder="ÉÉÉÉ-HH-NN" value="{$today}" required></div>
		</div>
		<div>
			<label for="mi_item">Tétel:</label>
			<div><input type="text" name="mi_item" id="mi_item" required></div>
		</div>

		<div>
			<label class="desc" for="mi_payment_type">Fizetés típusa:</label>
			<div>
				<select name="mi_payment_type" id="mi_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="mi_sum">Összeg:</label>
			<div><input type="text" name="mi_sum" id="mi_sum" required></div>
		</div>

		<div>
			<label for="mi_item">Kategória:</label>
			<div>
				<select name="mi_mic_id">
					<option value='null'>- nincs beállítva -</option>
					{foreach $mic_array as $mic}
						<option value='{$mic->get_mic_id()}'>{$mic->get_mic_name()}</option>
					{/foreach}
				</select>
			</div>
		</div>

		<div>
			<div>
		  		<input class="button black" type="submit" value="Létrehozás">
		    </div>
		</div>

	</form>
</div>
