mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Removed all inline <script> tags
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
$(function () {
|
||||
jQuery('#qrcodeCanvas').qrcode(
|
||||
{
|
||||
text: '{{ qrdata|safe }}'
|
||||
}
|
||||
);
|
||||
});
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "pretixcontrol/event/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
{% load staticfiles %}
|
||||
{% block title %}{% trans "pretixdroid configuration" %}{% endblock %}
|
||||
{% block content %}
|
||||
<h1>{% trans "pretixdroid configuration" %}</h1>
|
||||
@@ -9,11 +10,7 @@
|
||||
If you try to configure the app, it will ask you to scan the QR code below.
|
||||
{% endblocktrans %}</p>
|
||||
<div id="qrcodeCanvas"></div>
|
||||
<script type="text/javascript">
|
||||
jQuery('#qrcodeCanvas').qrcode({
|
||||
text: '{{ qrdata|safe }}'
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="{% static "pretixplugins/pretixdroid/pretixdroid.js" %}"></script>
|
||||
<a href="?flush_key=1" class="btn btn-default">{% trans "Reset authentication token" %}</a>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user