add latlng to /add_plant form by clicking map
This commit is contained in:
parent
d0fc9c064d
commit
706dfaf0f7
4 changed files with 36 additions and 26 deletions
|
|
@ -3,7 +3,8 @@ let f nick request =
|
|||
<div class="mb-3">
|
||||
<div id="map"></div>
|
||||
<%s! Dream.form_tag ~action:"/add_plant" ~enctype:`Multipart_form_data request %>
|
||||
<input type="hidden" id="lat_lng" name="lat_lng" value="THIS IS NOT WORKING">
|
||||
<input type="hidden" id="lat_input" name="lat_input">
|
||||
<input type="hidden" id="lng_input" name="lng_input">
|
||||
|
||||
<label for="tags" class="form-label">Tags</label>
|
||||
<textarea name="tags" type="text" class="form-control" id="tags" aria-describedby="tagsHelp"></textarea>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue