templates/admin/candidate/candidate_edit.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/base.html.twig' %}
  2. {% block title %}Кандидат{% endblock %}
  3. {% block content %}
  4.     <h1 class="h3 mb-2 text-gray-800">{{ item.id ? 'Редактирование' : 'Создание' }} кандидата{{ item.id ? " " ~ item.person.name }}</h1>
  5.     <div class="card shadow mb-4 mt-4">
  6.         <div class="card-header py-3">
  7.             <h6 class="m-0 font-weight-bold text-primary">Кандидат</h6>
  8.         </div>
  9.         <div class="card-body">
  10.             {{ form_start(form) }}
  11.                 {{ form_row(form._token) }}
  12.                 <div class="form-group mt-3">
  13.                     <label>Фото:</label>
  14.                     {% include 'components/image_input.html.twig' with { options: {
  15.                         formWidgetField: form.newImage,
  16.                         imagePath: item.image ? path('image_view', {id: item.image.id}) : null,
  17.                         required: false,
  18.                         canRemove: true,
  19.                         form: form,
  20.                         mediaType: 'image'
  21.                     } } %}
  22.                 </div>
  23.                 <div class="form-group"{{ not getUser().settings.canEditCandidateAccessByReceipt ? ' style="display: none;"' : '' }}>
  24.                     {{ form_label(form.comment) }}:
  25.                     {{ form_widget(form.comment, { 'attr': { 'class': 'form-control', 'rows': 2, placeholder: "Пил травы тогда-то..." } }) }}
  26.                 </div>
  27.                 <div class="form-group"{{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}>
  28.                     {{ form_label(form.recommendations) }} (не обязательно):
  29.                     {{ form_widget(form.recommendations, { 'attr': { 'class': 'form-control', 'rows': 2, placeholder: "Рекомендую сделать то-то..." } }) }}
  30.                 </div>
  31.                 <div class="form-group"{{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}>
  32.                     {{ form_label(form.declineComment) }} (не обязательно):
  33.                     {{ form_widget(form.declineComment, { 'attr': { 'class': 'form-control', 'rows': 2 } }) }}
  34.                 </div>
  35.                 <div class="form-group"
  36. {#                        {{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}#}
  37.                 >
  38.                     {{ form_label(form.person) }}:
  39.                     {{ form_widget(form.person, { 'attr': { 'class': 'form-control' } }) }}
  40.                 </div>
  41.                 <div class="form-group"
  42. {#                        {{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}#}
  43.                 >
  44.                     {{ form_label(form.calendarEvent) }}:
  45.                     {{ form_widget(form.calendarEvent, { 'attr': { 'class': 'form-control' } }) }}
  46.                 </div>
  47.                 <div class="form-group"
  48.                         {{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}
  49.                 >
  50.                     {{ form_label(form.status) }}:
  51.                     {{ form_widget(form.status, { 'attr': { 'class': 'form-control' } }) }}
  52.                 </div>
  53.                 {# Поле Куратор #}
  54.                 <div class="form-group"
  55. {#                        {{ not getUser().settings.canEditAllCandidateParams ? ' style="display: none;"' : '' }}#}
  56.                 >
  57.                     {{ form_label(form.curator) }}:
  58.                     {{ form_widget(form.curator, { 'attr': { 'class': 'form-control' } }) }}
  59.                 </div>
  60.                 <div class="form-group"{{ not getUser().settings.canEditCandidateAccessByReceipt ? ' style="display: none;"' : '' }}>
  61.                     <label>
  62.                         {{ form_widget(form.accessByReceipt, { 'attr': { 'class': '' } }) }}
  63.                         {{ form_label(form.accessByReceipt) }}
  64.                     </label>
  65.                 </div>
  66.                 <div class="form-group"{{ not getUser().settings.canEditCandidateAccessByReceipt ? ' style="display: none;"' : '' }}>
  67.                     <label>
  68.                         {{ form_widget(form.paymentDeferment, { 'attr': { 'class': '' } }) }}
  69.                         {{ form_label(form.paymentDeferment) }}
  70.                     </label>
  71.                 </div>
  72.                 <button class="btn btn-primary" type="submit">Сохранить</button>
  73.             {{ form_end(form, { 'render_rest': false }) }}
  74.         </div>
  75.     </div>
  76. {% endblock %}
  77. {% block addJs %}
  78.     <script>
  79.     </script>
  80. {% endblock %}