show cancelation in sidebar
This commit is contained in:
		| @@ -7,7 +7,6 @@ | ||||
| - Wanderfahrt: ⛱ | ||||
|  | ||||
| # Notes / Bugfixes | ||||
| - [] max_people = 0 -> Rot hervorheben, dass Ausfahrt abgesagt wurde? | ||||
| - [] my trips for cox | ||||
| - [] add `trip_type` (id, name, desc, question, icon) with a FK to `trip_details` | ||||
| - [] add `always_show` to `planned_trips` (e.g. for wanderfahrten) | ||||
|   | ||||
| @@ -41,7 +41,7 @@ | ||||
| </div> | ||||
| {% endmacro alert %} | ||||
|  | ||||
| {% macro box(participants, empty_seats, header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} | ||||
| {% macro box(participants, empty_seats='', header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} | ||||
| <div class="text-{{ color }} bg-{{ bg }} text-center p-1 mt-1 rounded-t-md">{{ header }} {{ empty_seats }}</div> | ||||
| <div class="p-2 border border-t-0 border-{{ bg }} mb-4 rounded-b-md"> | ||||
|   {% if participants | length > 0 %} | ||||
|   | ||||
| @@ -176,9 +176,15 @@ | ||||
|         {# --- START Sidebar Content --- #} | ||||
|         <div class="hidden"> | ||||
|             <div id="trip{{ trip.trip_details_id }}"> | ||||
|               {% set amount_cur_rower = trip.rower | length %} | ||||
|               {{ macros::box(participants=trip.rower, empty_seats=trip.max_people - amount_cur_rower, bg='primary-100', color='black') }} | ||||
|             {# --- START Edit Form --- #} | ||||
|               {% if trip.max_people == 0 %} | ||||
|                 {# --- border-[#f43f5e] bg-[#f43f5e] --- #} | ||||
|                 {{ macros::box(participants=trip.rower,bg='[#f43f5e]',header='Absage') }} | ||||
|               {% else %} | ||||
|                 {% set amount_cur_rower = trip.rower | length %} | ||||
|                 {{ macros::box(participants=trip.rower, empty_seats=trip.max_people - amount_cur_rower, bg='primary-100', color='black') }} | ||||
|               {% endif %} | ||||
|  | ||||
|                  {# --- START Edit Form --- #} | ||||
|             {% if trip.cox_id == loggedin_user.id %} | ||||
|             <div class="bg-gray-100 p-3 mt-4 rounded-md"> | ||||
|               <h3 class="text-primary-950 font-bold uppercase tracking-wide mb-2">Ausfahrt bearbeiten</h3> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp
					Philipp