<div class="main-card mb-3 card">
<div class="card-body"><h5 class="card-title">Edytuj klient</h5>
<form class="" action="{{ path('updateDetails') }}" method="post">
<input type="hidden" name="id" value="{{ customer.id }}"/>
<div class="position-relative form-group">
<label for="phone" class="">Telefon</label>
<input name="phone" id="phone" value="{{ customer.phone }}"
type="text" class="form-control"></div>
<div class="position-relative form-group"><label for="exampleEmail" class="">Email</label>
<input name="email" id="exampleEmail" value="{{ customer.email }}"
type="email" class="form-control"></div>
<div class="position-relative form-group"><label for="link" class="">Link do ogłoszenia</label>
<input name="link" id="link" value="{{ customer.link }}"
type="url" class="form-control"></div>
<div class="position-relative form-group"><label for="firstname" class="">Imie</label>
<input name="firstname" id="firstname" value="{{ customer.firstname }}"
type="text" class="form-control"></div>
<div class="position-relative form-group"><label for="lastname" class="">Nazwisko</label>
<input name="lastname" id="lastname" value="{{ customer.lastname }}"
type="text" class="form-control"></div>
<div class="position-relative form-group">
<label for="lastname" class="">Data podpisania umowy</label>
<input name="contractdate" id="contractdate" value="{{ customer.contractDateFormatted }}"
type="date" class="form-control"></div>
<div class="position-relative form-group">
<label for="reservedTo" class="">Rezerwacja do</label>
{% if isAdminOrManager %}
<input name="reservedto" id="reservedto" value="{{ customer.reservedToFormatted }}"
type="date" class="form-control">
{% else %}
<input name="reservedto" id="reservedto" value="{{ customer.reservedToFormatted }}"
type="date" class="form-control" disabled="disabled">
{% endif %}
</div>
<div class="position-relative form-group"><label for="exampleSelectMulti"
class="">Typ klienta</label>
<select id="customertype" name="customertype" class="form-control" >
<option {% if customer.customertype is same as ('Sprzedający') %} selected {% endif %}>Sprzedający</option>
<option {% if customer.customertype is same as ('Kupujący') %} selected {% endif %}>Kupujący</option>
<option {% if customer.customertype is same as ('Wynajmujący') %} selected {% endif %}>Wynajmujący</option>
<option {% if customer.customertype is same as ('Najemca') %} selected {% endif %}>Najemca</option>
</select>
</div>
<div class="position-relative form-group"><label for="exampleSelectMulti"
class="">Rodzaj działania</label>
<select id="status" name="status" class="form-control" >
<option {% if customer.status is same as ('nowy') %} selected {% endif %}>nowy</option>
<option {% if customer.status is same as ('do obdzwonki') %} selected {% endif %}>do obdzwonki</option>
<option {% if customer.status is same as ('obdzwoniono') %} selected {% endif %}>obdzwoniono</option>
<option {% if customer.status is same as ('podpisana umowa') %} selected {% endif %}>podpisana umowa</option>
<option {% if customer.status is same as ('nie dzwonić') %} selected {% endif %}>nie dzwonić</option>
{# <option {% if customer.status is same as ('debil') %} selected {% endif %}>debil</option> #}
</select>
</div>
<button class="mt-1 btn btn-primary">Zmień</button>
</form>
</div>
</div>