89 lines
6.0 KiB
Smarty
89 lines
6.0 KiB
Smarty
<div class="container py-4">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-9">
|
|
|
|
{if isset($smarty.get.save) && $smarty.get.save == 'ok'}
|
|
<div class="alert alert-success shadow-sm border-0 mb-4 d-flex align-items-center animate__animated animate__fadeIn">
|
|
<i class="bi bi-check-circle-fill fs-4 me-3"></i>
|
|
<div>
|
|
<h4 class="h6 mb-1 fw-bold">{#LOGIN_CHANGE_SAVE#}</h4>
|
|
<p class="mb-0 small text-muted">{#LOGIN_CHANGE_UPD#}</p>
|
|
</div>
|
|
<button type="button" class="btn-close ms-auto" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="card shadow-sm border-0 overflow-hidden">
|
|
<div class="card-header bg-primary text-white py-3 d-flex justify-content-between align-items-center">
|
|
<h2 class="h5 mb-0"><i class="bi bi-person-badge me-2"></i> {#LOGIN_USER_PROFILE#}</h2>
|
|
<div class="d-flex gap-2">
|
|
<a href="{$ABS_PATH}index.php?module=login&action=profile" class="btn btn-light btn-sm fw-bold shadow-sm">
|
|
<i class="bi bi-pencil-square me-1"></i> {#LOGIN_CHANGE_DETAILS#}
|
|
</a>
|
|
<a href="{$ABS_PATH}index.php?id=1" class="btn btn-outline-light btn-sm fw-bold shadow-sm">
|
|
<i class="bi bi-x-lg me-1"></i> {#LOGIN_CHANGE_CLOSE#}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body p-0">
|
|
<div class="row g-0">
|
|
<div class="col-md-4 bg-light border-end p-4 text-center">
|
|
<div class="mb-3">
|
|
{if $user->avatar|default:''}
|
|
<img src="{$user->avatar}" class="img-thumbnail rounded-circle shadow-sm" style="width: 140px; height: 140px; object-fit: cover;" />
|
|
{else}
|
|
<div class="bg-white rounded-circle d-inline-flex align-items-center justify-content-center shadow-sm border" style="width: 140px; height: 140px;">
|
|
<i class="bi bi-person text-muted" style="font-size: 4rem;"></i>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
<h3 class="h5 fw-bold mb-1">{$user->firstname|default:''|escape} {$user->lastname|default:''|escape}</h3>
|
|
<p class="text-muted small">{$user->email|default:''|escape}</p>
|
|
<hr>
|
|
<p class="small text-muted mb-0">{#LOGIN_DETAILS_INFO#}</p>
|
|
</div>
|
|
|
|
<div class="col-md-8 p-4">
|
|
<div class="table-responsive">
|
|
<table class="table table-borderless align-middle mb-0">
|
|
<tbody>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2" width="45%"><i class="bi bi-calendar3 me-2 text-primary"></i> {#LOGIN_YOUR_BIRTHDAY#}</th>
|
|
<td class="py-2">{$user->birthday|default:'—'|escape}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-globe2 me-2 text-primary"></i> {#LOGIN_YOUR_COUNTRY#}</th>
|
|
<td class="py-2">{$user->country|default:'—'|escape}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-building me-2 text-primary"></i> {#LOGIN_YOUR_TOWN#}</th>
|
|
<td class="py-2">{$user->city|default:'—'|escape}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-geo-alt me-2 text-primary"></i> {#LOGIN_YOUR_ZIP#}</th>
|
|
<td class="py-2">{$user->zipcode|default:'—'|escape}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-map me-2 text-primary"></i> {#LOGIN_YOUR_STREET#}</th>
|
|
<td class="py-2">{$user->street|default:''|escape}{if $user->street_nr|default:''}, {$user->street_nr|escape}{/if}</td>
|
|
</tr>
|
|
<tr class="border-top"><td colspan="2" class="p-0" style="height:10px;"></td></tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-telephone me-2 text-primary"></i> {#LOGIN_YOUR_PHONE#}</th>
|
|
<td class="py-2">{$user->phone|default:'—'|escape}</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-muted small fw-normal py-2"><i class="bi bi-briefcase me-2 text-primary"></i> {#LOGIN_YOUR_COMPANY#}</th>
|
|
<td class="py-2">{$user->company|default:'—'|escape}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |