[FIX] website_event_track: display days in chronological order
authorRichard Mathot (OpenERP) <rim@openerp.com>
Tue, 13 May 2014 07:28:03 +0000 (09:28 +0200)
committerRichard Mathot (OpenERP) <rim@openerp.com>
Tue, 13 May 2014 07:28:03 +0000 (09:28 +0200)
addons/website_event_track/views/website_event.xml

index 55b876e..3bfe4f0 100644 (file)
@@ -53,7 +53,9 @@
                 <input type="text" class="form-control" placeholder="Filter Tracks..." id="event_track_search"/>
             </div>
         </section>
-        <section class="container" t-foreach="days.keys()" t-as="day">
+        <t t-set="dayslist" t-value="days.keys()"/>
+        <t t-set="dayslist2" t-value="dayslist.sort()"/> <!-- display days in the right order -->
+        <section class="container" t-foreach="dayslist" t-as="day">
             <t t-set="locations" t-value="days[day]['locations']"/>
             <t t-set="dates" t-value="days[day]['dates']"/>
             <h3 class="page-header mt0">