<div style="position:relative;left:10px;width:1000px;">
<h2><a style="text-decoration:none;" href="./index.php?admin_modul=admin_object_list&object=ItemSchema">Artikelschema</a> {if $form_data->name} -&gt; {$form_data->name}{else} -&gt; neu{/if}</h2>

<div id="adminLeftFloater" style="width:980px;">
	<div title="Stammdaten" id="stammdaten">
		<form class="edit" method="POST">
			<input type="hidden" name="modul" value="admin_customer_group_editor" />
			<input type="hidden" id="id" name="id" value="{$form_data->id}" />
				
				<div class="edit_title">Allgemein:</div>
				<div class="edit_element_2_5">
					<label>Name</label>
					<input id="customerCreationFirstname" name="form_field[name]" value="{$form_data->name}" type="text" />
				</div>				
				<div class="edit_element_3_5">
					<label>Beschreibung</label>
					<input id="customerCreationFirstname" name="form_field[description]" value="{$form_data->description}" type="text" />
				</div>				
				<div class="edit_endline"></div>
				<div class="edit_title_toggler edit_title_hidden">Funktionen:</div>
				<div id="container_extended_customerdata" class="toggleable_container" {*style="display:none;"*}>
					<div class="edit_element_2_5">
						<label>1. Variantenfeld</label>
						<select name="form_field[selectable_attribute_1]">
							<option value="0">-</option>
							<option value="1" {if $form_data->selectable_attribute_1 == 1}selected{/if}>Attribut 1</option>
							<option value="2" {if $form_data->selectable_attribute_1 == 2}selected{/if}>Attribut 2</option>
							<option value="3" {if $form_data->selectable_attribute_1 == 3}selected{/if}>Attribut 3</option>
							<option value="4" {if $form_data->selectable_attribute_1 == 4}selected{/if}>Attribut 4</option>
							<option value="5" {if $form_data->selectable_attribute_1 == 5}selected{/if}>Attribut 5</option>
							<option value="6" {if $form_data->selectable_attribute_1 == 6}selected{/if}>Attribut 6</option>
							<option value="7" {if $form_data->selectable_attribute_1 == 7}selected{/if}>Attribut 7</option>
							<option value="8" {if $form_data->selectable_attribute_1 == 8}selected{/if}>Attribut 8</option>
							<option value="9" {if $form_data->selectable_attribute_1 == 9}selected{/if}>Attribut 9</option>
							<option value="10" {if $form_data->selectable_attribute_1 == 10}selected{/if}>Attribut 10</option>
							<option value="11" {if $form_data->selectable_attribute_1 == 11}selected{/if}>Attribut 11</option>
							<option value="12" {if $form_data->selectable_attribute_1 == 12}selected{/if}>Attribut 12</option>
							<option value="13" {if $form_data->selectable_attribute_1 == 13}selected{/if}>Attribut 13</option>
							<option value="14" {if $form_data->selectable_attribute_1 == 14}selected{/if}>Attribut 14</option>
							<option value="15" {if $form_data->selectable_attribute_1 == 15}selected{/if}>Attribut 15</option>
							<option value="16" {if $form_data->selectable_attribute_1 == 16}selected{/if}>Attribut 16</option>
							<option value="17" {if $form_data->selectable_attribute_1 == 17}selected{/if}>Attribut 17</option>
							<option value="18" {if $form_data->selectable_attribute_1 == 18}selected{/if}>Attribut 18</option>
							<option value="19" {if $form_data->selectable_attribute_1 == 19}selected{/if}>Attribut 19</option>
							<option value="20" {if $form_data->selectable_attribute_1 == 20}selected{/if}>Attribut 20</option>
						</select>
					</div>
					<div class="edit_element_2_5">
						<label>2. Variantenfeld</label>
						<select name="form_field[selectable_attribute_2]">
							<option value="0">-</option>
							<option value="1" {if $form_data->selectable_attribute_2 == 1}selected{/if}>Attribut 1</option>
							<option value="2" {if $form_data->selectable_attribute_2 == 2}selected{/if}>Attribut 2</option>
							<option value="3" {if $form_data->selectable_attribute_2 == 3}selected{/if}>Attribut 3</option>
							<option value="4" {if $form_data->selectable_attribute_2 == 4}selected{/if}>Attribut 4</option>
							<option value="5" {if $form_data->selectable_attribute_2 == 5}selected{/if}>Attribut 5</option>
							<option value="6" {if $form_data->selectable_attribute_2 == 6}selected{/if}>Attribut 6</option>
							<option value="7" {if $form_data->selectable_attribute_2 == 7}selected{/if}>Attribut 7</option>
							<option value="8" {if $form_data->selectable_attribute_2 == 8}selected{/if}>Attribut 8</option>
							<option value="9" {if $form_data->selectable_attribute_2 == 9}selected{/if}>Attribut 9</option>
							<option value="10" {if $form_data->selectable_attribute_2 == 10}selected{/if}>Attribut 10</option>
							<option value="11" {if $form_data->selectable_attribute_2 == 11}selected{/if}>Attribut 11</option>
							<option value="12" {if $form_data->selectable_attribute_2 == 12}selected{/if}>Attribut 12</option>
							<option value="13" {if $form_data->selectable_attribute_2 == 13}selected{/if}>Attribut 13</option>
							<option value="14" {if $form_data->selectable_attribute_2 == 14}selected{/if}>Attribut 14</option>
							<option value="15" {if $form_data->selectable_attribute_2 == 15}selected{/if}>Attribut 15</option>
							<option value="16" {if $form_data->selectable_attribute_2 == 16}selected{/if}>Attribut 16</option>
							<option value="17" {if $form_data->selectable_attribute_2 == 17}selected{/if}>Attribut 17</option>
							<option value="18" {if $form_data->selectable_attribute_2 == 18}selected{/if}>Attribut 18</option>
							<option value="19" {if $form_data->selectable_attribute_2 == 19}selected{/if}>Attribut 19</option>
							<option value="20" {if $form_data->selectable_attribute_2 == 20}selected{/if}>Attribut 20</option>
						</select>
					</div>
					<div class="edit_element_2_5">
						<label>Grundpreis</label>
						<select name="form_field[base_price_field]">
							<option value="0">-</option>
							<option value="1" {if $form_data->base_price_field == 1}selected{/if}>Attribut 1</option>
							<option value="2" {if $form_data->base_price_field == 2}selected{/if}>Attribut 2</option>
							<option value="3" {if $form_data->base_price_field == 3}selected{/if}>Attribut 3</option>
							<option value="4" {if $form_data->base_price_field == 4}selected{/if}>Attribut 4</option>
							<option value="5" {if $form_data->base_price_field == 5}selected{/if}>Attribut 5</option>
							<option value="6" {if $form_data->base_price_field == 6}selected{/if}>Attribut 6</option>
							<option value="7" {if $form_data->base_price_field == 7}selected{/if}>Attribut 7</option>
							<option value="8" {if $form_data->base_price_field == 8}selected{/if}>Attribut 8</option>
							<option value="9" {if $form_data->base_price_field == 9}selected{/if}>Attribut 9</option>
							<option value="10" {if $form_data->base_price_field == 10}selected{/if}>Attribut 10</option>
							<option value="11" {if $form_data->base_price_field == 11}selected{/if}>Attribut 11</option>
							<option value="12" {if $form_data->base_price_field == 12}selected{/if}>Attribut 12</option>
							<option value="13" {if $form_data->base_price_field == 13}selected{/if}>Attribut 13</option>
							<option value="14" {if $form_data->base_price_field == 14}selected{/if}>Attribut 14</option>
							<option value="15" {if $form_data->base_price_field == 15}selected{/if}>Attribut 15</option>
							<option value="16" {if $form_data->base_price_field == 16}selected{/if}>Attribut 16</option>
							<option value="17" {if $form_data->base_price_field == 17}selected{/if}>Attribut 17</option>
							<option value="18" {if $form_data->base_price_field == 18}selected{/if}>Attribut 18</option>
							<option value="19" {if $form_data->base_price_field == 19}selected{/if}>Attribut 19</option>
							<option value="20" {if $form_data->base_price_field == 20}selected{/if}>Attribut 20</option>
						</select>
					</div>
					<div class="edit_endline"></div>
				</div>
				
				<div class="edit_title">Attribute:</div>
				<ul id="sortable_attributes" class="widget_container" style="width:950px;">
				{foreach from=$form_data->attributes item=attribute}
						<li class="{$file->rang}" title="attribute_rang_{$attribute->number}" style="width:946px;">
							<input type="hidden" name="form_field[attribute_rang_{$attribute->number}]" value="{$attribute->rang}" />
							<div class="content_box" style="background:#dddddd;width:936px;">
								<div class="body">
									<div class="edit_element_2_5">
										<label>Bezeichnung{if $form_data->selectable_attribute_1 == $attribute->number}<span style="color:#000000;">Variante 1</span>{/if}{if $form_data->selectable_attribute_2 == $attribute->number}<span style="color:#000000;">Variante 2</span>{/if}</label>
										<input id="customerCreationFirstname" name="form_field[attribute_name_{$attribute->number}]" value="{$attribute->name|htmlspecialchars}" type="text" />
									</div>		
									{foreach item=language from=$content_languages}
									{if $language->iso_639_1 != $system_configuration.default_system_language}
									<div class="edit_element_2_5 multilang_element lang_element_{$language->iso_639_1}" style="display:none;">
										<label>Bezeichnung ({$language->name})</label>
										{assign var="key" value="name_`$language->iso_639_1`"}
										<input id="customerCreationFirstname" name="form_field[attribute_name_{$attribute->number}_{$language->iso_639_1}]" value="{$attribute->$key|htmlspecialchars}" type="text" />
									</div>
									{/if}
									{/foreach}		
									<div class=" edit_element_1_5">
										<label>Einheit(en)</label>
										<input id="customerCreationFirstname" name="form_field[attribute_unit_{$attribute->number}]" value="{$attribute->unit|htmlspecialchars}" type="text" />
									</div>				
									<div class="edit_element_1_5">
										<label>Listenansicht</label>
										<input id="customerCreationFirstname" name="form_field[attribute_liste_{$attribute->number}]" {if $attribute->show_list}checked{/if} style="width:10px;" value="1" type="checkbox" />
									</div>				
									<div class="edit_element_1_5">
										<label>Detailansicht</label>
										<input id="customerCreationFirstname" name="form_field[attribute_detail_{$attribute->number}]" {if $attribute->show_detail}checked{/if} style="width:10px;" value="1" type="checkbox" />
									</div>
									{if $form_data->base_price_field == $attribute->number}			
									<div class=" edit_element_1_5">
										<label>Grundpreis Faktor</label>
										<input name="form_field[base_price_faktor]" value="{$form_data->base_price_faktor}" type="text" />
									</div>
									<div class=" edit_element_1_5">
										<label>Grundpreis Einheit</label>
										<input name="form_field[base_price_unit]" value="{$form_data->base_price_unit}" type="text" />
									</div>
									{/if}	
									<div style="clear:both;"></div>
								</div>
							</div>
						</li>
				{/foreach}
				</ul>				
			<input style="position:relative;left:185px;width: 200px;" type="submit" name="submit" id="submit" value="Schema speichern" />
			<br><br>
		</form>
	</div>
</div>

</div>
<script src="{$info->base_url}/themes/admin/media/js/admin_item_schema_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}