<br>

<% for (const filter of advancedBooleanFilterObjects){ %>
  <p>
    <label class="checkbox-label">
      <input type="checkbox" class="filled-in" name="<%= filter.dbField %>"
        <% if (advancedBooleanFilterValues[filter.dbField]) { %>
          checked
        <% } %>>
      <span><%= filter.title %></span>
    </label>
  </p>
<% } %>

<br>
<% for (const filter of advancedRangeFilterObjects){ %>
    <div class="row">
        <p class="column-label col s5 m3 l2">
            <%= filter.title %>
        </p>
        <div class="input-field col s3 m4 l5">
            <input
                    id="<%= filter.dbFieldMin %>"
                    name="<%= filter.dbFieldMin %>"
                    type="number"
                    value="<%= advancedRangeFilterValues[filter.dbFieldMin] !== undefined ? advancedRangeFilterValues[filter.dbFieldMin] : ""%>"
            >
            <label for="<%= filter.dbFieldMin %>">Od</label>
        </div>
        <div class="input-field col s3 m4 l5">
            <input
                    id="<%= filter.dbFieldMax %>"
                    name="<%= filter.dbFieldMax %>"
                    type="number"
                    value="<%= advancedRangeFilterValues[filter.dbFieldMax] !== undefined ? advancedRangeFilterValues[filter.dbFieldMax] : ""%>"
            >
            <label for="<%= filter.dbFieldMax %>">Do</label>
        </div>
    </div>
<% } %>

<br>
<% for (const filter of advancedSegmentSelectFilterObjects){ %>
  <div>
    <label class="checkbox-label"><%= filter.title %>: </label><br><br>
    <span class="segmented small">
      <% for (const segmentObject of filter.values) { %>
        <label>
            <input type="radio" name="<%= filter.dbField %>" value="<%= segmentObject.id %>"
            <% if (advancedSegmentSelectFilterValues[filter.dbField] === segmentObject.id) { %>
               checked
            <% } %>>
            <span class="label"><%= segmentObject.title %></span>
        </label>
      <% } %>
    </span>
  </div>
<% } %>

<br>
<p class="distinguished">
  <label class="checkbox-label">
    <input type="checkbox" class="filled-in" name="includeIncompleteAds"
      <% if (includeIncompleteAds) { %>
           checked
      <% } %>>
    <span>Uključi i oglase bez potpunih informacija</span>
  </label>
</p>
