Badge print fixes

This commit is contained in:
Tobias 2019-01-17 14:24:43 +13:00
parent fd397068c8
commit 50c2f76d52
2 changed files with 5 additions and 5 deletions

View file

@ -39,10 +39,10 @@
<tspan x="63.592064 67.696709 71.594971 75.140808 79.058128 83.090378 87.033722 90.855789 94.305115 98.148766 102.2896 106.42982 110.32552 114.4651 118.60529 122.77724 126.91492 130.83919 134.60918 138.64143 142.72893 146.85008 150.8963 154.92854" y="78.918243" stroke-width=".35278">{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}</tspan>
</text>
<text transform="matrix(.70476 0 0 .70946 .00070011 86.291)" x="63.592064" y="96.918243" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="63.592064 67.696709 71.594971 75.140808 79.058128 83.090378 87.033722 90.855789 94.305115 98.148766 102.2896 106.42982 110.32552 114.4651 118.60529 122.77724 126.91492 130.83919 134.60918 138.64143 142.72893 146.85008 150.8963 154.92854" y="96.918243" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</tspan>
<tspan x="63.592064 67.696709 71.594971 75.140808 79.058128 83.090378 87.033722 90.855789 94.305115 98.148766 102.2896 106.42982 110.32552 114.4651 118.60529 122.77724 126.91492 130.83919 134.60918 138.64143 142.72893 146.85008 150.8963 154.92854" y="96.918243" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }}</tspan>
</text>
<text transform="matrix(.70476 0 0 .70946 .00070011 86.291)" x="63.592064" y="103.918243" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="63.592064 67.696709 71.594971 75.140808 79.058128 83.090378 87.033722 90.855789 94.305115 98.148766 102.2896 106.42982 110.32552 114.4651 118.60529 122.77724 126.91492 130.83919 134.60918 138.64143 142.72893 146.85008 150.8963 154.92854" y="103.918243" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}</tspan>
<tspan x="63.592064 67.696709 71.594971 75.140808 79.058128 83.090378 87.033722 90.855789 94.305115 98.148766 102.2896 106.42982 110.32552 114.4651 118.60529 122.77724 126.91492 130.83919 134.60918 138.64143 142.72893 146.85008 150.8963 154.92854" y="103.918243" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }}</tspan>
</text>
<text transform="matrix(.70476 0 0 .70946 .00070011 86.291)" x="160.97801" y="19.488819" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="160.97801 165.03882 169.11363 173.06206 177.1978 181.28149 185.29787 189.22215 193.17758" y="19.488819" stroke-width=".35278">{{ ticket_type|upper }}</tspan>
@ -69,10 +69,10 @@
<tspan x="-146.40863 -142.304 -138.40573 -134.85989 -130.94258 -126.91032 -122.96698 -119.14491 -115.69559 -111.85194 -107.7111 -103.57088 -99.675179 -95.535606 -91.395416 -87.223465 -83.085785 -79.161507 -75.391518 -71.359261 -67.271767 -63.150616 -59.104397 -55.072155" y="-219.08063" stroke-width=".35278">{% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %}</tspan>
</text>
<text transform="matrix(-.70476 0 0 -.70946 .00070011 86.291)" x="-146.40863" y="-201.08063" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="-146.40863 -142.304 -138.40573 -134.85989 -130.94258 -126.91032 -122.96698 -119.14491 -115.69559 -111.85194 -107.7111 -103.57088 -99.675179 -95.535606 -91.395416 -87.223465 -83.085785 -79.161507 -75.391518 -71.359261 -67.271767 -63.150616 -59.104397 -55.072155" y="-201.08063" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</tspan>
<tspan x="-146.40863 -142.304 -138.40573 -134.85989 -130.94258 -126.91032 -122.96698 -119.14491 -115.69559 -111.85194 -107.7111 -103.57088 -99.675179 -95.535606 -91.395416 -87.223465 -83.085785 -79.161507 -75.391518 -71.359261 -67.271767 -63.150616 -59.104397 -55.072155" y="-201.08063" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }}</tspan>
</text>
<text transform="matrix(-.70476 0 0 -.70946 .00070011 86.291)" x="-146.40863" y="-194.08063" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="-146.40863 -142.304 -138.40573 -134.85989 -130.94258 -126.91032 -122.96698 -119.14491 -115.69559 -111.85194 -107.7111 -103.57088 -99.675179 -95.535606 -91.395416 -87.223465 -83.085785 -79.161507 -75.391518 -71.359261 -67.271767 -63.150616 -59.104397 -55.072155" y="-194.08063" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }}</tspan>
<tspan x="-146.40863 -142.304 -138.40573 -134.85989 -130.94258 -126.91032 -122.96698 -119.14491 -115.69559 -111.85194 -107.7111 -103.57088 -99.675179 -95.535606 -91.395416 -87.223465 -83.085785 -79.161507 -75.391518 -71.359261 -67.271767 -63.150616 -59.104397 -55.072155" y="-194.08063" stroke-width=".35278">{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }}</tspan>
</text>
<text transform="matrix(-.70476 0 0 -.70946 .00070011 86.291)" x="-49.022686" y="-278.51004" fill="#100f0d" font-family="Space Mono" font-size="6.35px" stroke-width=".35278">
<tspan x="-49.022686 -44.96188 -40.887066 -36.938641 -32.802898 -28.719202 -24.702829 -20.778543 -16.823114" y="-278.51004" stroke-width=".35278">{{ ticket_type|upper }}</tspan>

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -31,7 +31,7 @@ public = [
url(r"^mybadge\.(png|svg|pdf)", user_badge, name="user_badge"),
url(r"^badge/([0-9]+)$", badge, name="badge"),
url(r"^badge/([0-9]+).(png|svg|pdf)$", badge, name="badge"),
url(r"^badge_print/([0-9]+).(png|svg|pdf)$", badge_print, name="badge_print"),
url(r"^badge_print/([0-9]+)", badge_print, name="badge_print"),
url(r"^badger/([A-Za-z0-9]+)$", badger, name="badger"),
url(r"^badger/", badger, name="badger"),
url(r"^category/([0-9]+)$", product_category, name="product_category"),