[TASK] style edit form trip

This commit is contained in:
Marie Birner
2023-04-07 21:30:55 +02:00
parent 712f47c7ff
commit e8799e5766
2 changed files with 26 additions and 35 deletions

View File

@ -24,9 +24,9 @@
<div class="h-8"></div>
{% endmacro header %}
{% macro input(label, name, type, required=false, class='rounded-md') %}
{% macro input(label, name, type, required=false, class='rounded-md', value='') %}
<label for="{{ name }}" class="sr-only">{{ label }}</label>
<input id="{{ name }}" name="{{ name }}" type="{{ type }}" {% if required %} required {% endif %} class="input {{ class }}" placeholder="{{ label }}">
<input id="{{ name }}" name="{{ name }}" type="{{ type }}" {% if required %} required {% endif %} value="{{ value }}" class="input {{ class }}" placeholder="{{ label }}">
{% endmacro input %}
{% macro checkbox(label, name, id='', checked=false) %}