Skip to content

Commit

Permalink
Update ModalHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rossaddison committed Oct 22, 2023
1 parent 7d8c980 commit 87c2f54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions invoice/src/Invoice/Helpers/ModalHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ public function modal(string $class, string $target, string $icon, string $label
->headerOptions(['class' => 'text-danger'])
->bodyOptions(['class' => 'modal-body', 'style' => 'text-align:center;',])
->footerOptions(['class' => 'text-dark'])
->closeButton(['tag'=>'button','label'=>"×"])
->withCloseButtonLabel("×")
//btn_add_product will be used in invoice.js to populate the modal-placeholder below
->toggleButton([
'class' => [$class],
->withToggleOptions(['class' => [$class],
'data-bs-toggle'=>'modal',
'data-bs-keyboard'=>$keyboard,
'data-bs-target'=>$target,
'data-toggle'=>'tooltip',
'title'=>$this->s->trans($title),
'label' =>'<i class="'.$icon.'"></i>'. $this->s->trans($label)])
'title'=>$this->s->trans($title)])
->withToggleLabel('<i class="'.$icon.'"></i>'. $this->s->trans($label))
->withToggle(true)
->begin();
echo '<p></p>';
echo '<div id="modal-placeholder-'.$placeholdername.'">';
Expand Down

0 comments on commit 87c2f54

Please sign in to comment.