fix: python.django.security.django-no-csrf-token.django-no-csrf-token-GUI-backgrounds.html

pull/2330/head
anupamme 3 months ago
parent 64bf647de9
commit 9229765278

@ -14,6 +14,7 @@
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<form action="background/delete" method="post"> <form action="background/delete" method="post">
{% csrf_token %}
<input type="hidden" id="background-key" name="background-key" value=""> <input type="hidden" id="background-key" name="background-key" value="">
<button type="submit" class="btn btn-danger">Delete</button> <button type="submit" class="btn btn-danger">Delete</button>
</form> </form>
@ -33,6 +34,7 @@
<!-- Add video form --> <!-- Add video form -->
<form id="addBgForm" action="background/add" method="post" novalidate> <form id="addBgForm" action="background/add" method="post" novalidate>
{% csrf_token %}
<div class="form-group row"> <div class="form-group row">
<label class="col-4 col-form-label" for="youtube_uri">YouTube URI</label> <label class="col-4 col-form-label" for="youtube_uri">YouTube URI</label>
<div class="col-8"> <div class="col-8">

Loading…
Cancel
Save