folder rename

This commit is contained in:
gsinghpal
2026-04-16 20:53:53 -04:00
parent 3f3ddcbab4
commit 7c7ef06057
634 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-name="fusion_plating_configurator.Fp3dViewer">
<div class="o_fp_3d_viewer_root">
<t t-if="!state.hasAttachment">
<div class="o_fp_3d_placeholder text-center text-muted p-4">
<i class="fa fa-cube fa-3x mb-2 d-block"/>
<span>Upload a 3D model (STL, STEP, IGES) to preview it here.</span>
</div>
</t>
<t t-if="state.hasAttachment">
<iframe t-att-src="state.iframeSrc"
class="o_fp_3d_iframe"
frameborder="0"
allowfullscreen="true"/>
</t>
</div>
</t>
<t t-name="fusion_plating_configurator.Fp3dViewerDialog">
<Dialog title.translate="3D Model Viewer"
size="dialogSize"
contentClass="'o_fp_3d_dialog'"
footer="false">
<div class="o_fp_3d_dialog_body">
<iframe t-att-src="iframeSrc"
t-att-style="frameStyle"
class="o_fp_3d_dialog_iframe"
frameborder="0"
allowfullscreen="true"/>
</div>
<div class="o_fp_3d_dialog_actions">
<button type="button"
class="btn btn-sm btn-outline-secondary"
t-on-click="toggleSize">
<i t-att-class="state.isMaximized ? 'fa fa-compress me-1' : 'fa fa-expand me-1'"/>
<t t-if="state.isMaximized">Restore</t>
<t t-else="">Maximize</t>
</button>
<button type="button"
class="btn btn-sm btn-secondary ms-2"
t-on-click="props.close">
Close
</button>
</div>
</Dialog>
</t>
</templates>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="fusion_plating_configurator.FpPdfPreviewBinary">
<div t-attf-class="oe_fileupload {{props.className ? props.className : ''}}" aria-atomic="true">
<div class="o_attachments">
<t t-foreach="files" t-as="file" t-key="file_index">
<t t-set="editable" t-value="!props.readonly"/>
<t t-set="ext" t-value="getExtension(file)"/>
<t t-set="url" t-value="getUrl(file.id)"/>
<t t-set="isPdf" t-value="(file.mimetype === 'application/pdf') or (file.name and file.name.toLowerCase().endsWith('.pdf'))"/>
<div t-attf-class="o_attachment o_attachment_many2many #{ editable ? 'o_attachment_editable' : '' }"
t-att-title="file.name">
<div class="o_attachment_wrap">
<div class="o_image_box float-start"
t-att-data-tooltip="isPdf ? 'Preview ' + file.name : 'Download ' + file.name">
<a t-att-href="url"
t-on-click="(ev) => this.onFileClick(ev, file)"
t-att-download="isPdf ? undefined : ''"
aria-label="Open">
<img t-if="isImage(file)"
class="o_preview_image o_hover object-fit-cover rounded align-baseline"
t-attf-src="/web/image/{{ file.id }}"
onerror="this.src = '/web/static/img/mimetypes/image.svg'"/>
<span t-else="" class="o_image o_preview_image o_hover"
t-att-data-mimetype="file.mimetype"
t-att-data-ext="ext" role="img"/>
</a>
</div>
<div class="caption">
<a class="ml4"
t-att-data-tooltip="isPdf ? 'Preview ' + file.name : 'Download ' + file.name"
t-att-href="url"
t-on-click="(ev) => this.onFileClick(ev, file)"
t-att-download="isPdf ? undefined : ''"><t t-esc="file.name"/></a>
</div>
<div class="caption small">
<a class="ml4 small text-uppercase"
t-att-href="url"
t-on-click="(ev) => this.onFileClick(ev, file)"
t-att-download="isPdf ? undefined : ''">
<b><t t-esc="ext"/></b>
</a>
</div>
<div class="o_attachment_uploaded">
<i class="text-success fa fa-check" role="img"
aria-label="Uploaded" title="Uploaded"/>
</div>
<div t-if="editable" class="o_attachment_delete"
t-on-click.stop="() => this.onFileRemove(file.id)">
<span role="img" aria-label="Delete" title="Delete">×</span>
</div>
</div>
</div>
</t>
</div>
<div t-if="!props.readonly and (!props.numberOfFiles or files.length &lt; props.numberOfFiles)"
class="oe_add">
<FileInput acceptedFileExtensions="props.acceptedFileExtensions"
multiUpload="true"
onUpload.bind="onFileUploaded"
resModel="props.record.resModel"
resId="props.record.resId or 0">
<button class="btn btn-secondary o_attach" data-tooltip="Attach">
<span class="fa fa-paperclip" aria-label="Attach"/>
<t t-esc="uploadText"/>
</button>
</FileInput>
</div>
</div>
</t>
</templates>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-name="fusion_plating_configurator.FpPdfInlinePreview">
<div class="o_fp_pdf_inline_root">
<t t-if="state.hasAttachment">
<div class="o_fp_pdf_inline_frame_wrap">
<iframe t-att-src="state.iframeSrc"
class="o_fp_pdf_inline_iframe"
frameborder="0"
title="PDF Preview"/>
</div>
<div class="text-center mt-2">
<button type="button"
class="btn btn-sm btn-outline-primary"
t-on-click="openFullScreen">
<i class="fa fa-expand me-1"/>Full Screen
</button>
</div>
</t>
<t t-if="!state.hasAttachment">
<div class="o_fp_pdf_inline_placeholder text-center text-muted p-4">
<i class="fa fa-file-pdf-o fa-3x mb-2 d-block"/>
<span>No PDF attached.</span>
</div>
</t>
</div>
</t>
</templates>