{% set isContactType = candidate.contactType %}

{{ candidate.title | trim }} {{ candidate.firstName | trim }} {{ candidate.lastName | trim }} {% if candidate.linkedIn %} {% endif %}

{% if ( is_granted('ROLE_ADMIN') ) %} {% if delete_form_non_gdpr is defined %}
{{ form_start(delete_form_non_gdpr) }} {{ form_end(delete_form_non_gdpr) }}
{% endif %} {% if delete_form is defined %}
{{ form_start(delete_form) }} {{ form_end(delete_form) }}
{% endif %} {% endif %}

Private Email: {% if isContactType == 1 and (is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPERVISOR') or is_granted('ROLE_USER') )%} {{ candidate.homeEmail | trim |default('(Double click to add)') }} {% elseif isContactType == 0 %} {{ candidate.homeEmail | trim |default('(Double click to add)') }} {% else %} (only admin) {% endif %} {% if candidate.homeEmail %}{% endif %}
Work Email: {% if candidate.email is empty %} {% set work_email = null %} {% endif %} {% if isContactType == 1 and (is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPERVISOR') or is_granted('ROLE_USER') ) %} {{ candidate.email| trim |default('(Double click to add)') }} {% elseif isContactType == 0 %} {{ candidate.email | trim |default('(Double click to add)') }} {% else %} (only admin) {% endif %} {% if candidate.email %}{% endif %}
Added by: {{ candidate.source | trim }} Contact type: {{ candidate.contactType ? 'is a contact' : 'not a contact' }}

Direct Phone: {% if isContactType == 1 and (is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPERVISOR') or is_granted('ROLE_USER') ) %}{{ candidate.directPhone | trim |default('(Double click to add)') }} {% elseif isContactType == 0 %} {{ candidate.directPhone | trim |default('(Double click to add)') }} {% else %} (only admin) {% endif %}
Work Phone:{% if candidate.company %}{{ candidate.company.phone | trim |default('is not defined') }}{% endif %}
Mobile: {% if isContactType == 1 and (is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPERVISOR') or is_granted('ROLE_USER') ) %} {{ candidate.mobile| trim |default('(Double click to add)') }} {% elseif isContactType == 0 %} {{ candidate.mobile | trim |default('(Double click to add)') }} {% else %} (only admin) {% endif %}

Job Information

{# #} {# #}
Current Job
Company: {{ candidate.company ? candidate.company.company : '' }}
Position: {{ candidate.position }}
Report To: {% if candidate.reportTo %}{{ candidate.reportTo.__toString }} Clear {% else %} no report {% endif %}Report To {{ candidate.reportTo }}Report To: {{ candidate.reportTo }}
Years of Experience: {{ candidate.YearsExperience | trim }}
Mapping Notes: {{ candidate.mappingNotes }}
Salary: {{ candidate.salary | trim }}
Bonus: {{ candidate.bonus | trim }}
Career Details: {{ candidate.careerDetails }}
Candidate Notes: {{ candidate.notes }}
LinkedIn: {{ candidate.linkedIn }}
Custom Field 1: {{ candidate.custom1 }}
Custom Field 2: {{ candidate.custom2 }}
Custom Field 3: {{ candidate.custom3 }}
Custom Field 4: {{ candidate.custom4 }}
{% include 'parts/candidate-assignments.html.twig' %}
{% if candidate.reportTo %} {% set hasReportTo = candidate.reportTo.id %} {% else %} {% set hasReportTo = null %} {% endif %} {% include 'include/inline_editable.html.twig' with { 'editId': candidate.id, 'editURL': path('candidates_update', { 'id': candidate.id }), 'container': '#CandidateCtrl' } %}