[TASK] layout trip_types and add onclick join msg javascript

This commit is contained in:
Marie Birner
2023-05-03 16:14:18 +02:00
parent 15644e8a0b
commit 1f29779ede
4 changed files with 40 additions and 32 deletions

View File

@ -37,6 +37,15 @@
</label>
{% endmacro checkbox %}
{% macro select(trip_types, select_name='trip_type', default='') %}
<select name="{{ select_name }}" class="input rounded-md h-10">
<option selected value>{{ default }}</option>
{% for trip_type in trip_types %}
<option value="{{ trip_type.id }}">{{ trip_type.name }}</option>
{% endfor %}
</select>
{% endmacro select %}
{% macro alert(message, type, class='') %}
<div class="{{ class }} alert-{{ type }} text-white px-3 py-1 rounded-md text-center">
{{ message }}