show how many people can join trip, even if no one is registered yet
This commit is contained in:
		| @@ -187,9 +187,7 @@ | |||||||
|         <div class="hidden"> |         <div class="hidden"> | ||||||
|             <div id="trip{{ trip.trip_details_id }}"> |             <div id="trip{{ trip.trip_details_id }}"> | ||||||
|               {% set amount_cur_rower = trip.rower | length %} |               {% set amount_cur_rower = trip.rower | length %} | ||||||
|               {% if amount_cur_rower > 0 %} |  | ||||||
|               {{ macros::box(participants=trip.rower, empty_seats=trip.max_people - amount_cur_rower, bg='primary-100', color='black') }} |               {{ macros::box(participants=trip.rower, empty_seats=trip.max_people - amount_cur_rower, bg='primary-100', color='black') }} | ||||||
|               {% endif %} |  | ||||||
|             {# --- START Edit Form --- #} |             {# --- START Edit Form --- #} | ||||||
|             {% if trip.cox_id == loggedin_user.id %} |             {% if trip.cox_id == loggedin_user.id %} | ||||||
|             <div class="bg-gray-100 p-3 mt-4 rounded-md"> |             <div class="bg-gray-100 p-3 mt-4 rounded-md"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user