{block content}
	<div class="span12">
		<div class="box-content">
			<div class="filter">
				{form filterForm, class => 'form-inline'}
					<i class="icon-search fs20"></i>&nbsp;{input search, class => 'input-large'}&nbsp;&nbsp;
					<i class="icon-truck fs20"></i>&nbsp;{input driver, class => 'input-medium'}&nbsp;&nbsp;
					<i class="icon-user fs20"></i>&nbsp;{input expedition, class => 'input-medium'}&nbsp;&nbsp;{input submit}
					<a n:href="add" class="btn btn-primary" style="float: right;">
						<i class="icon-plus icon-white"></i>&nbsp;Vytvořit nového zákazníka
					</a>
				{/form}
			</div>

			<div class="row-fluid">
				<div n:foreach="$flashes as $flash" class="alert alert-{$flash->type}">{$flash->message}</div>

				{if $customerForm->hasErrors()}
					<div n:foreach="$customerForm->errors as $error" class="alert alert-error">{$error}</div>
				{/if}

				{form customerForm}
					<div class="span5 offset1">
						<h2>Základní informace</h2>
						<hr>
						<table style="margin-bottom: 50px;">
							<tr>
								<td style="padding-right: 10px;">{label name /}</td>
								<td>{input name}</td>
							</tr>
							<tr>
								<td>{label city /}</td>
								<td>{input city}</td>
							</tr>
						</table>

						<h2>Kontaktní informace</h2>
						<hr>
						<table style="margin-bottom: 50px;">
							<tr>
								<td style="padding-right: 10px;">{label contact_name /}</td>
								<td>{input contact_name}</td>
							</tr>
							<tr>
								<td>{label contact_phone /}</td>
								<td>{input contact_phone}</td>
							</tr>
							<tr>
								<td>{label contact_email /}</td>
								<td>{input contact_email}</td>
							</tr>
						</table>

						<h2>Fakturační adresa</h2>
						<hr>
						<table style="margin-bottom: 50px;">
							<tr>
								<td style="padding-right: 10px;">{label billing_name /}</td>
								<td>{input billing_name, class => 'input-largex'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap">{label billing_street /} / {label billing_cp /}</td>
								<td>{input billing_street, class => 'input-ulice'}&nbsp;{input billing_cp, class => 'input-mini'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap">{label billing_postcode /} / {label billing_city /}</td>
								<td>{input billing_postcode, class => 'input-mini'}&nbsp;{input billing_city, class => 'input-ulice'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap">{label billing_cin /} / {label billing_tin /}</td>
								<td>{input billing_cin, class => 'input-medium'}&nbsp;{input billing_tin, class => 'input-medium'}</td>
							</tr>
						</table>

						<h2>Dodací adresa</h2>
						<hr>
						<table>
							<tr>
								<td>{label delivery_name /}</td>
								<td>{input delivery_name, class => 'input-largex'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap">{label delivery_street /} / {label delivery_cp /}</td>
								<td>{input delivery_street, class => 'input-ulice'}&nbsp;{input delivery_cp, class => 'input-mini'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap">{label delivery_postcode /} / {label delivery_city /}</td>
								<td>{input delivery_postcode, class => 'input-mini'}&nbsp;{input delivery_city, class => 'input-ulice'}</td>
							</tr>
							<tr>
								<td class="no-label-wrap" style="padding-right: 10px;">{label delivery_gps_n /} / {label delivery_gps_e /}</td>
								<td>{input delivery_gps_n, class => 'input-medium'}&nbsp;{input delivery_gps_e, class => 'input-medium'}</td>
							</tr>
						</table>
					</div>

					<div class="span5">
						<h2>Základní nastavení</h2>
						<hr>
						<table style="margin-bottom: 50px;">
							<tr>
								<td style="padding-right: 40px;">{label state /}</td>
								<td>{input state, style => 'margin-left: 18px;'}</td>
							</tr>
							<tr>
								<td>{label id_user_driver /}</td>
								<td><i class="icon-truck"></i>&nbsp;{input id_user_driver}</td>
							</tr>
							<tr>
								<td>{label id_user_expedition /}</td>
								<td><i class="icon-user"></i>&nbsp;{input id_user_expedition, style => 'margin-left: 3px;'}</td>
							</tr>
							<tr>
								<td>{label payment /}</td>
								<td>{input payment, style => 'margin-left: 18px;'}</td>
							</tr>
						</table>

						<h2>Nastavení objednávek</h2>
						<hr>
						<table>
							<tr>
								<td style="padding-right: 20px; vertical-align: top;">{label delivery_type /}</td>
								<td class="disable-radio-input-br">{input delivery_type}</td>
							</tr>
						</table>
					</div>

					<div class="span1"></div>

					<div class="clear" style="text-align: center; padding-top: 10px;">
						{input submit}
					</div>
				{/form}
			</div>
		</div>
	</div>
