mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [investigation] fix create investigation
This commit is contained in:
parent
7ed7b4c63e
commit
79fa5dc30b
2 changed files with 37 additions and 33 deletions
|
@ -973,8 +973,8 @@ def is_enabled_tag(tag, enabled_namespace=None):
|
||||||
return is_enabled_galaxy_tag(tag, enabled_galaxies=enabled_namespace)
|
return is_enabled_galaxy_tag(tag, enabled_galaxies=enabled_namespace)
|
||||||
|
|
||||||
def are_enabled_tags(tags):
|
def are_enabled_tags(tags):
|
||||||
enabled_taxonomies = get_active_taxonomies(r_set=True)
|
enabled_taxonomies = get_active_taxonomies()
|
||||||
enabled_galaxies = get_active_galaxies(r_set=True)
|
enabled_galaxies = get_active_galaxies()
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
if is_taxonomie_tag(tag):
|
if is_taxonomie_tag(tag):
|
||||||
res = is_enabled_taxonomie_tag(tag, enabled_taxonomies=enabled_taxonomies)
|
res = is_enabled_taxonomie_tag(tag, enabled_taxonomies=enabled_taxonomies)
|
||||||
|
|
|
@ -35,38 +35,42 @@
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<table id="table_investigation" class="table table-striped border-primary">
|
<table id="table_investigation" class="table table-striped border-primary">
|
||||||
<thead class="bg-dark text-white">
|
<thead class="bg-dark text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>last modified</th>
|
<th>last modified</th>
|
||||||
<td>Info</td>
|
<td>Info</td>
|
||||||
<th>Nb Objects</th>
|
<th>Nb Objects</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody style="font-size: 15px;">
|
<tbody style="font-size: 15px;">
|
||||||
{% for dict_investigation in investigations %}
|
{% for dict_investigation in investigations %}
|
||||||
<tr class="border-color: blue;">
|
<tr class="border-color: blue;">
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url_for('investigations_b.show_investigation') }}?uuid={{ dict_investigation['uuid'] }}">
|
<a href="{{ url_for('investigations_b.show_investigation') }}?uuid={{ dict_investigation['uuid'] }}">
|
||||||
{{ dict_investigation['info']}}
|
{{ dict_investigation['info']}}
|
||||||
<div>
|
<div>
|
||||||
{% for tag in dict_investigation['tags'] %}
|
{% for tag in dict_investigation['tags'] %}
|
||||||
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }} pull-left">{{ tag }}</span>
|
<span class="badge badge-{{ bootstrap_label[loop.index0 % 5] }} pull-left">{{ tag }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ dict_investigation['date']}}</td>
|
<td>{{ dict_investigation['date']}}</td>
|
||||||
<td>{{ dict_investigation['last_change']}}</td>
|
<td>{{ dict_investigation['last_change']}}</td>
|
||||||
<td>{{ dict_investigation['info']}}</td>
|
<td>{{ dict_investigation['info']}}</td>
|
||||||
<td>{{ dict_investigation['nb_objects']}}</td>
|
<td>{{ dict_investigation['nb_objects']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
<a class="btn btn-primary mt-2" href="{{ url_for('investigations_b.add_investigation') }}">
|
||||||
|
<i class="fas fa-plus"></i> Create Investigation
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue