2021-12-07 23:18:07 +01:00
|
|
|
let f nick request =
|
2022-01-09 11:28:18 +01:00
|
|
|
<script type="text/javascript" src="/assets/js/js_plant_map.js" defer="defer"></script>
|
2021-12-07 23:18:07 +01:00
|
|
|
<%s Format.sprintf "Add a plant to your Collection %s !" nick %>
|
2022-01-10 11:23:24 +01:00
|
|
|
<div class="row mb-3">
|
|
|
|
|
<div class="col-md-6">
|
2021-12-09 07:27:44 +01:00
|
|
|
<div id="map"></div>
|
2022-01-10 11:23:24 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6">
|
2021-12-07 23:18:07 +01:00
|
|
|
<%s! Dream.form_tag ~action:"/add_plant" ~enctype:`Multipart_form_data request %>
|
2021-12-14 23:47:26 +01:00
|
|
|
<input type="hidden" id="lat_input" name="lat_input">
|
|
|
|
|
<input type="hidden" id="lng_input" name="lng_input">
|
2021-12-09 07:27:44 +01:00
|
|
|
|
2021-12-07 23:18:07 +01:00
|
|
|
<label for="tags" class="form-label">Tags</label>
|
|
|
|
|
<textarea name="tags" type="text" class="form-control" id="tags" aria-describedby="tagsHelp"></textarea>
|
|
|
|
|
<div id="tagsHelp" class="form-text">Describe your plant with tags</div>
|
|
|
|
|
|
|
|
|
|
<input id="files" name="files" aria-describedby="filesHelp" type="file" multiple>
|
|
|
|
|
<div id="filesHelp" class="form-text">Add a optional picture for your plant</div>
|
|
|
|
|
<button type="submit" class="btn btn-primary">Add Plant</button>
|
|
|
|
|
</form>
|
2022-01-10 11:23:24 +01:00
|
|
|
</div>
|