67 lines
2.4 KiB
HTML
67 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="{{lang}}">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>ĞMarché</title>
|
|
<link rel="stylesheet" href="/static/style1.css"/>
|
|
<link rel="shortcut icon" href="/static/icon.png"/>
|
|
</head>
|
|
<body>
|
|
<div class="center">
|
|
<img id="banner" alt="ĞMarché" src="/static/banner.jpg"/>
|
|
|
|
<h1>ĞMarché</h1>
|
|
|
|
<p>Ceci est une démo du nouveau site ĞMarché en développement. C'est très moche et il n'y a pas tellement de fonctionnalités mais ça avance. ;)</p>
|
|
|
|
<form method="post">
|
|
<table border="1">
|
|
<thead>
|
|
<tr><td></td><td>Annonce</td><td>Vendeur</td></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each ads}}
|
|
<tr>
|
|
<td><input type="radio" name="ad" value="{{this.id}}"/></td>
|
|
<td>{{this.ad.title}}</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>
|
|
|
|
<input type="hidden" name="a" value="rm_ad" autocomplete="off"/>
|
|
<fieldset>
|
|
<legend>Supprimer l'annonce sélectionnée</legend>
|
|
<label for="f_rm_psw">Mot de passe :</label>
|
|
<input type="password" id="f_rm_psw" name="psw"/><br/>
|
|
<input type="submit" value="Supprimer"/>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<img id="stand" alt="Marché" src="/static/standgm.png"/>
|
|
|
|
<form method="post">
|
|
<input type="hidden" name="a" value="new_ad" autocomplete="off"/>
|
|
<fieldset>
|
|
<legend>Nouvelle annonce</legend>
|
|
<label for="f_new_title">Titre :</label>
|
|
<input type="text" id="f_new_title" name="title"/><br />
|
|
<label for="f_new_author">Votre nom :</label>
|
|
<input type="text" id="f_new_author" name="author"/><br />
|
|
<label for="f_new_pubkey">Clé publique :</label>
|
|
<input type="text" id="f_new_pubkey" name="pubkey"/><br />
|
|
<label for="f_new_psw">Mot de passe :</label>
|
|
<input type="text" id="f_new_psw" name="psw"/><br />
|
|
<input type="submit" value="Publier"/>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<hr />
|
|
|
|
<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</p>
|
|
</div>
|
|
</body>
|
|
</html>
|