2023-12-16 01:05:05 +01:00
|
|
|
{% extends "pretalx_musicrate/submission_base.html" %}
|
|
|
|
{% load compress %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
{% block submission_header %}
|
|
|
|
{% compress css %}
|
2023-12-17 03:54:04 +01:00
|
|
|
<link rel="stylesheet" type="text/x-scss" href="{% static "pretalx_musicrate/rating.scss" %}">
|
2023-12-16 01:05:05 +01:00
|
|
|
{% endcompress %}
|
|
|
|
{% compress js %}
|
|
|
|
<script defer src="{% static "pretalx_musicrate/rating.js" %}"></script>
|
|
|
|
{% endcompress %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block submission_content %}
|
|
|
|
<form method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
<div class="rating-container">
|
|
|
|
<div class="rating" style="--num-choices: {{ form.rating | length }}">
|
|
|
|
{% for radio in form.rating %}
|
|
|
|
{{ radio.tag }}
|
|
|
|
<label class="rating-point" for="{{ radio.id_for_label }}"></label>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="legend">
|
|
|
|
<span>sehr schlecht</span>
|
|
|
|
<span>sehr neutral</span>
|
|
|
|
<span>sehr gut</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="submit-group">
|
|
|
|
<span>
|
|
|
|
<button class="btn btn-danger btn-lg" id="reset_rating" type="reset">Zurücksetzen</button>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<button class="btn btn-success btn-lg" id="submit_rating" type="submit">Speichern</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|