Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Nov 12, 2024
1 parent 93824aa commit 708da09
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions events/migrations/0036_waiting_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('events', '0035_merge_20241008_1413'),
("events", "0035_merge_20241008_1413"),
]

operations = [
migrations.AddField(
model_name='participant',
name='in_waiting_list',
model_name="participant",
name="in_waiting_list",
field=models.BooleanField(default=False),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
class Migration(migrations.Migration):

dependencies = [
('events', '0036_waiting_list'),
("events", "0036_waiting_list"),
]

operations = [
migrations.AddField(
model_name='event',
name='allow_waitlist_signup_after_signup_closed',
field=models.BooleanField(default=False, verbose_name='Allow people to join waiting list after the event sign up is closed'),
model_name="event",
name="allow_waitlist_signup_after_signup_closed",
field=models.BooleanField(
default=False,
verbose_name="Allow people to join waiting list after the event sign up is closed",
),
),
]
4 changes: 2 additions & 2 deletions templates/events/event_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td>

{% if not event.open_for_signup and event.allow_waitlist_signup_after_signup_closed %}
<span class="label label-warning">Join Waiting List</span>
<span class="label label-warning">Wait List</span>

{% elif not event.open_for_signup and not event.allow_waitlist_signup_after_signup_closed %}
<span class="label label-default">Closed</span>
Expand All @@ -40,7 +40,7 @@
<span class="label label-danger">Fully Booked</span>

{% elif event.is_full and event.fee_s <= 0 %}
<span class="label label-warning">Join Waiting List</span>
<span class="label label-warning">Wait List</span>

{% else %}
<span class="label label-success">Open</span>
Expand Down

0 comments on commit 708da09

Please sign in to comment.