Essentiellement modifs CSS

This commit is contained in:
2023-12-13 17:16:15 +01:00
parent d9cd173a1e
commit 98d916c535
3 changed files with 21 additions and 5 deletions

View File

@@ -44,6 +44,18 @@ ul > li > a {
color: #ff8585; color: #ff8585;
} }
.tableau ul:nth-child(odd) a.btn {
background-color: red;
border-color: red;
color: white;
}
.tableau ul:nth-child(even) a.btn {
background-color: white;
border-color: red;
color: red;
}
img { img {
height: 80px !important; height: 80px !important;
transition: transform .1s; transition: transform .1s;

View File

@@ -40,7 +40,7 @@
</li> </li>
<li>{{this.prix}} €</li> <li>{{this.prix}} €</li>
<li>{{#if this.acheteur}}{{this.acheteur}} <li>{{#if this.acheteur}}{{this.acheteur}}
{{else}}<a href="/choix-offrant?cadeau={{this.id}}" class="btn btn-primary">Le réserver</a>{{/if}} {{else}}<a href="/choix-offrant?cadeau={{this.id}}" class="btn">Le réserver</a>{{/if}}
</li> </li>
<li> <li>
<div class="form-check form-switch"> <div class="form-check form-switch">
@@ -52,10 +52,14 @@
</div> </div>
<li>{{#if this.pourNoel}}Noël{{else}}Anniversaire{{/if}}</li> <li>{{#if this.pourNoel}}Noël{{else}}Anniversaire{{/if}}</li>
<li> <li>
{{#if this.emballe}} {{#if this.achete}}
<label class="form-check-label">Déja emballé</label> {{#if this.emballe}}
<label class="form-check-label">Emballé</label>
{{else}}
<label class="form-check-label"><b>A emballer</b></label>
{{/if}}
{{else}} {{else}}
<label class="form-check-label">A emballer</label> &nbsp;
{{/if}} {{/if}}
</li> </li>
</ul> </ul>

View File

@@ -48,7 +48,7 @@ hbs.registerHelper('equals', isEqual);
app.get("/", (req, res) => { app.get("/", (req, res) => {
db.query('SELECT c.id as "id", c.libelle as "libelle", c.prix, c.photo as "photo", c.lien, p.prenom as "acheteur", c.achete as "achete", c.paye as "paye", p2.prenom as "responsableAchat", c.pour_noel as "pourNoel", c.emballe as "emballe" FROM cadeau c LEFT OUTER JOIN participations pc on pc.cadeau = c.id LEFT OUTER JOIN participant p on p.id = pc.offrant LEFT OUTER JOIN participant p2 on p2.id = pc.responsable_achat ORDER BY c.prix', async (error, resultCadeaux) => { db.query('SELECT c.id as "id", c.libelle as "libelle", c.prix, c.photo as "photo", c.lien, p.prenom as "acheteur", c.achete as "achete", c.paye as "paye", p2.prenom as "responsableAchat", c.pour_noel as "pourNoel", c.emballe as "emballe" FROM cadeau c LEFT OUTER JOIN participations pc on pc.cadeau = c.id LEFT OUTER JOIN participant p on p.id = pc.offrant LEFT OUTER JOIN participant p2 on p2.id = pc.responsable_achat ORDER BY c.pour_noel, c.prix', async (error, resultCadeaux) => {
let message; let message;
if(error){ if(error){