Post form: limit photos to 4, add GPS fields with geolocation button

This commit is contained in:
2026-06-18 00:48:03 +02:00
parent 7faf758a2e
commit fd6afe00e0
3 changed files with 47 additions and 2 deletions
+16 -2
View File
@@ -36,14 +36,26 @@ form:
-
name: photos
label: Photos
label: Photos (max 4)
type: file
multiple: true
destination: 'user://pages/01.tracker'
limit: 10
limit: 4
accept:
- 'image/*'
-
name: lat
label: Latitude
type: text
placeholder: 'tap "Get Location" below'
-
name: lng
label: Longitude
type: text
placeholder: ''
buttons:
-
type: submit
@@ -59,6 +71,8 @@ form:
frontmatter:
title: '{{ form.value.title }}'
date: '{{ form.value.date }}'
lat: '{{ form.value.lat }}'
lng: '{{ form.value.lng }}'
-
message: 'Entry posted successfully!'
-