geochan/src/add_plant.eml.html

17 lines
839 B
HTML
Raw Normal View History

2021-12-07 23:18:07 +01:00
let f nick request =
<%s Format.sprintf "Add a plant to your Collection %s !" nick %>
<div class="mb-3">
2021-12-09 07:27:44 +01:00
<div id="map"></div>
2021-12-07 23:18:07 +01:00
<%s! Dream.form_tag ~action:"/add_plant" ~enctype:`Multipart_form_data request %>
2021-12-09 07:27:44 +01:00
<input type="hidden" id="lat_lng" name="lat_lng" value="THIS IS NOT WORKING">
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>
</div>
</form>