Files
old-web/app/views/publishBasicData.ejs

49 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-02-04 01:02:32 +01:00
<br>
2020-02-06 01:57:29 +01:00
<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>
<% } %>