{* Section: Stammdaten *}

<div class="admin2000-form-section">
<div class="admin2000-form-section-title">Stammdaten</div>

{* Row 1: Kundennummer + Freigabe *}
<div class="admin2000-form-row admin2000-form-row-2">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Kundennummer</label>
		<input type="text" class="admin2000-form-input" name="customer_field[number]" value="{$customer_data.number|escape:'html'}">
	</div>

	{if isset($select_values.locked)}
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freigabe</label>
		<select class="admin2000-form-select" name="customer_field[locked]">
			{foreach from=$select_values.locked item=label key=value}
			<option value="{$value}" {if $customer_data.locked == $value}selected{/if}>{$label}</option>
			{/foreach}
		</select>
	</div>
	{/if}
</div>

{* Row 2: Kundengruppe + Rolle *}
<div class="admin2000-form-row admin2000-form-row-2">
	{if isset($select_values.group_id)}
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Kundengruppe</label>
		<select class="admin2000-form-select" name="customer_field[group_id]">
			{foreach from=$select_values.group_id item=label key=value}
			<option value="{$value}" {if $customer_data.group_id == $value}selected{/if}>{$label}</option>
			{/foreach}
		</select>
	</div>
	{/if}

	{if isset($select_values.admin_role_id)}
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Rolle (Admin-Berechtigung)</label>
		<select class="admin2000-form-select" name="customer_field[admin_role_id]">
			<option value="">Keine Admin-Rechte</option>
			{foreach from=$select_values.admin_role_id item=label key=value}
			<option value="{$value}" {if $customer_data.admin_role_id == $value}selected{/if}>{$label}</option>
			{/foreach}
		</select>
	</div>
	{/if}
</div>

{* Row 3: Geburtsdatum (single field) *}
<div class="admin2000-form-group">
	<label class="admin2000-form-label">Geburtsdatum</label>
	<input type="date" class="admin2000-form-input" name="customer_field[burth_date]" value="{if $customer_data.burth_date != '0000-00-00' && $customer_data.burth_date != ''}{$customer_data.burth_date|escape:'html'}{/if}">
</div>
</div>
