change to ejs
This commit is contained in:
parent
9287290479
commit
e92c87c5da
11 changed files with 62 additions and 74 deletions
11
views/form.ejs
Normal file
11
views/form.ejs
Normal 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') -%>
|
Loading…
Add table
Add a link
Reference in a new issue