1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
| {% extends "AdlHiringBundle::layout.html.twig" %}
{% block title %} {{ parent() }} - Edit Candidate {entity.id} {% endblock %}
{% block menu_left %}
{% block menu_candidates %} {{ parent() }} {% endblock %}
{% endblock %}
{% block body %}
{% block title1 %}<h1>Edit Candidate {{entity.id}} </h1>{% endblock %}
<form action="{{ path('candidate_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
{{ form_errors(edit_form) }}
<div class="buttons">
<button type="submit" name="delete">Update candidate</button>
<a href="{{path('candidate_delete',{'id':entity.id})}}">Delete candidate</a>
</div>
<table class="table_01">
<thead>
<tr>
<th class="normal">Field</th>
<th class="normal">Value</th>
<th class="actions" colspan="2">
<div class="buttons">
<a href="{{ path('candidate') }}">Back to the list</a>
</div>
</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.PREFIX,'Prefix :', { 'attr': {'class': 'inputspecial_label'} }) }}</td>
<td colspan="4">{{ form_widget(edit_form.PREFIX,{ 'attr': {'class': 'inputspecial_input'} }) }}{{ form_errors(edit_form.PREFIX) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.LASTNAME,'Lastname :', { 'attr': {'class': 'inputspecial_label'} }) }}</td>
<td colspan="4">{{ form_widget(edit_form.LASTNAME,{ 'attr': {'class': 'inputspecial_input'} }) }}{{ form_errors(edit_form.LASTNAME) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.FIRSTNAME,'Firstname :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.FIRSTNAME,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.FIRSTNAME) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.NATIONALITY,'Nationality :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.NATIONALITY,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.NATIONALITY) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.BIRTHDATE,'Birthdate :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.BIRTHDATE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.BIRTHDATE) }}</td>
</tr> <tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.STREET,'Street :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.STREET,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.STREET) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.CITY,'City :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.CITY,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.CITY) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.ZIPCODE,'Zip code :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.ZIPCODE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.ZIPCODE) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.PROVINCESTATE,'Province/state :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.PROVINCESTATE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.PROVINCESTATE) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.EMAIL,'Email :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.EMAIL,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.EMAIL) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.PHONE,'Phone :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.PHONE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.PHONE) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.CELLPHONE,'Cell phone :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.CELLPHONE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.CELLPHONE) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.fcontacttype,'First contact type :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.fcontacttype,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.fcontacttype) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.FIRSTCONTACTDATE,'First contact date :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.FIRSTCONTACTDATE,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.FIRSTCONTACTDATE) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.POSITIONCONSIDERED,'Position considered :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.POSITIONCONSIDERED,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.POSITIONCONSIDERED) }}</td>
</tr>
<tr>
<td class="inputspecial_firstcolumn">{{ form_label(edit_form.STATUS,'Status :', { 'attr': {'class': 'inputspecial_label'} }) }} </td>
<td colspan="4">{{ form_widget(edit_form.STATUS,{ 'attr': {'class': 'inputspecial_input'} }) }} {{ form_errors(edit_form.STATUS) }}</td>
</tr>
{{ form_rest(edit_form) }}
</tbody>
</table>
<div class="buttons">
<button type="submit" name="delete">Update candidate</button>
<a href="{{path('candidate_delete',{'id':entity.id})}}">Delete candidate</a>
</div>
</form>
{% set firstcontacttype =''%}
<div class="subform">
<form action="" method="post" {{ form_enctype(sub_form) }}>
{{entity.fcontacttype}}
{% if firstcontacttype =='Event' %}
<fieldset class="fieldset_00">
<legend class="legend_00">Choose an action</legend>
<div class="radio"><label class="label_radio">Process 1 + scoring </label><input class="" type="radio" name="action" value="process1"/></div>
<div class="radio"><label class="label_radio">Reject</label><input type="radio" name="action" value="reject"/></div>
</fieldset>
{% endif %}
{% if firstcontacttype =='Free application' %}
<fieldset class="fieldset_00">
<legend class="legend_00">Choose an action</legend>
<div class="radio"><label class="label_radio">Process 1</label><input class="" type="radio" name="action" value="process1"/></div>
<div class="radio"><label class="label_radio">Process 2</label><input type="radio" name="action" value="process2"/></div>
<div class="radio"><label class="label_radio">Reject</label><input type="radio" name="action" value="reject"/></div>
</fieldset>
{% endif %}
{% if firstcontacttype =='Headhunter' %}
<fieldset class="fieldset_00">
<legend class="legend_00">Choose an action</legend>
<div class="radio"><label class="label_radio">Process 2</label><input class="" type="radio" name="action" value="process1" checked="checked"/></div>
</fieldset>
{% endif %}
</form>
</div>
En fonction du statut du candidat, on aura ici un bouton permettant d'enregistrer un rendez-vous
{% endblock %} |
Partager