actualización cero

This commit is contained in:
Juan Burgos
2026-08-03 14:57:44 +00:00
parent d073a071ad
commit 3ae490f25f
9 changed files with 1786 additions and 2 deletions

View File

@@ -0,0 +1,60 @@
<!-- mi_proyecto/templates/views/report-templates/export-pdf-report.htm -->
{% extends "views/report-templates/default.htm" %}
{% load i18n %}
{% block header %}
{{ block.super }}
<div class="relative report-title-bar">
<div class="report-toolbar-preview ep-form-toolbar" style="height: 30px; min-height: 30px;">
<button class="btn btn-sm btn-primary" data-bind="click: exportPDF">
<i class="fa fa-file-pdf-o"></i> Exportar a PDF
</button>
<div class="report-print-date" data-bind="component: {
name: 'views/components/simple-switch',
params: { value: anexarUbic, config:{ label: 'Incluir ubicación detallada'}}}">
</div>
<div class="report-print-date" data-bind="component: {
name: 'views/components/simple-switch',
params: { value: anexarImagenes, config:{ label: 'Incluir imágenes adjuntas'}}}">
</div>
<div class="report-print-date" data-bind="component: {
name: 'views/components/simple-switch',
params: { value: anexarPdfs, config:{ label: 'Incluir documentos (pdf) adjuntos'}}}">
</div>
</div>
</div>
{% endblock header %}
{% block body %}
<!--ko if: hasProvisionalData() && (editorContext === false) -->
<div class="report-provisional-flag">{% trans 'This resource has provisional edits (not displayed in this report) that are pending review' %}</div>
<!--/ko-->
<!--ko if: hasProvisionalData() && (editorContext === true && report.userisreviewer === true) -->
<div class="report-provisional-flag">{% trans 'This resource has provisional edits (not displayed in this report) that are pending review' %}</div>
<!--/ko-->
<!--ko if: hasProvisionalData() && (editorContext === true && report.userisreviewer === false) -->
<div class="report-provisional-flag">{% trans 'This resource has provisional edits that are pending review' %}</div>
<!--/ko-->
<div class="rp-report-section relative rp-report-section-root">
<div class="rp-report-section-title">
<!-- ko foreach: { data: report.cards, as: 'card' } -->
<!-- ko if: !!(ko.unwrap(card.tiles).length > 0) -->
<!-- ko if: $index() !== 0 --><hr class="rp-tile-separator"><!-- /ko -->
<div class="rp-card-section">
<!-- ko component: {
name: card.model.cardComponentLookup[card.model.component_id()].componentname,
params: {
state: 'report',
preview: $parent.report.preview,
card: card,
pageVm: $root,
hideEmptyNodes: $parent.hideEmptyNodes
}
} --> <!-- /ko -->
</div>
<!-- /ko -->
<!-- /ko -->
</div>
</div>
{% endblock body %}