profile update done
This commit is contained in:
@@ -9,13 +9,39 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="flex flex-row justify-center items-stretch py-24">
|
||||
<div class="bg-white shadow-lg p-8 max-w-sm text-center flex-1">
|
||||
<div class="flex flex-row justify-center items-stretch py-8">
|
||||
<div class="bg-white shadow-lg p-8 max-w-xl text-center flex-1">
|
||||
<h2 class="text-2xl font-bold text-center pb-6">Modifier votre profile</h2>
|
||||
{{ form_start(formProfile) }}
|
||||
{{ form_widget(formProfile) }}
|
||||
{% if formProfile.vars.data.imageFilename != null %}
|
||||
<img src="{{ asset('/upload/image/profile/' ~ formProfile.vars.value.imageFilename) }}" height="128" width="128">
|
||||
{{ form_row(formProfile.pseudo) }}
|
||||
<div class="flex flex-row justify-between">
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.nom) }}
|
||||
</div>
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.prenom) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-row justify-between">
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.email) }}
|
||||
</div>
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.telephone) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-row justify-between">
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.newPassword) }}
|
||||
</div>
|
||||
<div class="w-1/2 pr-2">
|
||||
{{ form_row(formProfile.confirmPassword) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_row(formProfile.image) }}
|
||||
{% if formProfile.vars.data.fileName != null %}
|
||||
{{ form_row(formProfile.deleteImage) }}
|
||||
<img class="mx-auto justify-items-center" alt="image de profile" src="{{ asset('/upload/image/profile/' ~ formProfile.vars.value.fileName) }}" height="128" width="128">
|
||||
{% endif %}
|
||||
<button class="btnRegister text-white font-bold py-2 px-4 border-b-4 rounded mx-auto" type="submit">Actualiser les informations</button>
|
||||
{{ form_end(formProfile) }}
|
||||
|
||||
Reference in New Issue
Block a user