2023-06-22 11:04:24 -07:00
|
|
|
{% extends 'generic/object.html' %}
|
|
|
|
{% load buttons %}
|
|
|
|
{% load custom_links %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load perms %}
|
|
|
|
{% load plugins %}
|
|
|
|
{% load static %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2023-06-22 11:04:24 -07:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2024-01-17 16:25:42 -05:00
|
|
|
{% block control-buttons %}
|
|
|
|
{% if not object.pk or object.is_active and perms.core.add_configrevision %}
|
|
|
|
{% url 'core:configrevision_add' as edit_url %}
|
|
|
|
{% include "buttons/edit.html" with url=edit_url %}
|
|
|
|
{% endif %}
|
|
|
|
{% if object.pk and not object.is_active and perms.core.delete_configrevision %}
|
|
|
|
{% delete_button object %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock control-buttons %}
|
2023-06-22 11:04:24 -07:00
|
|
|
|
2023-08-31 08:52:46 -04:00
|
|
|
{% block subtitle %}
|
|
|
|
{% if object.created %}
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="text-secondary fs-5">
|
2024-04-17 11:46:47 -04:00
|
|
|
{% trans "Created" %} {{ object.created|isodatetime }}
|
2023-08-31 08:52:46 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock subtitle %}
|
|
|
|
|
2023-06-22 11:04:24 -07:00
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2023-08-30 11:13:56 -04:00
|
|
|
<div class="col col-md-12">
|
2023-06-22 11:04:24 -07:00
|
|
|
<div class="card">
|
2024-05-03 17:26:19 -04:00
|
|
|
<h5 class="card-header">{% trans "Configuration Data" %}</h5>
|
|
|
|
{% include 'core/inc/config_data.html' with config=config.data %}
|
2023-06-22 11:04:24 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
2023-08-30 11:13:56 -04:00
|
|
|
<h5 class="card-header">{% trans "Comment" %}</h5>
|
2023-06-22 11:04:24 -07:00
|
|
|
<div class="card-body">
|
2023-08-30 11:13:56 -04:00
|
|
|
{{ object.comment|placeholder }}
|
2023-06-22 11:04:24 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|