calc general boat cat (#436)
Reviewed-on: #436
This commit was merged in pull request #436.
	This commit is contained in:
		| @@ -3,16 +3,14 @@ | ||||
|    Inputs: boats | ||||
|  #} | ||||
| {% macro show_boats() %} | ||||
|     {% for amount_seats, grouped_boats in boats | group_by(attribute="amount_seats") %} | ||||
|     {% for amount_seats, grouped_boats in boats | group_by(attribute="cat") %} | ||||
|         <details> | ||||
|             <summary class="font-bold cursor-pointer text-primary-900 dark:text-white border-t p-3 hover:bg-gray-100 dark:hover:bg-primary-950"> | ||||
|                 <span> | ||||
|                     {% if grouped_boats[0].external %} | ||||
|                         Vereinsfremde Boote | ||||
|                     {% elif grouped_boats[0].default_shipmaster_only_steering %} | ||||
|                         {{ grouped_boats[0].amount_seats - 1 }}+ | ||||
|                     {% else %} | ||||
|                         {{ amount_seats }}x | ||||
|                         {{ grouped_boats[0].cat }} | ||||
|                     {% endif %} | ||||
|                 </span> | ||||
|                 <small class="text-gray-500 dark:text-gray-100">({{ grouped_boats | length }})</small> | ||||
| @@ -78,7 +76,7 @@ | ||||
|     </form> | ||||
| {% endmacro new %} | ||||
| {% macro boat_select(id="boat_id") %} | ||||
|     {{ macros::select(label="Boot", data=boats, name="boat_id", id=id, display=["name", " (","amount_seats", " x)"], extras=["default_shipmaster_only_steering", "amount_seats", "on_water", "default_destination"], wrapper_class="col-span-4", show_seats=true) }} | ||||
|     {{ macros::select(label="Boot", data=boats, name="boat_id", id=id, display=["name", " (","cat",")"], extras=["default_shipmaster_only_steering", "amount_seats", "on_water", "default_destination"], wrapper_class="col-span-4", show_seats=true) }} | ||||
| {% endmacro boat_select %} | ||||
| {% macro rower_select(id, selected, amount_seats='', class='', init='false', cox_on_boat='', steering_person_id='') %} | ||||
|     {#{% if not amount_seats or amount_seats > 1 %}#} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user