8 changed files with 75 additions and 52 deletions
@ -1,33 +1,14 @@ |
|||||||
{% extends 'default_template.html' %}{% block 'contenu' %} |
{% extends 'default_template.html' %}{% block 'contenu' %} |
||||||
<main role="main" class="inner cover">{{zone.description |safe}} |
<main role="main" class="inner cover">{{zone.description |safe}} |
||||||
</main>{% if zone.description %} |
</main>{% if zone.description %} |
||||||
<div class="inner cover"> |
<footer class="masthead mt-auto"> |
||||||
|
<div class="inner cover"> |
||||||
|
<div class="pb-2">Une fois trouvé, saisissez votre code ci-dessous :</div> |
||||||
<form action="{% url 'app:displayZone' zone.code %}" method="POST">{% csrf_token %} |
<form action="{% url 'app:displayZone' zone.code %}" method="POST">{% csrf_token %} |
||||||
<div class="btn-group-vertical ml-4 mt-4 " role="group" aria-label="Basic example"> |
{{ form }} |
||||||
<div class="btn-group"> |
<input type="submit" value="OK"> |
||||||
<input class="text-center form-control-lg mb-2" name="mdp" id="mdp" min="1000" max="9999" required type="number"> |
|
||||||
</div> |
|
||||||
<div class="btn-group"> |
|
||||||
<button type="button" class="btn btn-outline-light py-3 w-100" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '1';">1</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '2';">2</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '3';">3</button> |
|
||||||
</div> |
|
||||||
<div class="btn-group"> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '4';">4</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '5';">5</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '6';">6</button> |
|
||||||
</div> |
|
||||||
<div class="btn-group"> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '7';">7</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '8';">8</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '9';">9</button> |
|
||||||
</div> |
|
||||||
<div class="btn-group"> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value.slice(0, -1);"><</button> |
|
||||||
<button type="button" class="btn btn-outline-light py-3" onclick="document.getElementById('mdp').value=document.getElementById('mdp').value + '0';">0</button> |
|
||||||
<button type="submit" class="btn btn-primary py-3">Go</button> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</form> |
</form> |
||||||
</div>{% endif %} |
</div> |
||||||
|
</footer> |
||||||
|
{% endif %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
Loading…
Reference in new issue