<div style="position:relative;left:10px;width:1000px;">
<h2>Gutschein</h2>
<div id="adminLeftFloater">

	<div title="Stammdaten" id="base">
	
		<form id="admin_manufacturer_edit" class="new" method="post" action="./index.php?admin_modul=admin_gift_certificate_editor&action=save">
			
			<input type="hidden" name="id" value="{$form_data->id}" />
		
			<div class="edit_title">Stammdaten:</div>
			
			<div class="edit_element_3_5">
				<label>Name</label><br />
				<input style="width:100%;" name="form_field[name]" value="{$form_data->name}" type="text" />
			</div>
			<div class="edit_element_2_5">
				<label>Code</label><br />
				<input style="width:100%;" name="form_field[code]" value="{$form_data->code}" type="text" />
			</div>
			<div style="width:542px;margin-left:9px;margin-right:9px;">
				<label>Beschreibung</label>
				<textarea name="form_field[description]" rows="5" style="width:100%">{$form_data->description}</textarea><br />
			</div>
			<div class="edit_endline"></div>	
			<br>
			<div class="edit_title">Zeitraum:</div>
			<div class="edit_element_1_3">
				<label>G&uuml;ltig ab</label><br />
				<input style="width:100%;" class="active_from" name="form_field[available_from]" value="{$form_data->available_from}" type="text" />
			</div>
			<div class="edit_element_1_3">
				<label>G&uuml;ltig bis</label><br />
				<input style="width:100%;" class="active_till" name="form_field[available_until]" value="{$form_data->available_until}" type="text" />
			</div>
			<div class="edit_element_1_3">
				<label>Status</label><br />
				<select name="form_field[active]">
					<option value="1">Aktiv</option>
					<option value="0" {if $form_data->active == 0}selected{/if}>Inaktiv</option>
				</select>
			</div>
			<div class="edit_endline"></div>	
			<br>
			<div class="edit_title">Gutscheinwert:</div>
			<div class="edit_element_1_3">
				<label>Wert</label><br />
				<input id="customerCreationSurname" style="width:100%;" name="form_field[account]" value="{$form_data->account}" type="text" />
			</div>
			<div class="edit_element_1_3">
				<label>Typ</label><br />
				<select name="form_field[account_type]">
					<option value="1">Euro Festbetrag</option>
					<option value="2" {if $form_data->account_type == 2}selected{/if}>% Rabatt auf Warenwert</option>
				</select>
			</div>
			<div class="edit_element_1_3">
				<label>Mindestbestellsumme</label><br />
				<input id="customerCreationSurname" style="width:100%;" name="form_field[min_order_sum]" value="{$form_data->min_order_sum}" type="text" />
			</div>
			<div class="edit_endline"></div>	
			<br />
			<div class="edit_title">Kunden:</div>
			<div class="edit_element_1_3">
				<label>Kundengruppe</label><br />
				<select name="form_field[customer_group_id]" style="width:100%;">
						<option value="0">Alle</option>
					{foreach from=$customer_groups item=group}
						<option value="{$group->id}" {if $group->id == $form_data->customer_group_id}selected="selected"{/if}>{$group->name}</option>
					{/foreach}
				</select>
			</div>
			<div class="edit_element_1_3">
				<label>Typ</label><br />
				<select name="form_field[customer_valid_type]" style="width:100%;">
					<option value="0">Mehrmalig je Kunden</option>
					<option value="1" {if $form_data->customer_valid_type == 1}selected{/if}>Einmalig je Kunden</option>
				</select>
			</div>
			
			<div class="edit_endline"></div>	
			<br>
			<div class="edit_title">Warensortiment:</div>
			<div class="edit_element_1_1">
				<label>Artikel</label><br>
				<select name="form_field[all_item_groups]">
					<option value="1" {if $form_data->all_item_groups == 1}selected{/if}>Auf alle Artikel g&uuml;ltig</option>
					{*<option value="0" {if $form_data->all_item_groups == 0}selected{/if}>Nur G&uuml;ltig f&uuml;r Artikel aus selektierten Warengruppen</option>*}
				</select>
			</div>	
			<div class="edit_endline"></div>
			{*
			{if $form_data->all_item_groups == 0}
			{foreach item=structure from=$structure_tree}
			<input type="checkbox" value="{$structure->id}" name="structure_ids[]" {if $form_data->structure_ids[$structure->id]}checked{/if}>{if $structure->path_name}{$structure->path_name}->{/if}{$structure->name}<br>
			{/foreach}
			{/if}
			<div class="edit_endline"></div>*}
			<input style="width:200px;" type="submit" name="submit" id="submit" value="speichern" />
			
		</form>
		
	</div>
	
</div>
</div>
<script src="{$info->base_url}/themes/admin/media/js/admin_gift_certificate_editor.js"></script>

{if $info_message}<div class="info_message message">{$info_message}</div>{/if}
{if $warning_message}<div class="warning_message message">{$warning_message}</div>{/if}
{if $error_message}<div class="error_message message">{$error_message}</div>{/if}