Essentiellement modifs CSS
This commit is contained in:
@@ -44,6 +44,18 @@ ul > li > a {
|
||||
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 {
|
||||
height: 80px !important;
|
||||
transition: transform .1s;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</li>
|
||||
<li>{{this.prix}} €</li>
|
||||
<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>
|
||||
<div class="form-check form-switch">
|
||||
@@ -52,10 +52,14 @@
|
||||
</div>
|
||||
<li>{{#if this.pourNoel}}Noël{{else}}Anniversaire{{/if}}</li>
|
||||
<li>
|
||||
{{#if this.achete}}
|
||||
{{#if this.emballe}}
|
||||
<label class="form-check-label">Déja emballé</label>
|
||||
<label class="form-check-label">Emballé</label>
|
||||
{{else}}
|
||||
<label class="form-check-label">A emballer</label>
|
||||
<label class="form-check-label"><b>A emballer</b></label>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -48,7 +48,7 @@ hbs.registerHelper('equals', isEqual);
|
||||
|
||||
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;
|
||||
|
||||
if(error){
|
||||
|
||||
Reference in New Issue
Block a user