mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-26 07:09:16 +00:00
Apply review comments
This commit is contained in:
+2
-5
@@ -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]
|
if key.startswith("grade_")
|
||||||
for key in self.cleaned_data
|
|
||||||
if key.startswith("grade_")
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
and not self.cleaned_data["comment"]
|
and not self.cleaned_data["comment"]
|
||||||
):
|
):
|
||||||
|
|||||||
@@ -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,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" %}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user