Display parking space info

This commit is contained in:
Adrian Woźniak 2023-10-10 17:05:40 +02:00
parent ad976119af
commit 2489fed697
2 changed files with 22 additions and 8 deletions

View File

@ -779,6 +779,10 @@ select {
z-index: 50;
}
.m-1 {
margin: 0.25rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;

View File

@ -25,16 +25,26 @@
>
{{ "Price"|t(lang,t) }}
</label>
<div class="flex w-full">
<input
id="price"
name="price"
class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-cyan-500"
id="price-major"
name="price-major"
class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-cyan-500"
type="number"
required
{% if let Some(v) = form.price %}
value="{{v}}"
{% endif %}
{% if let Some(v) = form.price %} value="{{ v / 100 }}" {% endif %}
/>
<span class="m-1 text-lg font-medium">.</span>
<input
id="price-minor
name="price-minor"
class="px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-cyan-500"
type="number"
required
{% if let Some(v) = form.price %} value="{{ v % 100 }}" {% endif %}
/>
<span class="m-1">PLN</span>
</div>
</div>
<div class="mb-6">
<input