Files
ENI-sortir/templates/profile/edit.html.twig
2024-11-20 10:53:29 +01:00

24 lines
1007 B
Twig

{% extends 'main/base.html.twig' %}
{% block head %}
<head>
<meta charset="UTF-8">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
{% 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">
<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">
{% 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) }}
</div>
</div>
{% endblock %}