Skip to content

Commit cfdb46d

Browse files
committed
Added changes for 24 submit form
1 parent 4a16259 commit cfdb46d

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

marathon/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Meta:
1919

2020

2121
class SubmissionForm(forms.ModelForm):
22-
gdpr = forms.BooleanField(required=True, label=_('Hyväksyn henkilötietojeni käsittelyn tietosuojaselosteen mukaisesti'))
22+
gdpr = forms.BooleanField(required=True, label=_('Hyväksyn henkilötietojeni käsittelyn tietosuojaselosteen mukaisesti ja sitoudun noudattamaan turvallisen tilan periaatteita.'))
2323

2424
def clean_estimate(self):
2525

static/genericSideViuhti/css/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ h1, h2, h3, h4, h5, h6{
4646
max-width: 74%;
4747
}
4848
}
49+
#player-form, #game-form{
50+
input, textarea{
51+
background-color: $viuhti-green;
52+
border-color: $viuhti-dark;
53+
color: $viuhti-dark;
54+
}
55+
input::placeholder, textarea::placeholder{
56+
color: #748f94;
57+
opacity: 1;
58+
}
59+
.form-text{
60+
color: #0f2225 !important;
61+
}
62+
}
63+
4964

5065
.side-page-layout {
5166
display: flex;

templates/marathon/plugins/submission_form.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
<!-- Player forms -->
1010
<div id="player-form">
1111
{% bootstrap_field player_form.nickname placeholder="Nimimerkki pelaajalistaukseen" layout="horizontal" form_group_class="mb-1" %}
12-
{% bootstrap_field player_form.discord placeholder="Nick#1337" layout="horizontal" form_group_class="mb-1" %}
12+
{% bootstrap_field player_form.discord placeholder="Nick" layout="horizontal" form_group_class="mb-1" %}
1313
{% bootstrap_field player_form.gmail placeholder="etu.suku@gmail.com" layout="horizontal" form_group_class="mb-1" %}
1414
{% bootstrap_field player_form.twitch placeholder="nimi_merkki" layout="horizontal" form_group_class="mb-1" %}
15+
{% comment %}
1516
{% bootstrap_field player_form.allergies placeholder="Tapahtuman aikaista ruokahuoltoa varten" layout="horizontal" form_group_class="mb-1" %}
17+
{% endcomment %}
1618
</div>
1719
<!-- Submission form -->
1820
<div id="game-form" class="mt-3">

0 commit comments

Comments
 (0)