You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
607 B

{% extends 'base.html' %}
{% block content %}
<form action=/edit id="editform" method="post">
<input type="hidden" name="code" value="{{code}}" />
QR-code:<br />
<input type="text" value="{{code}}" disabled /><br />
URL:<br />
<input type="url" id="url" name="url" value="{{url}}"/><br />
<button type="submit" class="graybar" >Save</button>
</form>
{% if admin == True %}
<button class="graybar" onclick="removeLink()">Remove link</button>
{% endif %}
<script>
function removeLink() {
document.getElementById("url").value = "";
document.getElementById("editform").submit();
}
</script>
{% endblock %}