From ca85be6f538c6697021e9114c7447db3377459e4 Mon Sep 17 00:00:00 2001 From: Aljaz S Date: Tue, 23 Nov 2021 18:11:41 +0100 Subject: [PATCH] fix formatting in form.ejs --- src/views/form.ejs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/form.ejs b/src/views/form.ejs index 31facb7..a826c3f 100644 --- a/src/views/form.ejs +++ b/src/views/form.ejs @@ -69,11 +69,13 @@ div { { n: "purpose", d: "Purpose", p: "moutain bike first half", t: "text" }, { n: "reference", d: "Reference", p: "SI121234567890120", t: "text" } ] - for (i of items) { - const str = String(q[i.n]) - const readonly = (str != "" && !str.includes("*") ? "readonly" : "") - const val = str.replace("*", "") %> + <% for (const i of items) { %> + <% + const str = String(q[i.n]) + const readonly = (str != "" && !str.includes("*") ? "readonly" : "") + const val = str.replace("*", "") + %>
type="<%= i.t %>" placeholder="<%= i.p %>" name="<%= i.n %>">