templates/crm/includes/customerDetails.html.twig line 1

Open in your IDE?
  1. <div class="main-card mb-3 card">
  2.     <div class="card-body"><h5 class="card-title">Edytuj klient</h5>
  3.         <form class="" action="{{ path('updateDetails') }}" method="post">
  4.             <input type="hidden" name="id" value="{{ customer.id }}"/>
  5.             <div class="position-relative form-group">
  6.                 <label for="phone"  class="">Telefon</label>
  7.                 <input name="phone" id="phone" value="{{ customer.phone }}"
  8.                        type="text" class="form-control"></div>
  9.             <div class="position-relative form-group"><label for="exampleEmail" class="">Email</label>
  10.                 <input name="email" id="exampleEmail" value="{{ customer.email }}"
  11.                        type="email" class="form-control"></div>
  12.             <div class="position-relative form-group"><label for="link" class="">Link do ogłoszenia</label>
  13.                 <input name="link" id="link" value="{{ customer.link }}"
  14.                        type="url" class="form-control"></div>
  15.             <div class="position-relative form-group"><label for="firstname" class="">Imie</label>
  16.                 <input name="firstname" id="firstname" value="{{ customer.firstname }}"
  17.                        type="text" class="form-control"></div>
  18.             <div class="position-relative form-group"><label for="lastname" class="">Nazwisko</label>
  19.                 <input name="lastname" id="lastname" value="{{ customer.lastname }}"
  20.                        type="text" class="form-control"></div>
  21.             <div class="position-relative form-group">
  22.                 <label for="lastname" class="">Data podpisania umowy</label>
  23.                 <input name="contractdate" id="contractdate" value="{{ customer.contractDateFormatted }}"
  24.                        type="date" class="form-control"></div>
  25.             <div class="position-relative form-group">
  26.                 <label for="reservedTo" class="">Rezerwacja do</label>
  27.                 {% if isAdminOrManager %}
  28.                     <input name="reservedto" id="reservedto" value="{{ customer.reservedToFormatted }}"
  29.                            type="date" class="form-control">
  30.                 {% else %}
  31.                     <input name="reservedto" id="reservedto" value="{{ customer.reservedToFormatted }}"
  32.                            type="date" class="form-control" disabled="disabled">
  33.                 {% endif %}
  34.             </div>
  35.             <div class="position-relative form-group"><label for="exampleSelectMulti"
  36.                                                              class="">Typ klienta</label>
  37.                 <select id="customertype" name="customertype" class="form-control" >
  38.                     <option {% if customer.customertype  is same as ('Sprzedający') %} selected {% endif %}>Sprzedający</option>
  39.                     <option {% if customer.customertype  is same as ('Kupujący') %} selected {% endif %}>Kupujący</option>
  40.                     <option {% if customer.customertype  is same as ('Wynajmujący') %} selected {% endif %}>Wynajmujący</option>
  41.                     <option {% if customer.customertype  is same as ('Najemca') %} selected {% endif %}>Najemca</option>
  42.                 </select>
  43.             </div>
  44.             <div class="position-relative form-group"><label for="exampleSelectMulti"
  45.                                                              class="">Rodzaj działania</label>
  46.                 <select id="status" name="status" class="form-control" >
  47.                     <option {% if customer.status  is same as ('nowy') %} selected {% endif %}>nowy</option>
  48.                     <option {% if customer.status  is same as ('do obdzwonki') %} selected {% endif %}>do obdzwonki</option>
  49.                     <option {% if customer.status  is same as ('obdzwoniono') %} selected {% endif %}>obdzwoniono</option>
  50.                     <option {% if customer.status  is same as ('podpisana umowa') %} selected {% endif %}>podpisana umowa</option>
  51.                     <option {% if customer.status  is same as ('nie dzwonić') %} selected {% endif %}>nie dzwonić</option>
  52. {#                     <option {% if customer.status  is same as ('debil') %} selected {% endif %}>debil</option> #}
  53.                 </select>
  54.             </div>
  55.             <button class="mt-1 btn btn-primary">Zmień</button>
  56.         </form>
  57.     </div>
  58. </div>