{% extends "se/base.html" %} {% load static %} {% block js %} function del_item(id) { let msg = 'Are you sure you want to delete this entry ?'; if (id === 'all') { msg = 'Are you sure you want to delete all entries in the history ?'; } if (confirm(msg)) { const form = document.getElementById('history_form'); const del = document.createElement('input'); del.setAttribute('name', `del_${id}`); form.appendChild(del); form.submit(); } return false; } {% endblock %} {% block css %} .tag_link { color: var(--text); text-decoration: none; } .del_button { background-image: url('{% static "se/icon-trash.svg" %}'); width: 40px; height: 40px; padding: 0; margin: 0; } #del_all { width: 115px; padding-left: 25px; background-position-x: 14px; margin-left: 15px; background-color: #fab; } {% endblock %} {% block body %}
{% include 'se/pagination.html' %} {% endblock %}