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