Merge branch 'fix-order-trips' into 'staging'
fix order of displayed trips + events See merge request PhilippHofer/rot!23
This commit is contained in:
		| @@ -38,7 +38,7 @@ | |||||||
| 								{% for planned_event in day.planned_events | sort(attribute="planned_starting_time") %} | 								{% for planned_event in day.planned_events | sort(attribute="planned_starting_time") %} | ||||||
| 									{% set amount_cur_cox = planned_event.cox | length %} | 									{% set amount_cur_cox = planned_event.cox | length %} | ||||||
| 									{% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %} | 									{% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %} | ||||||
| 									<div class="pt-2 px-3 border-t" style="order: {{ planned_event.planned_starting_time | replace(from=" :", to=" ") | trim_start_matches(pat=" 0") }}"> | 									<div class="pt-2 px-3 border-t" style="order: {{ planned_event.planned_starting_time | replace(from=":", to="") }}"> | ||||||
| 										<div class="flex justify-between items-center"> | 										<div class="flex justify-between items-center"> | ||||||
| 											<div class="mr-1"> | 											<div class="mr-1"> | ||||||
| 												<strong class="text-primary-900"> | 												<strong class="text-primary-900"> | ||||||
| @@ -161,7 +161,7 @@ | |||||||
| 							{# --- START Trips --- #} | 							{# --- START Trips --- #} | ||||||
| 							{% if day.trips | length > 0 %} | 							{% if day.trips | length > 0 %} | ||||||
| 								{% for trip in day.trips | sort(attribute="planned_starting_time") %} | 								{% for trip in day.trips | sort(attribute="planned_starting_time") %} | ||||||
| 									<div class="pt-2 px-3 reset-js border-t" style="order: {{ trip.planned_starting_time | replace(from=" :", to=" ") | trim_start_matches(pat=" 0")  }}" data-coxneeded="false"> | 									<div class="pt-2 px-3 reset-js border-t" style="order: {{ trip.planned_starting_time | replace(from=":", to="") }}" data-coxneeded="false"> | ||||||
| 										<div class="flex justify-between items-center"> | 										<div class="flex justify-between items-center"> | ||||||
| 											<div class="mr-1"> | 											<div class="mr-1"> | ||||||
| 												{% if trip.max_people == 0 %} | 												{% if trip.max_people == 0 %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user