Apply review comments

This commit is contained in:
2026-08-23 15:17:03 +02:00
parent 82e71263dd
commit 4a8471983f
3 changed files with 4 additions and 11 deletions
+1 -4
View File
@@ -141,11 +141,8 @@ class UECommentForm(forms.ModelForm):
if ( if (
all( all(
grade == -1 grade == -1
for grade in [ for key, grade in self.cleaned_data.items()
self.cleaned_data[key]
for key in self.cleaned_data
if key.startswith("grade_") if key.startswith("grade_")
]
) )
and not self.cleaned_data["comment"] and not self.cleaned_data["comment"]
): ):
+1 -5
View File
@@ -14,14 +14,10 @@ fieldset.star {
color: gray; color: gray;
} }
.hovered { .unchecked.hovered {
color: #FFD700; color: #FFD700;
} }
.checked.hovered {
color: orange;
}
.removed { .removed {
color: red; color: red;
} }
+1 -1
View File
@@ -1,7 +1,7 @@
<link-once rel="stylesheet" type="text/css" href="{{ statics.css }}" defer></link-once> <link-once rel="stylesheet" type="text/css" href="{{ statics.css }}" defer></link-once>
<fieldset <fieldset
class="star" class="star"
x-data="{ 'value': {% if widget.value.0 %}{{ widget.value.0 }}{% else %}-1{% endif %}, 'hover': -1 }" x-data="{ 'value': {{ widget.value.0 }}, 'hover': -1 }"
@mouseover.outside="hover = -1" @mouseover.outside="hover = -1"
{% include "django/forms/widgets/attrs.html" %} {% include "django/forms/widgets/attrs.html" %}
> >