This commit is contained in:
Yamozha 2021-03-13 01:09:12 +02:00
parent b9d91ad7dc
commit ef87f0ec24
4 changed files with 36 additions and 28 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

View File

@ -40,39 +40,47 @@
</style> </style>
{% endblock %} {% endblock %}
{% if request.user.is_superuser %}
{% block content %}
<div class="centered">
{% block content %} {% if image %}
<div class="centered"> <form method="post">
{% csrf_token %}
{% if image %} <div class="choice">
<form method="post"> <img src="/media/{{ image }}" width="500" width="500" >
{% csrf_token %} </div><br>
</div>
<div class="choiceButtons">
<div class="choice"> <input name="isValid" type="submit" value="Valid">
<img src="/media/{{ image }}" width="500" width="500" > <input name="isValid" type="submit" value="Invalid">
</div><br> </form>
</div>
{% else %}
<h1>Congratulations, there is no work left</h1>
<div class="choiceButtons"> <div class="choiceButtons">
<h1 class="emoji">🎉</h1>
<input name="isValid" type="submit" value="Valid"> <h1 class="emoji">🥳</h1>
<input name="isValid" type="submit" value="Invalid"> <h1 class="emoji">🎉</h1>
</form> </div>
{% endif %}
{% else %}
<h1>Congratulations, there is no work left</h1>
<div class="choiceButtons">
<h1 class="emoji">🎉</h1>
<h1 class="emoji">🥳</h1>
<h1 class="emoji">🎉</h1>
</div> </div>
{% endblock %}
{% endif %}
{% else %}
</div> <h1>Unauthorized</h1>
{% endblock %} </div>
{% endif %}
{% endblock %}