This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-02-16 09:24:31 +00:00
|
|
|
{% extends 'generic/form.html' %}
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block above_form %}
|
|
|
|
<h1>{% blocktrans with policy=policy %}Test policy {{ policy }}{% endblocktrans %}</h1>
|
|
|
|
{% endblock %}
|
2019-03-10 14:36:49 +00:00
|
|
|
|
|
|
|
{% block action %}
|
|
|
|
{% trans 'Test' %}
|
|
|
|
{% endblock %}
|
2019-03-10 14:46:49 +00:00
|
|
|
|
|
|
|
{% block beneath_form %}
|
2020-02-23 21:49:56 +00:00
|
|
|
<div class="pf-c-form__group pf-m-action" style="display: none;" id="loading">
|
|
|
|
<div class="pf-c-form__horizontal-group">
|
|
|
|
<span class="pf-c-spinner" role="progressbar" aria-valuetext="Loading...">
|
|
|
|
<span class="pf-c-spinner__clipper"></span>
|
|
|
|
<span class="pf-c-spinner__lead-ball"></span>
|
|
|
|
<span class="pf-c-spinner__tail-ball"></span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-10 14:46:49 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ block.super }}
|
|
|
|
<script>
|
2020-02-23 21:49:56 +00:00
|
|
|
document.querySelector("form").addEventListener("submit", (e) => {
|
|
|
|
document.getElementById("loading").removeAttribute("style");
|
|
|
|
});
|
2019-03-10 14:46:49 +00:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|