implemented profile
This commit is contained in:
@ -1,30 +1,29 @@
|
||||
<div>
|
||||
<h1>Hund <?= $dogid?'Bearbeiten':'Hinzufügen'; ?></h1>
|
||||
<h1>Mein Profil bearbeiten</h1>
|
||||
|
||||
<form id="dogeditform" hx-post="/dogs/edit" hx-encoding='multipart/form-data' hx-target="#response">
|
||||
<input type="hidden" name="dog_id" value="<?= $dogid; ?>">
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Name</label>
|
||||
<input type="text" value="<?= $user['name']; ?>" id="name" name="name" class="form-control" placeholder="Max" required>
|
||||
<form id="dogeditform" hx-post="/profile/edit" hx-encoding='multipart/form-data' hx-target="#response">
|
||||
<div>
|
||||
<label for="firstname">Vorname</label>
|
||||
<input type="text" value="<?= $user['firstname']; ?>" id="firstname" name="firstname" class="form-control" placeholder="Max">
|
||||
</div>
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="surname" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Nachname</label>
|
||||
<input type="text" value="<?= $user['surname']; ?>" id="surname" name="surname" class="form-control" placeholder="Mustermann">
|
||||
<div>
|
||||
<label for="lastname">Nachname</label>
|
||||
<input type="text" value="<?= $user['lastname']; ?>" id="lastname" name="lastname" class="form-control" placeholder="Mustermann">
|
||||
</div>
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="user_birthday" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Geburtstag</label>
|
||||
<input type="date" value="<?= $user['birthday']; ?>" id="user_birthday" name="user_birthday" class="form-control" placeholder="" required>
|
||||
<div>
|
||||
<label for="birthday">Geburtstag</label>
|
||||
<input type="date" value="<?= $user['birthday']; ?>" id="birthday" name="birthday" class="form-control" placeholder="">
|
||||
</div>
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">E-Mail</label>
|
||||
<input type="text" value="<?= $user['email']; ?>" id="email" name="email" class="form-control" placeholder="max@max.com">
|
||||
<div>
|
||||
<label for="email">E-Mail</label>
|
||||
<input type="text" value="<?= $user['email']; ?>" id="email" name="email" class="form-control" placeholder="max@max.com" disabled>
|
||||
</div>
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="club" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Verein</label>
|
||||
<input type="number" value="<?= $user['club']; ?>" id="club" name="club" class="form-control" placeholder="Vereinsname">
|
||||
<div>
|
||||
<label for="club">Verein</label>
|
||||
<input type="text" value="<?= $user['club']; ?>" id="club" name="club" class="form-control" placeholder="Vereinsname">
|
||||
</div>
|
||||
<div class="mb-3 mb-md-4">
|
||||
<label for="photo" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Photo</label>
|
||||
<div>
|
||||
<label for="photo">Photo</label>
|
||||
<input type="file" accept="image/png, image/jpeg, image/gif" id="photo" name="photo">
|
||||
</div>
|
||||
<button type="submit" name="submit" value="true" class="btn btn-primary">Speichern</button>
|
||||
|
Reference in New Issue
Block a user