symposion_app/pinaxcon/templates/registrasion/badge_overlay.svg
2020-01-12 23:49:06 +10:00

73 lines
5.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
{% load registrasion_tags %}
{% load lca2018_tags %}
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
{% total_items_purchased 3 as penguin_dinner_count %}
{% total_items_purchased 4 as speakers_dinner_count %}
{% total_items_purchased 5 as pdns_count %}
{% ticket_type as ticket_type %}
-->
<svg xmlns="http://www.w3.org/2000/svg" width="210mm" height="148mm" viewBox="0 0 595.28 419.53">
<title>badge_double_overlay</title>
<g id="Text_L" data-name="Text L">
<text transform="translate(148.75 148.07)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.name|length > 15 %}22{% else %}18{% endif %}" fill="#000" font-family="Montserrat-Light, Montserrat" font-weight="300" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.name }}</tspan>
</text>
<text transform="translate(148.75 180.95)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}</tspan>
</text>
<text transform="translate(148.75 212.18)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|length > 40 %}8{% else %}10{% endif %}" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</tspan>
</text>
<text transform="translate(148.75 231.37)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|length > 40 %}8{% else %}10{% endif %}" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}</tspan>
</text>
<text transform="translate(74.56 270.09)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ speakers_dinner_count }}
</text>
<text transform="translate(172.98 270.08)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ penguin_dinner_count }}
</text>
<text transform="translate(265.47 270.08)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ pdns_count }}
</text>
<text transform="translate(172.98 310.93)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %}
</text>
<text transform="translate(148.75 340.28)" font-size="16" fill="#000" font-family="Montserrat-Light, Montserrat" font-weight="300" text-anchor="middle">
<tspan>{{ ticket_type|upper }}</tspan>
</text>
</g>
<g id="Text_R" data-name="Text R">
<text transform="translate(446.25 148.07)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.name|length > 15 %}22{% else %}18{% endif %}" fill="#000" font-family="Montserrat-Light, Montserrat" font-weight="300" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.name }}</tspan>
</text>
<text transform="translate(446.25 180.95)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}</tspan>
</text>
<text transform="translate(446.25 212.18)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|length > 40 %}8{% else %}10{% endif %}" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</tspan>
</text>
<text transform="translate(446.25 231.37)" font-size="{% if user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|length > 40 %}8{% else %}10{% endif %}" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro" text-anchor="middle">
<tspan>{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}</tspan>
</text>
<text transform="translate(372.19 270.09)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ speakers_dinner_count }}
</text>
<text transform="translate(470.62 270.08)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ penguin_dinner_count }}
</text>
<text transform="translate(563.11 270.08)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{{ pdns_count }}
</text>
<text transform="translate(470.62 310.93)" font-size="14" fill="#000" font-family="SourceSansPro-Regular, Source Sans Pro">
{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}18+{% endif %}
</text>
<text transform="translate(446.25 340.28)" font-size="16" fill="#000" font-family="Montserrat-Light, Montserrat" font-weight="300" text-anchor="middle">
<tspan>{{ ticket_type|upper }}</tspan>
</text>
</g>
</svg>