10 Commits

Author SHA1 Message Date
d43584ef03 Merge pull request 'Test django 5 and Python 3.13' (#92) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 5s
Run tests / Execute tox to run the test suite (push) Successful in 4m51s
Reviewed-on: #92
2025-04-11 10:36:26 +02:00
3fd8dfa9eb Merge pull request 'Test new stuff' (#89) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 4s
Run tests / Execute tox to run the test suite (push) Successful in 3m38s
Reviewed-on: #89
2024-09-19 15:49:23 +02:00
bdbb4622c1 Merge pull request 'Test new stuff from master' (#86) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 3s
Run tests / Execute tox to run the test suite (push) Successful in 3m24s
Reviewed-on: #86
2024-09-16 15:03:35 +02:00
3c2730f571 Merge pull request 'dav_registration: made the new JSON-View export a dict instead of a list' (#84) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 4s
Run tests / Execute tox to run the test suite (push) Successful in 3m39s
Reviewed-on: #84
2024-09-16 09:48:56 +02:00
47f06c52db Merge pull request 'master' (#81) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 4s
Run tests / Execute tox to run the test suite (push) Successful in 3m50s
Reviewed-on: #81
2024-09-12 15:29:19 +02:00
59a79720e3 Merge pull request 'Test master stuff on stage' (#79) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 4s
Run tests / Execute tox to run the test suite (push) Successful in 3m21s
Reviewed-on: #79
2024-09-12 08:55:38 +02:00
5016ec5d0e Merge pull request 'Test new stuff from master on stage' (#77) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 3s
Run tests / Execute tox to run the test suite (push) Successful in 3m21s
Reviewed-on: #77
2024-09-10 16:19:29 +02:00
0e0d302f0c Merge branch 'master' into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 3s
Run tests / Execute tox to run the test suite (push) Successful in 3m23s
2024-09-10 15:03:54 +02:00
fab87ffa21 Merge pull request 'test newest stuff from master on stage' (#75) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 3s
Run tests / Execute tox to run the test suite (push) Successful in 3m9s
Reviewed-on: #75
2024-09-10 09:42:52 +02:00
e4da2738e0 Merge pull request 'deploy latest stuff on stage' (#73) from master into stage
All checks were successful
Deploy into stage environment / Deploy into stage environment (push) Successful in 3s
Run tests / Execute tox to run the test suite (push) Successful in 2m21s
Reviewed-on: #73
2024-08-02 15:59:09 +02:00
6 changed files with 2 additions and 40 deletions

View File

@@ -76,7 +76,6 @@ LEVEL_CHOICES = ChoiceSet([
('beginner', _(u'Anfänger')),
('advanced', _(u'Fortgeschrittene')),
('family', _(u'Familien')),
('senior', _(u'Senioren'))
])
MEALS_CHOICES = ChoiceSet([

View File

@@ -56,10 +56,6 @@ class AbstractParticipant(models.Model):
privacy_policy_accepted = models.BooleanField(default=False,
verbose_name=_('Einwilligung zur Datenspeicherung'))
participation_conditions_accepted = models.BooleanField(default=False,
verbose_name=_('Einwilligung der Teilnahmebedingungen'))
paid = models.BooleanField('Teilnehmerbeitrag bezahlt', default=False)
purge_at = models.DateTimeField()

View File

@@ -51,7 +51,7 @@ class RegistrationForm(forms.ModelForm):
' Das finden wir gut,'
' aber bitte melde dich besser mal per E-Mail bei uns.'),
params={'max_age': max_age},
code='too_old',
code='to_old',
)
return val
@@ -79,16 +79,6 @@ class RegistrationForm(forms.ModelForm):
)
return val
def clean_participation_conditions_accepted(self):
val = self.cleaned_data.get('participation_conditions_accepted')
if not val:
raise forms.ValidationError(
ugettext('Um an dieser Veranstaltung teilnehmen zu können,'
' musst du die Teilnahmebedingungen akzeptieren.'),
code='participation_conditions_not_accepted',
)
return val
def clean(self):
super().clean()
dav_member = self.cleaned_data.get('dav_member')

View File

@@ -84,8 +84,6 @@ class Registration(models.Model):
verbose_name=_('Einwilligung zur Datenspeicherung'))
purge_at = models.DateTimeField(_('Zeitpunkt der Datenlöschung'))
participation_conditions_accepted = models.BooleanField(default=False, verbose_name=_('Einwilligung der Teilnahmebedingungen'))
answered_obsolete = models.BooleanField(default=False, verbose_name=_('Durch Tourleitung beantwortet'))
def approx_age(self):

View File

@@ -9,7 +9,6 @@
<button id="btn-filter-All" type="button" class="btn btn-xs btn-green">Alle Touren</button>
<button id="btn-filter-B" type="button" class="btn btn-xs btn-sport-B btn-white">Bergsteigen</button>
<button id="btn-filter-family" type="button" class="btn btn-xs btn-level-family btn-white">Familien</button>
<button id="btn-filter-senior" type="button" class="btn btn-xs btn-level-senior btn-white">Senioren</button>
<button id="btn-filter-K" type="button" class="btn btn-xs btn-sport-K btn-white">Klettern</button>
<button id="btn-filter-M" type="button" class="btn btn-xs btn-sport-M btn-white">Mountainbike</button>
<button id="btn-filter-S" type="button" class="btn btn-xs btn-sport-S btn-white">Ski</button>
@@ -128,7 +127,7 @@
<script type="text/javascript">
function filter_table(table, filter) {
const sport_choices = ["B", "K", "M", "S", "W"];
const level_choices = ["beginner", "advanced", "family", "senior"];
const level_choices = ["beginner", "advanced", "family"];
var choices = sport_choices.concat(level_choices);
var filter_cleaned = [];
var filter_expr;
@@ -201,9 +200,6 @@
$("#btn-filter-family").on("click", function() {
toggle_filter(table, filter, "family");
} );
$("#btn-filter-senior").on("click", function() {
toggle_filter(table, filter, "senior");
} );
$("#searchfield").on( "keyup change", function() {
table.column(0).search( this.value ).draw();
} );

View File

@@ -182,23 +182,6 @@
Der/die Tourenleiter/in wird dir also persönlich per E-Mail zu- oder absagen.
</small></p>
</div>
{% if form.participation_conditions_accepted.errors %}
<div class="has-error">
{% endif %}
<div class="checkbox">
<label>
<input type="checkbox" name="participation_conditions_accepted" {% if form.participation_conditions_accepted.value %}checked="checked"{% endif %}>
{% trans 'Ich habe den oben erläuterten Teilnahmevorbehalt und die <a href="https://www.alpenverein-karlsruhe.de/programm/teilnahmebedingungen" target="_blank" rel="noreferrer noopener">Teilnahmebedingungen</a> gelesen und akzeptiert.' %}
</label>
</div>
{% if form.participation_conditions_accepted.errors %}
<div class="help-block">
{% for error in form.participation_conditions_accepted.errors %}
<p>{{ error }}</p>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
<div class="row">&nbsp;</div>