From e394e01e33ac196ede43f84f7882c0b289a3a55c Mon Sep 17 00:00:00 2001 From: Joel Addison Date: Tue, 7 Jan 2020 00:35:50 +1000 Subject: [PATCH] Add badge for preview --- pinaxcon/templates/registrasion/badge.svg | 528 +++++------------- .../templates/registrasion/badge_overlay.svg | 185 +++--- .../templates/regidesk/ci_overview.html | 45 +- 3 files changed, 253 insertions(+), 505 deletions(-) diff --git a/pinaxcon/templates/registrasion/badge.svg b/pinaxcon/templates/registrasion/badge.svg index f781dc7a..78e95a9f 100644 --- a/pinaxcon/templates/registrasion/badge.svg +++ b/pinaxcon/templates/registrasion/badge.svg @@ -10,403 +10,137 @@ {% total_items_purchased 5 as pdns_count %} {% ticket_type as ticket_type %} --> - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - linux.conf.au - Christchurch - NZ | 2019 - LINUX - OF THINGS - - - EMPEROR PENGUIN SPONSORS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - linux.conf.au - Christchurch - NZ | 2019 - LINUX - OF THINGS - - - EMPEROR PENGUIN SPONSORS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + badge_preview + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} - - - {{ ticket_type|upper }} - - - {{ speakers_dinner_count }} - - - {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} - - - {{ penguin_dinner_count }} - - - {{ pdns_count }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.first_name }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.last_name }} - - - {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} - - - {{ ticket_type|upper }} - - - {{ speakers_dinner_count }} - - - {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} - - - {{ penguin_dinner_count }} - - - {{ pdns_count }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.first_name }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.last_name }} - + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.name }} + + + {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} + + + {{ ticket_type|upper }} + + {{ speakers_dinner_count }} + {{ penguin_dinner_count }} + {{ pdns_count }} + + {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} + - diff --git a/pinaxcon/templates/registrasion/badge_overlay.svg b/pinaxcon/templates/registrasion/badge_overlay.svg index fdb4c527..25cc8e69 100644 --- a/pinaxcon/templates/registrasion/badge_overlay.svg +++ b/pinaxcon/templates/registrasion/badge_overlay.svg @@ -10,91 +10,104 @@ {% total_items_purchased 5 as pdns_count %} {% ticket_type as ticket_type %} --> - - - - - - - - - - - - - image/svg+xml - - - - - - - - - {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} - - - {{ ticket_type|upper }} - - - {{ speakers_dinner_count }} - - - {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} - - - {{ penguin_dinner_count }} - - - {{ pdns_count }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.first_name }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.last_name }} - - - {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} - - - {{ ticket_type|upper }} - - - {{ speakers_dinner_count }} - - - {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} - - - {{ penguin_dinner_count }} - - - {{ pdns_count }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.first_name }} - - - {{ user.attendee.attendeeprofilebase.attendeeprofile.last_name }} - + + badge_preview + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.name }} + + + {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} + + + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} + + + {{ ticket_type|upper }} + + {{ speakers_dinner_count }} + {{ penguin_dinner_count }} + {{ pdns_count }} + + {% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %} + - diff --git a/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html b/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html index f0ef7183..d985476c 100644 --- a/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html +++ b/vendor/regidesk/regidesk/templates/regidesk/ci_overview.html @@ -23,35 +23,36 @@
Ticket type
{{ ticket_type }}
- +
Name
{{ user.attendee.attendeeprofilebase.attendeeprofile.name }}
- +
Company
{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}
- +
Free Text 1
{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}
- +
Free Text 2
{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}
- +
Penguin Dinner Tickets
{{ penguin_dinner_count }}
- -
Spearker Dinner Tickets
+ +
Speaker Dinner Tickets
{{ speakers_dinner_count }}
- +
PDNS Tickets
{{ pdns_count }}
- +
Over 18 years
{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}yes{% else %}NO{% endif %}
- -
Username
-
{{ user.username }}
-
+ +
Username
+
{{ user.username }}
+ +

Shirts ordered

{% for shirt in shirts%} @@ -69,10 +70,10 @@
- +
- +

Check In

@@ -91,8 +92,8 @@
- - + +

Badge

@@ -115,8 +116,8 @@
- - + +

Schwag

@@ -133,7 +134,7 @@
- + Return to scanning page - - {% endblock %} \ No newline at end of file + + {% endblock %}