add event time to example web templates
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 27 Sep 2015 18:59:11 +0000 (20:59 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 27 Sep 2015 18:59:11 +0000 (20:59 +0200)
www/template/en/cart.html
www/template/en/checkout.html
www/template/en/placeorder.html

index 071f1cb..e987007 100644 (file)
@@ -23,7 +23,7 @@
   {% for ticket in cart.tickets %}
     {% set pricesum=ticket.price * ticket.amount %}
     <tr>
-    <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}})</td>
+    <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}}) {{ticket.event.start|asDateTime}}</td>
     <td align="right">{{ticket.price|asMoney}}</td>
     <td align="right">{{ticket.amount}}</td>
     <td align="right">{{pricesum|asMoney}}</td>
index 7653a60..a818d79 100644 (file)
@@ -52,7 +52,7 @@
  {% for ticket in cart.tickets %}
    {% set pricesum=ticket.price * ticket.amount %}
    <tr>
-   <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}})</td>
+   <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}}) {{ticket.event.start|asDateTime}}</td>
    <td align="right">{{ticket.price|asMoney}}</td>
    <td align="right">{{ticket.amount}}</td>
    <td align="right">{{pricesum|asMoney}}</td>
index ad8acfc..3738841 100644 (file)
@@ -140,7 +140,7 @@ Your order has been placed. You will receive confirmation via email.<p/>
  {% for ticket in order.tickets %}
    <tr>
    <td>Ticket: {{ticket.ticketid}}</td>
-   <td>{{ticket.event.title}} ({{ticket.pricecategory.name}})</td>
+   <td>{{ticket.event.title}} ({{ticket.pricecategory.name}}) {{ticket.event.start|asDateTime}}</td>
    <td align="right">{{ticket.price|asMoney}}</td>
    </tr>
  {% endfor %}
@@ -191,11 +191,11 @@ ARRRRGGHHHHHH!
  {% for ticket in outcart.tickets %}
    {% set pricesum=ticket.price * ticket.amount %}
    <tr>
-   <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}})</td>
+   <td>Ticket: {{ticket.event.title}} ({{ticket.eventprice.pricecategory.name}}) {{ticket.event.start|asDateTime}}</td>
    <td align="right">{{ticket.price|asMoney}}</td>
    <td align="right">{{ticket.amount}}</td>
    <td align="right">{{pricesum|asMoney}}</td>
-   <td>{{ticket.str_status}}</td>
+   <td {% if ticket.status > 0 %}bgcolor="#ff8080"{% endif %}>{{ticket.str_status}} (Max {{ticket.maxamount}} available)</td>
    </tr>
  {% endfor %}