This commit is contained in:
parent
4280b6900a
commit
10bf9a8d72
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1>Hund <?= $dogid?'Bearbeiten':'Hinzufügen'; ?></h1>
|
<h1>Hund <?= $dogid?'Bearbeiten':'Hinzufügen'; ?></h1>
|
||||||
|
|
||||||
<form id="dogeditform" hx-post="/dogs/edit" hx-encoding='multipart/form-data' hx-target="#response">
|
<form id="dogeditform" hx-post="/dogs/edit" hx-encoding='multipart/form-data' hx-target="#response" class="row row-cols-2">
|
||||||
<input type="hidden" name="dog_id" value="<?= $dogid; ?>">
|
<input type="hidden" name="dog_id" value="<?= $dogid; ?>">
|
||||||
<div class="mb-3 mb-md-4">
|
<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>
|
<label for="name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Name</label>
|
||||||
|
@ -1,60 +1,26 @@
|
|||||||
<h1>Meine Hunde</h1>
|
<h1>Meine Hunde</h1>
|
||||||
|
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>Foto</th>
|
||||||
Foto
|
<th>Name</th>
|
||||||
</th>
|
<th>Geburstag</th>
|
||||||
<th>
|
<th>Aktiv</th>
|
||||||
Name
|
<th>Bearbeiten</th>
|
||||||
</th>
|
<th>Löschen</th>
|
||||||
<th>
|
|
||||||
Geburstag
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
Aktiv
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
Bearbeiten
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Löschen
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($doggos as $dog) : ?>
|
<?php foreach ($doggos as $dog) : ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td><img src="<?= $dog['photo'] ?>/50x50/forcesize"></td>
|
||||||
<img src="<?= $dog['photo'] ?>/50x50/forcesize">
|
<td><?= escape($dog['name']); ?></td>
|
||||||
</td>
|
<td><?= escape($dog['birthday']); ?></td>
|
||||||
|
<td><?= escape($dog['active'])?'Ja':'Nein'; ?></td>
|
||||||
<td>
|
<td><button hx-get="/dogs/edit/<?= $dog['id'] ?>" hx-push-url="/dogs/edit/<?= $dog['id'] ?>" hx-target="#main" class="btn btn-primary"><i class="fas fa-edit"></i></button></td>
|
||||||
<?= escape($dog['name']); ?>
|
<td><button hx-get="/dogs/delete/<?= $dog['id'] ?>" hx-target="#main" hx-confirm="Bist du sicher, dass du <?= escape($dog['name']); ?> löschen willst" class="btn btn-danger"><i class="fas fa-trash"></i></button></td>
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<?= escape($dog['birthday']); ?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<?= escape($dog['active'])?'Ja':'Nein'; ?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
|
||||||
<button hx-get="/dogs/edit/<?= $dog['id'] ?>" hx-push-url="/dogs/edit/<?= $dog['id'] ?>" hx-target="#main" >Bearbeiten</button>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<button hx-get="/dogs/delete/<?= $dog['id'] ?>" hx-target="#main" hx-confirm="Bist du sicher, dass du <?= escape($dog['name']); ?> löschen willst">Löschen</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1>Mein Profil bearbeiten</h1>
|
<h1>Mein Profil bearbeiten</h1>
|
||||||
|
|
||||||
<form id="dogeditform" hx-post="/profile/edit" hx-encoding='multipart/form-data' hx-target="#response">
|
<form id="dogeditform" hx-post="/profile/edit" hx-encoding='multipart/form-data' hx-target="#response" class="row row-cols-2">
|
||||||
<div>
|
<div>
|
||||||
<label for="firstname">Vorname</label>
|
<label for="firstname">Vorname</label>
|
||||||
<input type="text" value="<?= $user['firstname']; ?>" id="firstname" name="firstname" class="form-control" placeholder="Max">
|
<input type="text" value="<?= $user['firstname']; ?>" id="firstname" name="firstname" class="form-control" placeholder="Max">
|
||||||
|
Reference in New Issue
Block a user