2024-07-31 17:24:22 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h3>{{ object.id }}</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<ul class="nav nav-tabs nav-tabs-bordered">
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#device">Devices</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#tag">Tag</button>
|
2024-08-01 15:33:23 +00:00
|
|
|
<li class="nav-items">
|
|
|
|
<a href="{% url 'evidence:download' object.uuid %}" class="nav-link">Download File</a>
|
|
|
|
</li>
|
2024-07-31 17:24:22 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-content pt-2">
|
|
|
|
|
|
|
|
<div class="tab-pane fade show active" id="device">
|
|
|
|
<h5 class="card-title">List of chids</h5>
|
|
|
|
<div class="list-group col-6">
|
|
|
|
{% for snap in object.annotations %}
|
|
|
|
{% if snap.type == 0 %}
|
|
|
|
<div class="list-group-item">
|
|
|
|
<div class="d-flex w-100 justify-content-between">
|
|
|
|
<h5 class="mb-1"></h5>
|
|
|
|
<small class="text-muted">
|
|
|
|
{{ snap.created }}
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<p class="mb-1">
|
|
|
|
{{ snap.key }}<br />
|
|
|
|
</p>
|
|
|
|
<small class="text-muted">
|
|
|
|
<a href="{% url 'device:details' snap.value %}">{{ snap.value }}</a>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-01 12:33:09 +00:00
|
|
|
<div class="tab-pane fade" id="tag">
|
|
|
|
{% load django_bootstrap5 %}
|
|
|
|
<div class="list-group col-6">
|
|
|
|
<form role="form" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if form.errors %}
|
|
|
|
<div class="alert alert-danger alert-icon alert-icon-border alert-dismissible" role="alert">
|
|
|
|
<div class="icon"><span class="mdi mdi-close-circle-o"></span></div>
|
|
|
|
<div class="message">
|
|
|
|
{% for field, error in form.errors.items %}
|
|
|
|
{{ error }}<br />
|
|
|
|
{% endfor %}
|
|
|
|
<button class="btn-close" type="button" data-dismiss="alert" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% bootstrap_form form %}
|
|
|
|
<div class="container">
|
2024-10-03 10:49:07 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<a class="btn btn-grey" href="">{% translate "Cancel" %}</a>
|
|
|
|
<input class="btn btn-green-admin" type="submit" name="submit" value="{% translate 'Save' %}" />
|
|
|
|
</div>
|
|
|
|
{% if form.tag.value %}
|
|
|
|
<div class="col-1">
|
|
|
|
<a class="btn btn-yellow" href="{% url 'evidence:delete_annotation' form.pk %}">{% translate "Delete" %}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2024-08-01 12:33:09 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-31 17:24:22 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|