Files
sprpcb-exportpdf-func/templates_views_report-templates/export-pdf-report.htm
2026-08-05 13:13:04 +00:00

65 lines
3.3 KiB
HTML

<!-- 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: satMap, config:{ label: 'Mapa satelital'}}}">
</div>
<div class="report-print-date" data-bind="component: {
name: 'views/components/simple-switch',
params: { value: anexarImagenes, config:{ label: 'Adjuntar imágenes'}}}">
</div>
<div class="report-print-date" data-bind="component: {
name: 'views/components/simple-switch',
params: { value: anexarPdfs, config:{ label: 'Adjuntar documentos (pdf)'}}}">
</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 %}