do not show content container if form has no visible fields

This commit is contained in:
Uwe Steinmann 2025-01-24 11:32:08 +01:00
parent 30682237e9
commit ceddf4d5bf

View File

@ -117,6 +117,7 @@ $(document).ready(function() {
<form class="form-horizontal" method="post" action="../op/op.ReceiptDocument.php" id="form<?= $receipttype ?>" name="form<?= $receipttype ?>">
<?php echo createHiddenFieldWithKey('receiptdocument'); ?>
<?php
if (!$noreceiptcomment || $receiptreject)
$this->contentContainerStart();
if(!$noreceiptcomment) {
$this->formField(
@ -149,6 +150,7 @@ $(document).ready(function() {
} else {
echo '<input type="hidden" name="receiptStatus" value="1" />';
}
if (!$noreceiptcomment || $receiptreject)
$this->contentContainerEnd();
$this->formSubmit(getMLText('submit_receipt'), $receipttype.'Receipt');
?>
@ -164,4 +166,3 @@ $(document).ready(function() {
$this->htmlEndPage();
} /* }}} */
}
?>