<div style="position:relative;left:10px;width:1000px;">
<h2>
	{if $data->item_type_definition_id}
		{$data->item_type_definition_name} Editieren
	{else}
		Neuer Artikeltyp
	{/if}
</h2>

<form class="edit2" method="POST" action="./index.php?admin_modul=admin_item_type_editor&action=save_form">

	<div id="adminLeftFloater">
	
		<div title="Stammdaten" id="base">
		
			<div class="edit_title">Stammdaten</div>
		
			{if $data->item_type_definition_id}
			
				<input id="id" name="id" value="{$data->item_type_definition_id}" type="hidden" />
				
				<div class="line">
					<a class="mini_button" href="./index.php?admin_modul=admin_item_type_editor&id={$data->item_type_definition_id}&action=delete_data">
						<img class="edit_icon" src="{$THEME_DIR}/media/images/delete.png" title="l&ouml;schen" />
					</a>
					<a class="mini_button" href="./index.php?admin_modul=admin_item_type_editor">
						<img class="edit_icon" src="{$THEME_DIR}/media/images/new_item2.png" title="neu" />
					</a>
				</div>
				
			{/if}

{*
			{if $data->item_type_definition_id}
			
				<input id="id" name="id" value="{$data->item_type_definition_id}" type="hidden" />
				
				<div class="line">
					<a class="mini_button" href="./index.php?admin_modul=admin_item_type_editor&id={$data->item_type_definition_id}&action=delete_data">
						<img class="edit_icon" src="{$THEME_DIR}/media/images/delete.png" title="l&ouml;schen" />
					</a>
					<a class="mini_button" href="./index.php?admin_modul=admin_item_type_editor">
						<img class="edit_icon" src="{$THEME_DIR}/media/images/new_item2.png" title="neu" />
					</a>
				</div>
				
				<img id="item_type_definition_image" {if $logo}src="{$logo}{else}style="display:none;"{/if} />
				
				<a id="delete_item_type_definition_image" href="./index.php?admin_modul=admin_item_type_editor&id={$data->item_type_definition_id}&action=delete_image" {if !$logo}style="display:none;"{/if} />
				
				<p id="no_item_type_definition_image_notice" {if !$logo}style="display:none;"{/if}>Sie haben noch keinen Logo hochgeladen.</p>
				
				<input id="header_upload" name="item_type_definition_image_upload" name="item_type_definition_image" type="file" />
				
				<div id="image_upload_target"></div>
			{/if}
*}
			
			<div class="line">
				<div class="edit_element_2_5">
					<label>Status</label>
					<select name="item_type_definitions[item_type_definition_is_active]">
						<option value="0">inaktiv</option>
						<option value="1" {if $data->item_type_definition_is_active == 1}selected="selected"{/if} >aktiv</option>
					</select>
				</div>
				
				<div class="edit_element_3_5">
					<label>Name</label>
					<input name="item_type_definitions[item_type_definition_name]" value="{$data->item_type_definition_name}" type="text" />
				</div>
			</div>
			
			<div class="line">
				<div class="edit_element_5_5">
					<label>Text</label>
					<input name="item_type_definitions[item_type_definition_text]" value="{$data->item_type_definition_text}" type="text" />
				</div>
			</div>
			
			<div class="line">
				<input id="submit_button" type="submit" value="Speichern" />
			</div>
			
		</div>
		
	</div>
	
</form>
</div>
<script src="{$info->base_url}/themes/admin/media/js/admin_item_type_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}