This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/web/pages/profile/profile.html

30 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2023-10-27 12:32:04 +02:00
<!-- FILEPATH: /home/chris/git/dogstats/web/pages/dogs/dog.html -->
<div class="container">
<h1>Profil</h1>
<div class="row">
<div class="col-3">
2023-10-30 19:27:44 +01:00
<img src="<?= $user['photo']?:'https://pictshare.net/pj7vzx.jpg' ?>/300x300/forcesize" class="card-img-top" alt="<?= escape($user['name']); ?>'s profile Picture">
2023-10-27 12:32:04 +02:00
</div>
<div class="col-9">
2023-10-30 19:27:44 +01:00
<h3 class="card-title"><?= escape($user['firstname'].' '.$user['lastname']); ?></h3>
<div>
<?php if($user['birthday']): ?><p>Geburstag: <?= $user['birthday'].' ('.date_diff(date_create($user['birthday']), date_create('now'))->y.')' ?></p> <?php endif; ?>
<?php if($user['email']): ?><p>Email: <?= escape($user['email']); ?></p> <?php endif; ?>
<?php if($user['club']): ?><p>Verein: <?= escape($user['club']); ?></p> <?php endif; ?>
2023-10-27 12:32:04 +02:00
</div>
<div class="d-flex justify-content-end">
2023-10-30 19:27:44 +01:00
<button type="button" class="btn btn-secondary" hx-get="/profile/edit" hx-target="#main">
2023-10-27 12:32:04 +02:00
<i class="fas fa-edit"></i>
</button>
</div>
</div>
</div>
<div class="col-8" id="sitemain">
</div>
</div>