49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
<br>
|
|
<div class="row">
|
|
<% for (const input of basicInputInputs){ %>
|
|
<div class="input-field col s3 m4 l5">
|
|
<input
|
|
id="<%= input.dbField %>"
|
|
name="<%= input.dbField %>"
|
|
type="text"
|
|
value="<%= basicInputValues[input.dbField] !== undefined ? basicInputValues[input.dbField] : ""%>"
|
|
>
|
|
<label for="<%= input.dbField %>"><%= input.title %></label>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
<br>
|
|
<div class="row">
|
|
<% for (const input of basicBooleanPublishInputs){ %>
|
|
<p>
|
|
<label class="checkbox-label">
|
|
<input type="checkbox" class="filled-in" name="<%= input.dbField %>"
|
|
<% if (basicBooleanPublishValues[input.dbField]) { %>
|
|
checked
|
|
<% } %>>
|
|
<span><%= input.title %></span>
|
|
</label>
|
|
</p>
|
|
<% } %>
|
|
</div>
|
|
|
|
<br>
|
|
<% for (const input of basicSegmentSelectInputs){ %>
|
|
<div>
|
|
<label class="checkbox-label"><%= input.title %>: </label><br><br>
|
|
<span class="segmented small">
|
|
<% for (const segmentObject of input.values) { %>
|
|
<label>
|
|
<input type="radio" name="<%= input.dbField %>" value="<%= segmentObject.id %>"
|
|
<% if (basicSegmentSelectValues[input.dbField] === segmentObject.id) { %>
|
|
checked
|
|
<% } %>>
|
|
<span class="label"><%= segmentObject.title %></span>
|
|
</label>
|
|
<% } %>
|
|
</span>
|
|
</div>
|
|
<% } %>
|
|
|
|
|
|
|