change to ejs

This commit is contained in:
biglyderv 2024-11-25 14:12:43 -05:00
parent 9287290479
commit e92c87c5da
11 changed files with 62 additions and 74 deletions

11
views/form.ejs Normal file
View file

@ -0,0 +1,11 @@
<%- include('header.ejs') -%>
<form enctype='multipart/form-data' method='POST' action='<%= route %>'>
<div class='form-message'></div>
<% for (let elem of data) { %>
<span class='form-entry'> <span class='form-key'>
<%= elem.label %>
</span> <input type='<%= elem.type %>' name='<%= elem.name %>'></span>
<% } %>
<input type='Submit' name='Submit'>
</form>
<%- include('footer.ejs') -%>