gmarche-rs/templates/index.html

94 lines
3.5 KiB
HTML
Raw Normal View History

2020-10-26 23:43:18 +01:00
<!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"/>
2020-10-26 23:43:18 +01:00
</head>
<body>
2020-12-08 18:16:05 +01:00
<div class="center page">
2020-11-02 11:48:44 +01:00
<a href="/"><img id="banner" alt="ĞMarché" src="/static/banner.jpg"/></a>
2020-10-27 11:15:46 +01:00
<h1>ĞMarché</h1>
2020-11-02 11:41:55 +01:00
{{#if errors}}
<div id="errors">
<span>Oups, il y a un problème&nbsp;:</span>
<ul>
{{#each errors}}
<li>{{this.text}}</li>
{{/each}}
</ul>
</div>
{{/if}}
2020-10-27 11:15:46 +01:00
<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>
2020-11-02 13:14:09 +01:00
<p>&#9888; <strong>Merci de ne pas encore utiliser ce site pour de vrais événements&#8239;!</strong></p>
<form method="post">
2020-11-02 18:12:50 +01:00
<table id="ads">
<thead>
2020-11-02 20:24:39 +01:00
<tr><td></td><th>Annonce</th><th>Quantité</th><th>Prix</th><th>Vendeur</th></tr>
</thead>
<tbody>
{{#each ads}}
<tr>
2020-11-02 18:12:50 +01:00
<td><input type="radio" name="ad" value="{{this.id}}" required/></td>
<td>{{this.ad.title}}</td>
2020-11-02 18:12:50 +01:00
<td>{{this.ad.quantity}}</td>
2020-11-02 13:14:09 +01:00
<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>
2020-11-02 18:12:50 +01:00
<br/>
<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&nbsp;:</label>
<input type="password" id="f_rm_psw" name="psw"/><br/>
<input type="submit" value="Supprimer"/>
</fieldset>
</form>
2020-11-02 18:12:50 +01:00
<br/>
2020-10-27 11:15:46 +01:00
<img id="stand" alt="Marché" src="/static/standgm.png"/>
<form method="post">
<input type="hidden" name="a" value="new_ad" autocomplete="off"/>
2020-10-27 11:15:46 +01:00
<fieldset>
<legend>Nouvelle annonce</legend>
<label for="f_new_title">Titre&nbsp;:</label>
2020-11-02 13:14:09 +01:00
<input type="text" id="f_new_title" name="title" placeholder="Carottes" required/><br/>
2020-11-02 18:12:50 +01:00
<label for="f_new_quantity">Quantité&nbsp;:</label>
<input type="text" id="f_new_quantity" name="quantity" placeholder="10 kg" required/><br/>
2020-11-02 13:14:09 +01:00
<label for="f_new_price">Prix&nbsp;:</label>
<input type="text" id="f_new_price" name="price" placeholder="42 DU/kg" required/><br/>
<label for="f_new_author">Votre nom&nbsp;:</label>
2020-11-02 13:14:09 +01:00
<input type="text" id="f_new_author" name="author" placeholder="Toto" required/><br/>
<label for="f_new_pubkey">Clé publique&nbsp;:</label>
2020-11-02 13:14:09 +01:00
<input type="text" id="f_new_pubkey" name="pubkey"/><br/>
<label for="f_new_psw">Mot de passe&nbsp;:</label>
2020-11-02 18:12:50 +01:00
<input type="text" id="f_new_psw" name="psw"/><br/>
<span>Le mot de passe sera demandé pour modifier ou supprimer l'annonce.</span><br/>
2020-10-27 11:15:46 +01:00
<input type="submit" value="Publier"/>
</fieldset>
</form>
2020-11-02 13:14:09 +01:00
<hr style="clear: both;"/>
2020-10-27 11:15:46 +01:00
2020-11-02 18:12:50 +01:00
<p><a href="https://forum.duniter.org">Toutes les questions techniques ont leur place sur le forum.</a></p>
2020-10-27 11:15:46 +01:00
<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>. &#129408; Écrit en <a href="https://www.rust-lang.org">Rust</a>. Images de Attilax.<br/>
2020-12-08 18:16:05 +01:00
CopyLeft 2020 Pascal Engélibert<br/>
Image de fond&nbsp;: Claudia Peters, FreeImages.com</a></p>
2020-11-06 15:23:17 +01:00
<p><a href="/admin">Administration</a></p>
2020-10-27 11:15:46 +01:00
</div>
2020-10-26 23:43:18 +01:00
</body>
</html>