feat: working on detail views.
This commit is contained in:
36
Resources/Views/users/detail.leaf
Normal file
36
Resources/Views/users/detail.leaf
Normal file
@@ -0,0 +1,36 @@
|
||||
<div id="user-detail" class="float" #if(!user): style="display:none;" #endif>
|
||||
#if(user):
|
||||
<button class="closebtn"
|
||||
hx-get="/users"
|
||||
hx-target="body"
|
||||
hx-push-url="true"
|
||||
hx-swap="outerHTML"
|
||||
hx-disable-elt="this"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label"><h3>Username:</h3></td>
|
||||
<td><h3>#(user.username)</h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><h3>Email:</h3></td>
|
||||
<td><h3>#(user.email)</h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><h3>Created:</h3></td>
|
||||
<td><h3>#date(user.createdAt, "MM-dd-yyyy")</h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"><h3>Updated:</h3></td>
|
||||
<td><h3>#date(user.updatedAt, "MM-dd-yyyy")</h3></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn-row user-buttons">
|
||||
<button class="danger">Delete</button>
|
||||
</div>
|
||||
#endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user