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" / >
2020-11-02 10:57:50 +01:00
< link rel = "shortcut icon" href = "/static/icon.png" / >
2020-10-26 23:43:18 +01:00
< / head >
< body >
2020-10-27 11:15:46 +01:00
< div class = "center" >
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 :< / 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 > ⚠ < strong > Merci de ne pas encore utiliser ce site pour de vrais événements  !< / strong > < / p >
2020-11-02 10:57:50 +01:00
< form method = "post" >
< table border = "1" >
< thead >
2020-11-02 13:14:09 +01:00
< tr > < td > < / td > < td > Annonce< / td > < td > Prix< / td > < td > Vendeur< / td > < / tr >
2020-11-02 10:57:50 +01:00
< / thead >
< tbody >
{{#each ads}}
< tr >
< td > < input type = "radio" name = "ad" value = "{{this.id}}" / > < / td >
< td > {{this.ad.title}}< / td >
2020-11-02 13:14:09 +01:00
< td > {{this.ad.price}}< / td >
2020-11-02 10:57:50 +01:00
< 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 >
2020-10-27 11:15:46 +01:00
< img id = "stand" alt = "Marché" src = "/static/standgm.png" / >
< form method = "post" >
2020-11-02 10:57:50 +01:00
< input type = "hidden" name = "a" value = "new_ad" autocomplete = "off" / >
2020-10-27 11:15:46 +01:00
< fieldset >
< legend > Nouvelle annonce< / legend >
2020-11-02 10:57:50 +01:00
< label for = "f_new_title" > Titre :< / label >
2020-11-02 13:14:09 +01:00
< input type = "text" id = "f_new_title" name = "title" placeholder = "Carottes" required / > < br / >
< label for = "f_new_price" > Prix :< / label >
< input type = "text" id = "f_new_price" name = "price" placeholder = "42 DU/kg" required / > < br / >
2020-11-02 10:57:50 +01:00
< label for = "f_new_author" > Votre nom :< / label >
2020-11-02 13:14:09 +01:00
< input type = "text" id = "f_new_author" name = "author" placeholder = "Toto" required / > < br / >
2020-11-02 10:57:50 +01:00
< label for = "f_new_pubkey" > Clé publique :< / label >
2020-11-02 13:14:09 +01:00
< input type = "text" id = "f_new_pubkey" name = "pubkey" / > < br / >
2020-11-02 10:57:50 +01:00
< label for = "f_new_psw" > Mot de passe :< / label >
2020-11-02 13:14:09 +01:00
< input type = "text" id = "f_new_psw" name = "psw" / > < 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
< 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 >
2020-10-26 23:43:18 +01:00
< / body >
< / html >