diff --git a/vendor/regidesk/regidesk/models.py b/vendor/regidesk/regidesk/models.py index d36bb301..35dadca6 100644 --- a/vendor/regidesk/regidesk/models.py +++ b/vendor/regidesk/regidesk/models.py @@ -98,6 +98,10 @@ class CheckIn(models.Model): self.badge_printed = True self.save() + def unset_badge(self): + self.badge_printed = False + self.save() + def mark_schwag_given(self): self.schwag_given = True self.save() diff --git a/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html b/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html index 277452fa..9b679265 100644 --- a/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html +++ b/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html @@ -72,11 +72,15 @@
Status
{% if check_in.badge_printed %}Marked{% else %}Not marked{% endif %} as printed
-
+ Show Badge
+
+ + +
diff --git a/vendor/regidesk/regidesk/views.py b/vendor/regidesk/regidesk/views.py index 62f1ab96..d134da42 100644 --- a/vendor/regidesk/regidesk/views.py +++ b/vendor/regidesk/regidesk/views.py @@ -312,6 +312,8 @@ def check_in_overview(request, access_code): check_in.bulk_mark_given() elif 'exception' in request.POST: check_in.set_exception(request.POST['exception']) + elif 'unbadge' in request.POST: + check_in.unset_badge() return redirect(request.path) ctx = { 'check_in': check_in,