dsdsdss
This commit is contained in:
parent
ecc1c44b60
commit
14cdf9c0e3
@ -2,20 +2,22 @@
|
|||||||
{{ template "head" . }}
|
{{ template "head" . }}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
{{ template "sidebar" . }}
|
{{ template "sidebar" . }}
|
||||||
<h2>Historique des messages de l'utilisateur #{{ .UserID }}</h2>
|
<div class="column is-10">
|
||||||
|
<h2>Historique des messages de l'utilisateur #{{ .UserID }}</h2>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label>Filtrer par type :</label>
|
<label>Filtrer par type :</label>
|
||||||
<select id="filterType" name="type" hx-get="/api/user/{{ .UserID }}/conversations" hx-target="#conversationRows" hx-trigger="change" hx-include="#filterType">
|
<select id="filterType" name="type" hx-get="/api/user/{{ .UserID }}/conversations" hx-target="#conversationRows"
|
||||||
|
hx-trigger="change" hx-include="#filterType">
|
||||||
<option value="">Tous</option>
|
<option value="">Tous</option>
|
||||||
<option value="text">Texte</option>
|
<option value="text">Texte</option>
|
||||||
<option value="image">Image</option>
|
<option value="image">Image</option>
|
||||||
<option value="video">Vidéo</option>
|
<option value="video">Vidéo</option>
|
||||||
<option value="interactive">Interactif</option>
|
<option value="interactive">Interactif</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
@ -26,14 +28,13 @@
|
|||||||
<th>Statut</th>
|
<th>Statut</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="conversationRows"
|
<tbody id="conversationRows" hx-get="/api/user/{{ .UserID }}/conversations" hx-trigger="load" hx-target="this"
|
||||||
hx-get="/api/user/{{ .UserID }}/conversations"
|
|
||||||
hx-trigger="load"
|
|
||||||
hx-target="this"
|
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Conversation complète</h3>
|
<h3>Conversation complète</h3>
|
||||||
<div id="threadViewer" class="mt-3"></div>
|
<div id="threadViewer" class="mt-3"></div>
|
||||||
{{ end }}
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
@ -5,9 +5,10 @@
|
|||||||
<li><a href="/dashboard">🏠 Dashboard</a></li>
|
<li><a href="/dashboard">🏠 Dashboard</a></li>
|
||||||
|
|
||||||
{{ if eq .User.Role "ADMIN" }}
|
{{ if eq .User.Role "ADMIN" }}
|
||||||
<li><a href="/admin/users">👤 Utilisateurs</a></li>
|
<li><a href="/admin/user/new">👤 Utilisateurs</a></li>
|
||||||
<li><a href="/test/send">📤 Test envoi</a></li>
|
<li><a href="/test/send">📤 Test envoi</a></li>
|
||||||
<li><a href="/test/send2">📤 Test envoi template</a></li>
|
<li><a href="/test/send2">📤 Test envoi template</a></li>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<li><a href="/admin/user/{{ .User.ID }}/conversations">💬 Mes conversations</a></li>
|
<li><a href="/admin/user/{{ .User.ID }}/conversations">💬 Mes conversations</a></li>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user