Skip to content

Commit

Permalink
remove unneeded template parts
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Sep 8, 2024
1 parent efc99a1 commit ad874bf
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions validity/templates/validity/scripts/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,12 @@ <h2 class="page-title my-1 mt-3">Script Execution Result</h2>
</div>
{% endblock header %}

{% block content-wrapper %}
{% block content %}
<div class="tab-pane show active" id="results" role="tabpanel" aria-labelledby="results-tab">

<form method="post" class="form form-horizontal">
{% csrf_token %}
{# "Select all" form #}
{% if table.paginator.num_pages > 1 %}
<div id="select-all-box" class="d-none card d-print-none">
<div class="form col-md-12">
<div class="card-body">
<div class="form-check">
<input type="checkbox" id="select-all" name="_all" class="form-check-input" />
<label for="select-all" class="form-check-label">
Select <strong>all {{ table.rows|length }} {{ table.data.verbose_name_plural }}</strong> matching query
</label>
</div>
</div>
</div>
</div>
{% endif %}

<div class="form form-horizontal">
{% csrf_token %}
<input type="hidden" name="return_url" value="{% if return_url %}{{ return_url }}{% else %}{{ request.path }}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}{% endif %}" />

<div class="col col-md-12"{% if not job.completed %} hx-get="." hx-trigger="load delay:0.5s, every 5s"{% endif %}>
{% block htmx-template %}
{% include 'validity/scripts/result_htmx.html' %}
{% endblock htmx-template %}
</div>

</div>
</form>
</div>
<div class="col col-md-12"{% if not job.completed %} hx-get="." hx-trigger="load delay:0.5s, every 5s"{% endif %}>
{% block htmx-template %}
{% include 'validity/scripts/result_htmx.html' %}
{% endblock htmx-template %}
</div>
{% endblock content %}
{% endblock content-wrapper %}

0 comments on commit ad874bf

Please sign in to comment.