{* Section: Zusatzfelder - Bankverbindung, Zahlungsmethoden, Weitere Daten *}

{* ============================================
   SECTION 1: Bankverbindung
   ============================================ *}
<div class="admin2000-form-section">
<div class="admin2000-form-section-title">Bankverbindung</div>

{* Row 1: Kontoinhaber + Kontonummer + Geldinstitut *}
<div class="admin2000-form-row admin2000-form-row-3">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Kontoinhaber</label>
		<input type="text" class="admin2000-form-input" name="customer_field[account_holder]" value="{$customer_data.account_holder|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Kontonummer</label>
		<input type="text" class="admin2000-form-input" name="customer_field[account_number]" value="{$customer_data.account_number|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Geldinstitut</label>
		<input type="text" class="admin2000-form-input" name="customer_field[bank]" value="{$customer_data.bank|escape:'html'}" autocomplete="off">
	</div>
</div>

{* Row 2: BLZ + IBAN + SWIFT/BIC *}
<div class="admin2000-form-row admin2000-form-row-3">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">BLZ</label>
		<input type="text" class="admin2000-form-input" name="customer_field[bank_number]" value="{$customer_data.bank_number|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">IBAN</label>
		<input type="text" class="admin2000-form-input" name="customer_field[iban]" value="{$customer_data.iban|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">SWIFT/BIC</label>
		<input type="text" class="admin2000-form-input" name="customer_field[swift_bic]" value="{$customer_data.swift_bic|escape:'html'}" autocomplete="off">
	</div>
</div>
</div>

{* ============================================
   SECTION 2: Zahlungsmethoden
   ============================================ *}
<div class="admin2000-form-section">
<div class="admin2000-form-section-title">Zahlungsmethoden</div>

<p style="margin-bottom: 20px; color: #6c757d; font-size: 14px;">
	Hinweis: Damit der Kunde die Zahlungsart 'Bankeinzug bzw. Rechnung' wählen kann, muss für die Kundengruppe und die Lieferzone auch diese freigeschaltet sein!
</p>

{* Row 1: Bankeinzug + Rechnung + Skonto *}
<div class="admin2000-form-row admin2000-form-row-3">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Bankeinzug</label>
		<select class="admin2000-form-select" name="customer_field[direct_debit_active]">
			<option value="1" {if $customer_data.direct_debit_active == 1}selected{/if}>freigegeben</option>
			<option value="0" {if $customer_data.direct_debit_active == 0}selected{/if}>gesperrt</option>
		</select>
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Rechnung</label>
		<select class="admin2000-form-select" name="customer_field[rechnung_active]">
			<option value="1" {if $customer_data.rechnung_active == 1}selected{/if}>freigegeben</option>
			<option value="0" {if $customer_data.rechnung_active == 0}selected{/if}>gesperrt</option>
		</select>
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Skonto %</label>
		<select class="admin2000-form-select" name="customer_field[skonto]">
			<option value="0" {if $customer_data.skonto == 0}selected{/if}>-</option>
			<option value="1" {if $customer_data.skonto == 1}selected{/if}>1</option>
			<option value="2" {if $customer_data.skonto == 2}selected{/if}>2</option>
			<option value="3" {if $customer_data.skonto == 3}selected{/if}>3</option>
			<option value="4" {if $customer_data.skonto == 4}selected{/if}>4</option>
			<option value="5" {if $customer_data.skonto == 5}selected{/if}>5</option>
			<option value="6" {if $customer_data.skonto == 6}selected{/if}>6</option>
			<option value="7" {if $customer_data.skonto == 7}selected{/if}>7</option>
			<option value="8" {if $customer_data.skonto == 8}selected{/if}>8</option>
			<option value="9" {if $customer_data.skonto == 9}selected{/if}>9</option>
			<option value="10" {if $customer_data.skonto == 10}selected{/if}>10</option>
		</select>
	</div>
</div>
</div>

{* ============================================
   SECTION 3: Weitere Kundendaten
   ============================================ *}
<div class="admin2000-form-section">
<div class="admin2000-form-section-title">Weitere Kundendaten</div>

{* Row 1: Freitextfeld 1-3 *}
<div class="admin2000-form-row admin2000-form-row-3">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 1</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield1]" value="{$customer_data.freetextfield1|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 2</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield2]" value="{$customer_data.freetextfield2|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 3</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield3]" value="{$customer_data.freetextfield3|escape:'html'}" autocomplete="off">
	</div>
</div>

{* Row 2: Freitextfeld 4-6 *}
<div class="admin2000-form-row admin2000-form-row-3">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 4</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield4]" value="{$customer_data.freetextfield4|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 5</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield5]" value="{$customer_data.freetextfield5|escape:'html'}" autocomplete="off">
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Freitextfeld 6</label>
		<input type="text" class="admin2000-form-input" name="customer_field[freetextfield6]" value="{$customer_data.freetextfield6|escape:'html'}" autocomplete="off">
	</div>
</div>

{* Row 3: Artikel Export + Newsletter *}
<div class="admin2000-form-row admin2000-form-row-2">
	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Artikel Export</label>
		<select class="admin2000-form-select" name="customer_field[has_item_export]">
			<option value="0" {if $customer_data.has_item_export == 0}selected{/if}>Nein</option>
			<option value="1" {if $customer_data.has_item_export == 1}selected{/if}>Ja</option>
		</select>
	</div>

	<div class="admin2000-form-group">
		<label class="admin2000-form-label">Newsletter</label>
		<select class="admin2000-form-select" name="customer_field[newsletter_sub]">
			<option value="0" {if $customer_data.newsletter_sub == 0}selected{/if}>Nein</option>
			<option value="1" {if $customer_data.newsletter_sub == 1}selected{/if}>Ja</option>
		</select>
	</div>
</div>

{* Row 4: Notiz (full width) *}
<div class="admin2000-form-group">
	<label class="admin2000-form-label">Notiz</label>
	<textarea class="admin2000-form-textarea" name="customer_field[info]" rows="6">{$customer_data.info|escape:'html'}</textarea>
</div>
</div>
