2024-03-16 15:14:14 -03:00
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
< div class = 'row' >
< div class = '{% if form_size %}{{ form_size }}{% else %}col-lg-6{% endif %}' >
< div class = "card card-primary card-outline" >
{% if page_title %}
< div class = "card-header" >
< h3 class = "card-title" > {{ page_title }}< / h3 >
< / div >
{% endif %}
< div class = "card-body row" >
< div class = "col-lg-12" >
{% csrf_token %}
{% crispy form %}
< / div >
< / div >
< / div >
< / div >
2024-04-22 17:37:45 -03:00
{% if form_description %}
< div class = '{% if form_description.size %}{{ form_description.size }}{% else %}col-lg-6{% endif %}' >
< div class = "card card-primary card-outline" >
< div class = "card-body row" >
< div class = "col-lg-12" >
{{ form_description.content|safe }}
< / div >
< / div >
< / div >
< / div >
{% endif %}
2024-03-16 15:14:14 -03:00
< / div >
{% endblock %}
{% block custom_page_scripts %}
< script >
function openCommandDialog(element) {
var command = element.getAttribute('data-command');
var confirmation = prompt("{% if delete_confirmation_message %}{{ delete_confirmation_message }}{% else %}Please type 'delete' to proceed.{% endif %}");
if (confirmation) {
var url = "?uuid={{ instance.uuid }}& action=delete& confirmation=" + encodeURIComponent(confirmation);
window.location.href = url;
}
}
< / script >
2024-04-04 14:25:16 -03:00
2024-03-16 15:14:14 -03:00
{% endblock %}