<?php use App\Core\Csrf; ?>
<link rel="stylesheet" href="/public/assets/css/cda-member-consents.css">

<section class="member-card">
<h2>Modifier le membre</h2>

<form method="post" action="/public/membres/modifier" class="member-form">
<?= Csrf::field() ?>
<input type="hidden" name="id" value="<?= (int)$member['id'] ?>">

<label><span>Prénom</span><input name="prenom" value="<?= htmlspecialchars((string)$member['prenom']) ?>"></label>
<label><span>Nom</span><input name="nom" value="<?= htmlspecialchars((string)$member['nom']) ?>"></label>
<label><span>Date de naissance</span><input type="date" name="date_naissance" value="<?= htmlspecialchars((string)$member['date_naissance']) ?>"></label>
<label><span>E-mail</span><input type="email" name="email" value="<?= htmlspecialchars((string)$member['email']) ?>"></label>
<label><span>Téléphone</span><input name="telephone" value="<?= htmlspecialchars((string)$member['telephone']) ?>"></label>

<div class="member-form-actions">
<a class="button button-secondary" href="/public/membres/voir?id=<?= (int)$member['id'] ?>">Annuler</a>
<button class="button button-primary">Enregistrer</button>
</div>
</form>
</section>
