Post form: limit photos to 4, add GPS fields with geolocation button
This commit is contained in:
@@ -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!'
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user