forked from FrederikBaerentsen/BrickTracker
Separate bricktracker sets from rebrickable sets (dedup), introduce custom checkboxes
This commit is contained in:
@@ -19,12 +19,13 @@
|
||||
<span class="input-group-text">Filter</span>
|
||||
<select id="grid-filter" class="form-select form-select-sm" autocomplete="off">
|
||||
<option value="" selected>All sets</option>
|
||||
<option value="minifigures-collected">Minifigures are collected</option>
|
||||
<option value="set-collected">Set is collected and boxed</option>
|
||||
<option value="set-checked">Set is checked</option>
|
||||
<option value="-has-missing">Set is complete</option>
|
||||
<option value="has-missing">Set has missing pieces</option>
|
||||
<option value="has-missing-instructions">Set has missing instructions</option>
|
||||
{% for checkbox in brickset_checkboxes %}
|
||||
<option value="{{ checkbox.as_dataset() }}">{{ checkbox.fields.name }}</option>
|
||||
<option value="-{{ checkbox.as_dataset() }}">NOT: {{ checkbox.fields.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select id="grid-theme" class="form-select form-select-sm" autocomplete="off">
|
||||
<option value="" selected>All themes</option>
|
||||
@@ -69,6 +70,7 @@
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
new BrickGrid("grid");
|
||||
setup_changers();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
@@ -79,5 +81,5 @@
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='scripts/grid.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='scripts/set.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='scripts/changer.js') }}"></script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user