diff --git a/pages/02.post/post-form.md b/pages/02.post/post-form.md index ce48379..9a18860 100644 --- a/pages/02.post/post-form.md +++ b/pages/02.post/post-form.md @@ -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!' - diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index 546a22b..4a5ecde 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -103,3 +103,10 @@ body { /* Post form */ .post-form-wrap h1 { font-size: 1.4rem; margin-bottom: 1.5rem; } +.post-form-wrap .btn-location { + display: block; width: 100%; margin-top: 1rem; + padding: 0.85rem 1rem; min-height: 44px; + background: #f0f0f0; border: 1px solid #ccc; + border-radius: 6px; font-size: 1rem; cursor: pointer; +} +.post-form-wrap .location-status { font-size: 0.85rem; color: #666; margin-top: 0.5rem; text-align: center; } diff --git a/themes/intotheeast/templates/post-form.html.twig b/themes/intotheeast/templates/post-form.html.twig index 92a23db..28dc172 100644 --- a/themes/intotheeast/templates/post-form.html.twig +++ b/themes/intotheeast/templates/post-form.html.twig @@ -4,5 +4,29 @@