<div class="form_wrapper">
	<form method="post">
		<div class="buttons">
			<a href="/admin/delete_money_income/{$mi->get_mi_id()}" class="addbutton delete-big">Bevétel törlése</a>
		</div>
		<input type="hidden" name="action" value="mi_update">
		<input type="hidden" name="mi_id" value="{$mi->get_mi_id()}">

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

		<div>
			<label for="mi_item">Tétel:</label>
			<div><input type="text" name="mi_item" id="mi_item" value="{$mi->get_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}"{if $pt_array.pt_id == $mi->get_mi_payment_type_pt_id()} selected{/if}>
							{$pt_array.pt_name}
						</option>
					{/foreach}
				</select>
			</div>
		</div>

		<div>
			<label for="mi_összeg">Összeg:</label>
			<div><input type="text" name="mi_sum" id="mi_sum" value="{$mi->get_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()}'{if $mic->get_mic_id() == $mi->get_mi_money_income_category_mic_id()} selected{/if}>{$mic->get_mic_name()}</option>
					{/foreach}
				</select>
			</div>
		</div>

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

	</form>
</div>
