<%@ page contentType="text/html; charset=UTF-8"%><%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<div class="tile">
	<bg:blockTitle title="Клиент"/>
	<div class="paramFlex" style="margin-top: 10px; margin-left: 10px;">
	<c:choose>
		<c:when test="${empty customer}">Данные не доступны</c:when> 
		<c:when test="${customer.customerType.type eq 'u' }">
		<div><span>Название:</span> ${customerName}</div>
		<div><span>Руководитель:</span> ${customerDirector}</div>
		<div><span>ОГРН:</span> ${customerOgrn}</div>
		<div><span>ИНН/КПП:</span> ${customerInn}</div>
		<div><span>Телефон:</span> ${customerPhone}</div>
		<div><span>E-mail:</span> ${customerEmail}</div>
		</c:when>
		<c:when test="${customer.customerType.type eq 'f' }">
		<div><span>Фамилия:</span> ${customerFioLast}</div>
		<div><span>Имя:</span> ${customerFioFirst}</div>
		<div><span>Отчество:</span> ${customerFioMiddle}</div>
		<div><span>Телефон:</span> ${customerPhone}</div>
		<div><span>Мобильный:</span> ${customerMobile}</div>
		<div><span>E-mail:</span> ${customerEmail}</div>
		</c:when>
	</c:choose>
	</div>
</div>
