I need help with very easy thing. I created form as popup (via Bootstrap modal) and now i need to get it working on every product page. So i inserted code to product template (product.html.twig) and all looks fine. But while studying sending form in doc i can’t find how to make it alive. I only found how to create simple form via manually editing markdown header, but no way how to handle form via page templates. Please, can you help me what’s the best way to do it in Grav?
My form looks like:
<div class="modal-body">
<form>
<div class="form-group">
<label for="customer-name" class="control-label">Name:</label>
<input type="text" class="form-control" id="customer-name">
<label for="customer-phone" class="control-label">Phone:</label>
<input type="text" class="form-control" id="customer-phone">
<label for="customer-email" class="control-label">Email:</label>
<input type="text" class="form-control" id="customer-email">
</div>
<div class="form-group">
<label for="message-text" class="control-label">Message:</label>
<textarea class="form-control" id="customer-message">Please, send me {{ header.product.name}}.</textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" style="background-color: black">Send</button>
</div>