|
|
@@ -34,7 +34,7 @@ $related_document = $document->getRelatedDocument();
|
|
|
}
|
|
|
?>
|
|
|
</h3>
|
|
|
- <form action="<?=htmlspecialchars($document->getUrl())?>/submit" method="post">
|
|
|
+ <form id="document-form" action="<?=htmlspecialchars($document->getUrl())?>/submit" method="post">
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="col-xl-8">
|
|
|
@@ -351,15 +351,15 @@ $related_document = $document->getRelatedDocument();
|
|
|
<?=htmlspecialchars(__("Download PDF"))?>
|
|
|
</button>
|
|
|
<div class="dropdown-menu">
|
|
|
- <a href="<?=htmlspecialchars($document->getDownloadPdfUrl())?>" target="_blank" class="dropdown-item"><?=htmlspecialchars(__("Proforma Invoice"))?></a>
|
|
|
- <a href="<?=htmlspecialchars($document->getDownloadPdfUrl("commercial"))?>" target="_blank" class="dropdown-item"><?=htmlspecialchars(__("Commercial Invoice"))?></a>
|
|
|
+ <a href="<?=htmlspecialchars($document->getDownloadPdfUrl())?>" target="_blank" class="dropdown-item pdf-action"><?=htmlspecialchars(__("Proforma Invoice"))?></a>
|
|
|
+ <a href="<?=htmlspecialchars($document->getDownloadPdfUrl("commercial"))?>" target="_blank" class="dropdown-item pdf-action"><?=htmlspecialchars(__("Commercial Invoice"))?></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php
|
|
|
}
|
|
|
else {
|
|
|
?>
|
|
|
- <a href="<?=htmlspecialchars($document->getDownloadPdfUrl())?>" class="btn btn-primary" target="_blank">
|
|
|
+ <a href="<?=htmlspecialchars($document->getDownloadPdfUrl())?>" class="btn btn-primary pdf-action" target="_blank">
|
|
|
<i class="fa fa-fw fa-file-pdf"></i>
|
|
|
<?=htmlspecialchars(__("Download PDF"))?>
|
|
|
</a>
|