Skip to content

Commit

Permalink
Fix checkbox disappear findings (windows resize) (#8557)
Browse files Browse the repository at this point in the history
* Fix checkbox disappear findings (windows resize)

* fix checkboxes disappear in all project

---------

Co-authored-by: Felix Hernandez <[email protected]>
  • Loading branch information
FelixHernandez and felixhernandez15 authored Aug 25, 2023
1 parent c280db5 commit f4ceae6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dojo/templates/dojo/alerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th>{% trans "Title" %}</th>
<th>{% trans "Description" %}</th>
<th>{% trans "Timeframe" %}</th>
<th class="hidden-sm centered" title="{% trans "Select all visible alerts" %}">
<th class="centered" title="{% trans "Select all visible alerts" %}">
<input type="checkbox" name="select_all" id="select_all"/>
</th>
</tr>
Expand All @@ -30,7 +30,7 @@
<td>{%if alert.url %}<a href="{{ alert.url }}">{% endif %}{{ alert.title }}{% if alert.url %}</a>{% endif %}</td>
<td>{{ alert.description|linebreaks }}</td>
<td>{{ alert.created }}</td>
<td class="hidden-sm centered">
<td class="centered">
<input type="checkbox" name="alert_select" value="{{ alert.id }}"
class="select_one {{ alert.source }}"/>
</td>
Expand Down
4 changes: 2 additions & 2 deletions dojo/templates/dojo/endpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3 class="has-filters">
class="tablesorter-bootstrap table table-condensed table-striped table-hover">
<tr>
{% if not product_tab or product_tab and product_tab.product|has_object_permission:"Endpoint_Edit" %}
<th class="hidden-sm centered" title="Select all visible endpoint." id="bulk_edit">
<th class="centered" title="Select all visible endpoint." id="bulk_edit">
<form class="inline-form centered" action="#">
<input type="checkbox" title="Select All" name="select_all" id="select_all"></input>
</form>
Expand All @@ -94,7 +94,7 @@ <h3 class="has-filters">
{% for e in endpoints %}
<tr>
{% if not product_tab or product_tab and product_tab.product|has_object_permission:"Endpoint_Edit" %}
<td class="hidden-sm centered">
<td class="centered">
<form action="#">
<input type="checkbox" title= "Select_{{ e.id }}" name="select_{{ e.id }}"
id="{{ e.id }}" class="select_one {{ e.id }}"></input>
Expand Down
4 changes: 2 additions & 2 deletions dojo/templates/dojo/findings_list_snippet.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ <h3 class="has-filters">
<thead>
<tr>
{% if not product_tab or product_tab and product_tab.product|has_object_permission:"Finding_Edit" %}
<th class="hidden-sm centered" title="Select all visible findings.">
<th class="centered" title="Select all visible findings.">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle"
type="button"
Expand Down Expand Up @@ -383,7 +383,7 @@ <h3 class="has-filters">
{% for finding in findings %}
<tr class="{% if finding.active %}active_finding{% else %}inactive_finding{% endif %}">
{% if not product_tab or product_tab and product_tab.product|has_object_permission:"Finding_Edit" %}
<td class="hidden-sm centered">
<td class="centered">
<form action="#">
<input type="checkbox" name="select_{{ finding.id }}" id="{{ finding.id }}" class="select_one {{ finding.severity }}" aria-label="select-finding"/>
</form>
Expand Down
8 changes: 4 additions & 4 deletions dojo/templates/dojo/snippets/endpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h4>Vulnerable Endpoints / Systems ({{ endpoints|length }})
<table id="vuln_endpoints" class="table-striped table table-hover">
<thead>
{% if finding|has_object_permission:"Finding_Edit" %}
<th class="hidden-sm" title="Select all vulnerable endpoints." style="width: 10%;">
<th class="" title="Select all vulnerable endpoints." style="width: 10%;">
<form class="inline-form" action="#">
<input type="checkbox" label="select_all_vulnerable" name="select_all_vulnerable" id="select_all_vulnerable"/>
</form>
Expand All @@ -150,7 +150,7 @@ <h4>Vulnerable Endpoints / Systems ({{ endpoints|length }})
{% for endpoint in endpoints %}
<tr>
{% if finding|has_object_permission:"Finding_Edit" %}
<td class="hidden-sm">
<td class="">
<form action="#">
<input type="checkbox" label="select_vulnerable_{{ endpoint.id }}" name="select_vulnerable_{{ endpoint.id }}" id="{{ endpoint.id }}"
class="select_one"/>
Expand Down Expand Up @@ -188,7 +188,7 @@ <h4>Mitigated Endpoints / Systems ({{ endpoints|length }})
<table id="remd_endpoints" class="table-striped table table-hover">
<thead>
{% if finding|has_object_permission:"Finding_Edit" %}
<th class="hidden-sm" title="Select all mitigated endpoints." style="width: 10%;">
<th class="" title="Select all mitigated endpoints." style="width: 10%;">
<form class="inline-form" action="#">
<input type="checkbox" label="select_all_mitigated" name="select_all_mitigated" id="select_all_mitigated"/>
</form>
Expand All @@ -204,7 +204,7 @@ <h4>Mitigated Endpoints / Systems ({{ endpoints|length }})
{% for endpoint in endpoints %}
<tr>
{% if finding|has_object_permission:"Finding_Edit" %}
<td class="hidden-sm">
<td class="">
<form action="#">
<input type="checkbox" label="select_mitigated_{{ endpoint.id }}" name="select_mitigated_{{ endpoint.id }}" id="{{ endpoint.id }}"
class="select_one"/>
Expand Down
4 changes: 2 additions & 2 deletions dojo/templates/dojo/view_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ <h4 class="has-filters">
<thead>
<tr>
{% if test|has_object_permission:"Test_Edit" or test|has_object_permission:"Test_Delete" %}
<th class="hidden-sm centered" title="Select all visible findings.">
<th class="centered" title="Select all visible findings.">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle"
type="button"
Expand Down Expand Up @@ -964,7 +964,7 @@ <h4 class="has-filters">
{% for finding in findings %}
<tr class="{% if finding.active %}active_finding{% else %}inactive_finding{% endif %}">
{% if test|has_object_permission:"Test_Edit" or test|has_object_permission:"Test_Delete" %}
<td class="hidden-sm centered">
<td class="centered">
<form action="#">
<input type="checkbox"
name="select_{{ finding.id }}"
Expand Down

0 comments on commit f4ceae6

Please sign in to comment.