71 lines
2.2 KiB
HTML
71 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="{{lang}}">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Administration | ĞMarché</title>
|
|
<link rel="stylesheet" href="/static/style1.css"/>
|
|
<link rel="shortcut icon" href="/static/icon.png"/>
|
|
</head>
|
|
<body>
|
|
<div class="center page">
|
|
<header>
|
|
<a href="/"><img id="banner" alt="Bannière ĞMarché" src="/static/banner.jpg"/></a>
|
|
</header>
|
|
|
|
<main>
|
|
<h1>Administration – ĞMarché</h1>
|
|
|
|
{{#if errors}}
|
|
<div id="errors">
|
|
<span>Oups, il y a un problème :</span>
|
|
<ul>
|
|
{{#each errors}}
|
|
<li>{{this.text}}</li>
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<form method="post">
|
|
<table id="ads">
|
|
<thead>
|
|
<tr><td></td><th>Annonce</th><th>Quantité</th><th>Prix</th><th>Vendeur</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each ads}}
|
|
<tr>
|
|
<td><input type="radio" name="ad" value="{{this.id}}" aria-label="Sélectionner l'annonce" required/></td>
|
|
<td>{{this.ad.title}}</td>
|
|
<td>{{this.ad.quantity}}</td>
|
|
<td>{{this.ad.price}}</td>
|
|
<td>{{#if this.ad.pubkey}}<details><summary>{{this.ad.author}}</summary><br/>{{this.ad.pubkey}}</details>{{else}}{{this.ad.author}}{{/if}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
<br/>
|
|
|
|
<input type="hidden" name="a" value="rm_ad" autocomplete="off"/>
|
|
<fieldset>
|
|
<legend>Supprimer l'annonce sélectionnée</legend>
|
|
<input type="submit" value="Supprimer"/>
|
|
</fieldset>
|
|
</form>
|
|
<br/>
|
|
</main>
|
|
|
|
<footer>
|
|
<hr style="clear: both;"/>
|
|
|
|
<p><a href="https://forum.duniter.org">Toutes les questions techniques ont leur place sur le forum.</a></p>
|
|
|
|
<p><a href="https://git.p2p.legal/tuxmain/gmarche-rs">Code source</a> sous licence <a href="https://www.gnu.org/licenses/licenses.html#AGPL">GNU AGPL v3</a>. 🦀 Écrit en <a href="https://www.rust-lang.org">Rust</a>. Images de Attilax.<br/>
|
|
CopyLeft 2020 Pascal Engélibert<br/>
|
|
Image de fond : Claudia Peters, FreeImages.com</p>
|
|
|
|
<p><a href="/">Accueil</a> – <a href="/admin/logout">Verrouiller</a></p>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|