Skip to content

Commit

Permalink
Editor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sak1012 committed Nov 3, 2024
1 parent d2d4029 commit 3d6d325
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pretix/api/views/checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _process_given_answers(op, answers_data, user, auth):

def _append_badge_download(downloads, op, request):
if 'pretix.plugins.badges' in op.order.event.plugins:
badge_url = f"/api/v1/organizers/{request.organizer.slug}/events/{op.order.event.slug}/orderpositions/{op.pk}/preview/badge/"
badge_url = f"/api/v1/organizers/{request.organizer.slug}/events/{op.order.event.slug}/orderpositions/{op.pk}/download/badge/"
downloads.append({
"output": "badge",
"url": badge_url
Expand Down
14 changes: 7 additions & 7 deletions src/pretix/control/templates/pretixcontrol/pdf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h2>{% trans "Welcome to the PDF ticket editor!" %}</h2>
</p>
<span class="btn btn-default fileinput-button background-button">
<i class="fa fa-upload"></i>
<span>{% trans "Upload custom background" %}</span>
<span>{% trans "Upload custom background PDF" %}</span>
<input id="fileupload" type="file" name="background">
</span>
</div>
Expand Down Expand Up @@ -391,24 +391,24 @@ <h2>{% trans "Welcome to the PDF ticket editor!" %}</h2>
</button>
<button class="btn btn-default btn-block" id="editor-add-qrcode" data-content="secret" disabled>
<span class="fa fa-qrcode"></span>
{% trans "QR code for Check-In" %}
{% trans "Attendee QR Code" %}
</button>
<button class="btn btn-default btn-block" id="editor-add-qrcode-lead"
<!--<button class="btn btn-default btn-block" id="editor-add-qrcode-lead"
data-content="pseudonymization_id"
disabled>
<span class="fa fa-qrcode"></span>
{% trans "QR code for Lead Scanning" %}
</button>
</button>-->
<button class="btn btn-default btn-block" id="editor-add-poweredby"
data-content="dark"
disabled>
<span class="fa fa-image"></span>
{% trans "pretix Logo" %}
{% trans "Eventyay Logo" %}
</button>
<button class="btn btn-default btn-block" id="editor-add-image" disabled>
<!--<button class="btn btn-default btn-block" id="editor-add-image" disabled>
<span class="fa fa-image"></span>
{% trans "Dynamic image" %}
</button>
</button>-->
</div>
</div>

Expand Down

0 comments on commit 3d6d325

Please sign in to comment.