css improvements
This commit is contained in:
parent
3929c07717
commit
5b9197bb20
11 changed files with 385 additions and 242 deletions
|
@ -1,20 +1,19 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<form enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<form class='form' enctype='multipart/form-data' method='POST' action='<%= route %>'>
|
||||
<h1>
|
||||
<%= title %>
|
||||
</h1>
|
||||
<div class='form-message'></div>
|
||||
<% for (let elem of data) { %>
|
||||
<span class='form-entry'> <span class='form-key'>
|
||||
<%= elem.label %>
|
||||
</span>
|
||||
<% if (elem.type=='textarea' ) { %>
|
||||
<textarea name='<%= elem.name %>'></textarea>
|
||||
<% } else { %>
|
||||
<input type='<%= elem.type %>' name='<%= elem.name %>'>
|
||||
<span class='form-key'>
|
||||
<%= elem.label %>
|
||||
</span>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<input type='Submit' name='Submit'>
|
||||
<% if (elem.type=='textarea' ) { %>
|
||||
<textarea class='form-input' name='<%= elem.name %>'></textarea>
|
||||
<% } else { %>
|
||||
<input class='form-input' type='<%= elem.type %>' name='<%= elem.name %>'>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<input class='form-input' type='Submit' name='Submit'>
|
||||
</form>
|
||||
<%- include('footer.ejs') -%>
|
Loading…
Add table
Add a link
Reference in a new issue