-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
509 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{{ form_start(form) }} | ||
{{ form_widget(form) }} | ||
<button class="btn">{{ button_label|default('Save') }}</button> | ||
{{ form_end(form) }} | ||
{{ form_widget(form) }} | ||
<button class="btn">{{ button_label|default('Save') }}</button> | ||
{{ form_end(form) }}. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,195 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}Developer{% endblock %} | ||
|
||
{% block body %} | ||
<h1>Developer</h1> | ||
|
||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<th>Id</th> | ||
<td>{{ developer.id }}</td> | ||
</tr> | ||
<tr> | ||
<th>Firstname</th> | ||
<td>{{ developer.firstname }}</td> | ||
</tr> | ||
<tr> | ||
<th>Lastname</th> | ||
<td>{{ developer.lastname }}</td> | ||
</tr> | ||
<tr> | ||
<th>Birthday</th> | ||
<td>{{ developer.birthday ? developer.birthday|date('Y-m-d') : '' }}</td> | ||
</tr> | ||
<tr> | ||
<th>Gender</th> | ||
<td>{{ developer.gender }}</td> | ||
</tr> | ||
<tr> | ||
<th>Experiences</th> | ||
<td>{{ developer.experiences }}</td> | ||
</tr> | ||
<tr> | ||
<th>Salary</th> | ||
<td>{{ developer.salary }}</td> | ||
</tr> | ||
<tr> | ||
<th>Biography</th> | ||
<td>{{ developer.biography }}</td> | ||
</tr> | ||
<tr> | ||
<th>Location</th> | ||
<td>{{ developer.location }}</td> | ||
</tr> | ||
<tr> | ||
<th>Avatar</th> | ||
<td>{{ developer.avatar }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<a href="{{ path('app_home_index') }}">back to list</a> | ||
|
||
<a href="{{ path('app_home_edit', {'id': developer.id}) }}">edit</a> | ||
|
||
{{ include('home/_delete_form.html.twig') }} | ||
{% extends 'layouts/app.html.twig' %} | ||
|
||
|
||
{% block title %}Profil - Developpeur | ||
|
||
{% endblock %} | ||
|
||
{% block main %} | ||
<main id="main" class="main"> | ||
|
||
<div class="pagetitle"> | ||
<h1>Profil - Développeur</h1> | ||
<nav class="d-flex justify-content-between align-items-center"> | ||
<ol class="breadcrumb m-0"> | ||
<li class="breadcrumb-item"> | ||
<a href="index.html">Home</a> | ||
</li> | ||
<li class="breadcrumb-item">Users</li> | ||
<li class="breadcrumb-item active">Profile</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
|
||
|
||
<section class="section profile"> | ||
<div class="row"> | ||
<div class="col-xl-4"> | ||
|
||
<div class="card"> | ||
<div class="card-body profile-card pt-4 d-flex flex-column align-items-center"> | ||
{% if developer.avatar %} | ||
<img src="{{ asset('uploads/dev_avatars/' ~ developer.avatar) }}" alt="Avatar" class="rounded-circle"/> | ||
{% endif %} | ||
|
||
{# <img src="assets/img/profile-img.jpg" alt="Logo" class="rounded-circle"> #} | ||
<h2>{{developer.firstname}} | ||
|
||
</h2> | ||
<h3>Web Designer</h3> | ||
<div class="social-links mt-2"> | ||
<a href="#" class="twitter"> | ||
<i class="bi bi-twitter"></i> | ||
</a> | ||
<a href="#" class="facebook"> | ||
<i class="bi bi-facebook"></i> | ||
</a> | ||
<a href="#" class="instagram"> | ||
<i class="bi bi-instagram"></i> | ||
</a> | ||
<a href="#" class="linkedin"> | ||
<i class="bi bi-linkedin"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="col-xl-8"> | ||
|
||
<div class="card"> | ||
<div | ||
class="card-body pt-3"> | ||
<!-- Bordered Tabs --> | ||
<ul class="nav nav-tabs nav-tabs-bordered"> | ||
|
||
<li class="nav-item"> | ||
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#profile-overview">Vue d'ensemble</button> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#profile-edit">Modification du profil</button> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#profile-change-password">Modification Mot de passe</button> | ||
</li> | ||
|
||
</ul> | ||
<div class="tab-content pt-2"> | ||
|
||
<div class="tab-pane fade show active profile-overview" id="profile-overview"> | ||
|
||
<h5 class="card-title">Biographie</h5> | ||
<p class="small fst-italic"> | ||
{{ developer.biography }}</p> | ||
|
||
<h5 class="card-title">Détails du Développeur</h5> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Genre</div> | ||
<div class="col-lg-9 col-md-8"> | ||
{{ developer.gender }}</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Nom</div> | ||
<div class="col-lg-9 col-md-8"> | ||
{{ developer.lastname }}</div> | ||
</div> | ||
|
||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Prénoms</div> | ||
<div class="col-lg-9 col-md-8">{{developer.firstname}}</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Date de naissance</div> | ||
<div class="col-lg-9 col-md-8">{{ developer.birthday }} | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Addresse</div> | ||
<div class="col-lg-9 col-md-8">{{ developer.location }} | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Salaire</div> | ||
<div class="col-lg-9 col-md-8">{{ developer.salary }}</div> | ||
|
||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-3 col-md-4 label">Nombre Année d'expériences</div> | ||
<div class="col-lg-9 col-md-8">{{ developer.experiences }}</div> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
<div class="tab-pane fade profile-edit pt-3" id="profile-edit"> | ||
|
||
{{ include('developer/manage/_form.html.twig', {'button_label': 'Sauvegarder les modifications'}) }} | ||
|
||
|
||
</div> | ||
|
||
|
||
<div | ||
class="tab-pane fade pt-3" id="profile-change-password"> | ||
<!-- Change Password Form --> | ||
<form> | ||
|
||
<div class="row mb-3"> | ||
<label for="currentPassword" class="col-md-4 col-lg-3 col-form-label">Mot de passe actuel</label> | ||
<div class="col-md-8 col-lg-9"> | ||
<input name="password" type="password" class="form-control" id="currentPassword"> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<label for="newPassword" class="col-md-4 col-lg-3 col-form-label">Nouveau mot de passe</label> | ||
<div class="col-md-8 col-lg-9"> | ||
<input name="newpassword" type="password" class="form-control" id="newPassword"> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<label for="renewPassword" class="col-md-4 col-lg-3 col-form-label">Confirmer mot de passe</label> | ||
<div class="col-md-8 col-lg-9"> | ||
<input name="renewpassword" type="password" class="form-control" id="renewPassword"> | ||
</div> | ||
</div> | ||
|
||
<div class="text-center"> | ||
<button type="submit" class="btn btn-primary">Modifier Password</button> | ||
</div> | ||
</form> | ||
<!-- End Change Password Form --> | ||
|
||
</div> | ||
|
||
</div> | ||
<!-- End Bordered Tabs --> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
{# <a href="{{ path('app_home_index') }}">back to list</a> | ||
<a href="{{ path('app_home_edit', {'id': developer.id}) }}">edit</a> | ||
{{ include('home/_delete_form.html.twig') }} #} | ||
</main> | ||
{% endblock %} |
Oops, something went wrong.