Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Hjelp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Hjelp
Commits
ee09af8b
Commit
ee09af8b
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch '10-rating-field-defaults-to-1-star' into 'master'
Resolve "Rating field defaults to 1 star" Closes
#10
See merge request
!34
parents
a70347aa
12e686ba
No related branches found
No related tags found
1 merge request
!34
Resolve "Rating field defaults to 1 star"
Pipeline
#2915
passed
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/hjelp/forms.py
+4
-4
4 additions, 4 deletions
aleksis/apps/hjelp/forms.py
aleksis/apps/hjelp/templates/hjelp/feedback.html
+17
-5
17 additions, 5 deletions
aleksis/apps/hjelp/templates/hjelp/feedback.html
with
21 additions
and
9 deletions
aleksis/apps/hjelp/forms.py
+
4
−
4
View file @
ee09af8b
...
...
@@ -70,28 +70,28 @@ class FeedbackForm(forms.Form):
design_rating
=
forms
.
ChoiceField
(
label
=
_
(
"
Design of the user interface
"
),
choices
=
ratings
,
widget
=
forms
.
RadioSelect
(
attrs
=
{
"
checked
"
:
"
checked
"
}
),
widget
=
forms
.
RadioSelect
(),
required
=
True
,
)
performance_rating
=
forms
.
ChoiceField
(
label
=
_
(
"
Speed
"
),
choices
=
ratings
,
widget
=
forms
.
RadioSelect
(
attrs
=
{
"
checked
"
:
"
checked
"
,
"
class
"
:
"
required
"
}
),
widget
=
forms
.
RadioSelect
(),
required
=
True
,
)
usability_rating
=
forms
.
ChoiceField
(
label
=
_
(
"
User friendliness
"
),
choices
=
ratings
,
widget
=
forms
.
RadioSelect
(
attrs
=
{
"
checked
"
:
"
checked
"
}
),
widget
=
forms
.
RadioSelect
(),
required
=
True
,
)
overall_rating
=
forms
.
ChoiceField
(
label
=
_
(
"
AlekSIS in general
"
),
choices
=
ratings
,
widget
=
forms
.
RadioSelect
(
attrs
=
{
"
checked
"
:
"
checked
"
}
),
widget
=
forms
.
RadioSelect
(),
required
=
True
,
)
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/hjelp/templates/hjelp/feedback.html
+
17
−
5
View file @
ee09af8b
...
...
@@ -11,12 +11,15 @@
{% endblocktrans %}
</p>
<form
method=
"post"
>
<form
method=
"post"
id=
"feedback-form"
novalidate
>
{% csrf_token %}
<ul
class=
"collection"
>
<li
class=
"collection-item"
>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.design_rating.label }}
<span
class=
"red-text"
>
*
</span></div>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.design_rating.label }}
<span
class=
"red-text"
>
*
</span>
<span
class=
"red-text"
>
{{ form.design_rating.errors }}
</span>
</div>
<div
class=
"rating col s12 l6"
>
{% for radio in form.design_rating %}
{{ radio.tag }}
...
...
@@ -27,7 +30,10 @@
<div
class=
"hide-on-large-only"
>
</div>
</li>
<li
class=
"collection-item"
>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.performance_rating.label }}
<span
class=
"red-text"
>
*
</span></div>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.performance_rating.label }}
<span
class=
"red-text"
>
*
</span>
<span
class=
"red-text"
>
{{ form.performance_rating.errors }}
</span>
</div>
<div
class=
"rating col s12 l6"
>
{% for radio in form.performance_rating %}
{{ radio.tag }}
...
...
@@ -38,7 +44,10 @@
<div
class=
"hide-on-large-only"
>
</div>
</li>
<li
class=
"collection-item"
>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.usability_rating.label }}
<span
class=
"red-text"
>
*
</span></div>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.usability_rating.label }}
<span
class=
"red-text"
>
*
</span>
<span
class=
"red-text"
>
{{ form.usability_rating.errors }}
</span>
</div>
<div
class=
"rating col s12 l6"
>
{% for radio in form.usability_rating %}
{{ radio.tag }}
...
...
@@ -49,7 +58,10 @@
<div
class=
"hide-on-large-only"
>
</div>
</li>
<li
class=
"collection-item"
>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.overall_rating.label }}
<span
class=
"red-text"
>
*
</span></div>
<div
class=
"row"
><div
class=
"col s12 l6"
>
{{ form.overall_rating.label }}
<span
class=
"red-text"
>
*
</span>
<span
class=
"red-text"
>
{{ form.overall_rating.errors }}
</span>
</div>
<div
class=
"rating col s12 l6"
>
{% for radio in form.overall_rating %}
{{ radio.tag }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment