forked from Ruderverein-Donau-Linz/rowt
		
	change header message box sidebar
This commit is contained in:
		@@ -41,8 +41,8 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
{% endmacro alert %}
 | 
					{% endmacro alert %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% macro box(participants, empty_seats, header='Ruderer können noch teilnehmen', 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">{{ empty_seats }} {{ header }}</div>
 | 
					<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">
 | 
					<div class="p-2 border border-t-0 border-{{ bg }} mb-4 rounded-b-md">
 | 
				
			||||||
  {% if participants | length > 0 %}
 | 
					  {% if participants | length > 0 %}
 | 
				
			||||||
    {% for rower in participants %}
 | 
					    {% for rower in participants %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -97,7 +97,7 @@
 | 
				
			|||||||
              {# --- START List Coxes --- #}
 | 
					              {# --- START List Coxes --- #}
 | 
				
			||||||
              {% if planned_event.planned_amount_cox > 0 %}
 | 
					              {% if planned_event.planned_amount_cox > 0 %}
 | 
				
			||||||
		{% if amount_cox_missing > 0 %}
 | 
							{% if amount_cox_missing > 0 %}
 | 
				
			||||||
	                {{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Steuerleute werden noch benötigt', text='Keine Steuerleute angemeldet') }}
 | 
						                {{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Benötigte Steuerleute:', text='Keine Steuerleute angemeldet') }}
 | 
				
			||||||
		{% else %}
 | 
							{% else %}
 | 
				
			||||||
	                {{ macros::box(participants=planned_event.cox, empty_seats="", header='Genügend Steuerleute haben sich angemeldet :-)', text='Keine Steuerleute angemeldet') }}
 | 
						                {{ macros::box(participants=planned_event.cox, empty_seats="", header='Genügend Steuerleute haben sich angemeldet :-)', text='Keine Steuerleute angemeldet') }}
 | 
				
			||||||
		{% endif %}
 | 
							{% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user