Merge branch 'Olivier'

This commit is contained in:
Olivier PARPAILLON
2024-11-20 10:53:39 +01:00
10 changed files with 259 additions and 30 deletions

View File

@@ -0,0 +1,24 @@
{% 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 %}

View File

@@ -13,13 +13,16 @@
<div class="px-6 bg-white shadow-lg rounded-lg py-2">
<div class="flex flex-wrap justify-center">
<div class="w-full flex justify-center">
{# <div class="relative">#}
{# <img src="{{ profile.imageFilename ? asset('upload/image/profile/' ~ profile.imageFilename) : "" }}" class="shadow-xl rounded-full align-middle border-none absolute -m-16 -ml-20 lg:-ml-16 max-w-[150px]"/>#}
{# </div>#}
<div class="relative">
<img src="{{ profile.fileName ? asset('upload/image/profile/' ~ profile.fileName) : "" }}" class="shadow-xl rounded-full align-middle border-none absolute -m-16 -ml-20 lg:-ml-16 max-w-[150px]"/>
</div>
</div>
</div>
<div class="text-center mt-2">
<h3 class="text-2xl text-slate-700 font-bold leading-normal mb-1">{{ profile.prenom }} {{ profile.nom }}</h3>
<div class="text-sm mt-0 mb-2 text-slate-400 font-bold uppercase">
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.pseudo }}
</div>
<div class="text-xs mt-0 mb-2 text-slate-400 font-bold uppercase">
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.telephone }} - {{ profile.email }}
</div>