show info, if scheckbuch is not yet paid
This commit is contained in:
		| @@ -8,6 +8,11 @@ | ||||
|                 <div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5" | ||||
|                      role="alert"> | ||||
|                     <h2 class="h2">Scheckbuch</h2> | ||||
| 		    	{% if "paid" not in loggedin_user.roles %} | ||||
|                         <div class="bg-gray-300 text-center text-black"> | ||||
| 				Bitte nimm zur nächsten Ausfahrt die {{ costs_scheckbuch / 100 }} € für das Scheckbuch mit. Falls du das bereits gemacht hast, gibt uns bitte kurz Bescheid, dass dies noch nicht eingetragen wurde. | ||||
| 				</div> | ||||
| 			{% endif %} | ||||
|                     <div class="text-sm p-3"> | ||||
|                         <h3>Du hast bisher {{ last_trips | length }} deiner 5 Scheckbuch-Ausfahrten gemacht:</h3> | ||||
|                         <ol> | ||||
| @@ -93,6 +98,11 @@ | ||||
|                         {{ day.day| date(format="%d.%m.%Y") }} | ||||
|                         <small class="inline-block ml-1 text-xs {% if day.is_pinned %} text-gray-200 {% else %} text-gray-500 dark:text-gray-100 {% endif %}">{{ day.day | date(format="%A", locale="de_AT") }}</small> | ||||
|                     </h2> | ||||
|                     {% if day.weather %} | ||||
|                         <div class="bg-gray-300 text-center"> | ||||
|                             Max temp: {{ day.weather.max_temp | round }}° • Windböe: {{ day.weather.wind_gust | round }} km/h • Regen: {{ day.weather.rain_mm | round }} mm | ||||
|                         </div> | ||||
|                     {% endif %} | ||||
|                     {% if day.planned_events | length > 0 or  day.trips | length > 0 %} | ||||
|                         <div class="grid grid-cols-1 gap-3 mb-3"> | ||||
|                             {# --- START Events --- #} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user