devicehub-django/lot/templates/list_lots.html

33 lines
634 B
HTML
Raw Normal View History

2024-07-09 15:31:24 +00:00
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<div class="row">
<div class="col">
<h3>{{ subtitle }}</h3>
</div>
</div>
<form method="post">
{% csrf_token %}
2024-07-18 15:21:22 +00:00
{% for tag in lot_tags %}
2024-07-09 15:31:24 +00:00
<div class="row">
2024-07-18 15:21:22 +00:00
<div class="col-lg-3 col-md-4 label ">{{ tag }}</div>
2024-07-09 15:31:24 +00:00
</div>
{% for lot in lots %}
2024-07-18 15:21:22 +00:00
{% if lot.type == tag %}
2024-07-09 15:31:24 +00:00
<div class="row">
<div class="col-lg-3 col-md-4 label "><input type="checkbox" name="lots" value="{{ lot.id }}" /></div>
<div class="col-lg-3 col-md-4 label ">{{ lot.name }}</div>
</div>
{% endif %}
{% endfor %}
{% endfor %}
<button type="submit">Save</button>
</form>
{% endblock %}