|
17 | 17 | <span class="cart-item cart-header cart-column">ITEM</span> |
18 | 18 | <span class="cart-price cart-header cart-column">PRICE</span> |
19 | 19 | <span class="cart-quantity cart-header cart-column">QUANTITY</span> |
20 | | - <span class="c-t cart-header cart-column">Order Status</span> |
| 20 | + <span class="c-t cart-header cart-column">ORDER STATUS</span> |
21 | 21 | </div> |
22 | 22 | <div class="cart-items"> |
23 | 23 | {{#each orderitems}} |
|
38 | 38 | <p class="cart-total cart-column orderStatus">{{this.orderStatus}}</p> |
39 | 39 | {{!-- <button class="hidden btn btn-secondary" style="display:none;" id="{{this.productSku}}">Confirm |
40 | 40 | Delivery</button> --}} |
41 | | - <button class="btn confirm-btn btn-outline btn-secondary" style="display:none;" type="submit" |
| 41 | + <button class="btn confirm-btn blue-btn-10" style="display:none; font-size:0.8rem" type="submit" |
42 | 42 | data-bs-toggle="modal" data-bs-target="#Modal-confirm-{{this.productSku}}">Confirm |
43 | 43 | Delivery</button> |
44 | 44 | {{#equals this.review 0}} |
45 | | - <button class="btn review-btn btn-outline btn-secondary" style="display:none; font-size:0.8rem" type="submit" data-bs-toggle="modal" |
46 | | - data-bs-target="#Modal-review-{{this.productSku}}">Leave a Review</button> |
| 45 | + <button class="btn review-btn blue-btn-10" style="display:none; font-size:0.8rem" |
| 46 | + type="submit" data-bs-toggle="modal" data-bs-target="#Modal-review-{{this.productSku}}">Leave a |
| 47 | + Review</button> |
47 | 48 | {{/equals}} |
48 | 49 | </div> |
49 | 50 | </div> |
|
92 | 93 | <form class="form" action="/submitProductReview" method="post"> |
93 | 94 | <input class="star star-5" id="star-5" value="5" type="radio" name="star" /> |
94 | 95 | <label class="star star-5" for="star-5"></label> |
95 | | - <input class="star star-4" id="star-4" value="4" type="radio" name="star" /> |
| 96 | + <input class="star star-4" id="star-4" value="4" type="radio" name="star" /> |
96 | 97 | <label class="star star-4" for="star-4"></label> |
97 | | - <input class="star star-3" id="star-3" value="3" type="radio" name="star" /> |
| 98 | + <input class="star star-3" id="star-3" value="3" type="radio" name="star" /> |
98 | 99 | <label class="star star-3" for="star-3"></label> |
99 | | - <input class="star star-2" id="star-2" value="2" type="radio" name="star" /> |
| 100 | + <input class="star star-2" id="star-2" value="2" type="radio" name="star" /> |
100 | 101 | <label class="star star-2" for="star-2"></label> |
101 | | - <input class="star star-1" id="star-1" value="1" type="radio" name="star" /> |
| 102 | + <input class="star star-1" id="star-1" value="1" type="radio" name="star" /> |
102 | 103 | <label class="star star-1" for="star-1"></label> |
103 | 104 |
|
104 | 105 | <input type="hidden" id="sku" name="sku" value="{{this.productSku}}"> |
|
110 | 111 | <input class="title" col="20" name="title" placeholder="Review Title" id="title"> |
111 | 112 | </tr> |
112 | 113 | <tr> |
113 | | - <textarea class="review" col="70" name="review" |
114 | | - placeholder="Review Description" id="text"></textarea> |
| 114 | + <textarea class="review" col="70" name="review" placeholder="Review Description" |
| 115 | + id="text"></textarea> |
115 | 116 | </tr> |
116 | 117 | </table> |
117 | 118 | <button type="submit" class="green-btn-25" value="">Submit Review</button> |
|
164 | 165 | if (orderStatus == "Delivered") { |
165 | 166 | btn = cartRow.getElementsByClassName("confirm-btn")[0] |
166 | 167 | btn.style.display = "block" |
167 | | - } else if(orderStatus == "Delivery Confirmed") { |
| 168 | + } else if (orderStatus == "Delivery Confirmed") { |
168 | 169 | btn = cartRow.getElementsByClassName("review-btn")[0] |
169 | | - btn.style.display = "block" |
| 170 | + if (typeof (btn) != "undefined") { |
| 171 | + console.log(btn) |
| 172 | + btn.style.display = "block" |
| 173 | + } |
170 | 174 | } |
171 | 175 |
|
172 | 176 | } |
|
0 commit comments