Fix bulk action
Bulk action marks printed + schwag, but as print is automated and happens after checkin is flagged, we should only set checkin and schwag and print will happen.
This commit is contained in:
parent
5a085535c0
commit
e41da66cac
2 changed files with 5 additions and 4 deletions
2
vendor/regidesk/regidesk/models.py
vendored
2
vendor/regidesk/regidesk/models.py
vendored
|
@ -107,7 +107,7 @@ class CheckIn(models.Model):
|
|||
self.save()
|
||||
|
||||
def bulk_mark_given(self):
|
||||
self.badge_printed = True
|
||||
self.checked_in_bool = True
|
||||
self.schwag_given = True
|
||||
self.save()
|
||||
|
||||
|
|
|
@ -108,15 +108,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel {% if check_in.badge_printed or check_in.schwag_given %}panel-danger{% else %}panel-success{% endif %}">
|
||||
<div class="panel {% if check_in.checked_in_bool or check_in.schwag_given %}panel-danger{% else %}panel-success{% endif %}">
|
||||
<div class="panel-heading">Bulk actions</div>
|
||||
<div class="panel-body">
|
||||
<p>Mark attendee as checked in and schwag given</p>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Status</dt><dd>{% if check_in.badge_printed or check_in.schwag_given %}One of the items in bulk action is marked as given already{% else %}Both items are marked as unrecived{% endif %}</dd>
|
||||
<dt>Status</dt><dd>{% if check_in.checked_in_bool or check_in.schwag_given %}One of the items in bulk action is marked as given already{% else %}Both items are marked as unrecived{% endif %}</dd>
|
||||
</dl>
|
||||
<form method="post">
|
||||
<input type="checkbox" name="bulk" value="bulk" checked hidden>
|
||||
<input class="btn {% if check_in.badge_printed or check_in.schwag_given %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
|
||||
<input class="btn {% if check_in.checked_in_bool or check_in.schwag_given %}btn-danger{% else %}btn-success{% endif %} pull-right" type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue