Added comment as popover in Cpeprovisioning/Index

This commit is contained in:
Frank Schubert
2021-12-02 19:27:15 +01:00
parent fe7e80f68d
commit fccea0b7fd
+16 -4
View File
@@ -179,10 +179,10 @@
} }
} }
?> ?>
<?=($vot || $vo_termin) ? "<i class='fas fa-tools text-purple mr-2' title='Vorortinstallation'></i>" : ""?> <?=($vot || $vo_termin) ? "<i class='fas fa-tools text-purple mr-2' data-toggletooltip='tooltip' title='Vorortinstallation'></i>" : ""?>
<?=($hw) ? "<i class='fas fa-shopping-bag text-purple mr-2' title='Zusatzprodukt vorhanden'></i>" : ""?> <?=($hw) ? "<i class='fas fa-shopping-bag text-purple mr-2' data-toggletooltip='tooltip' title='Zusatzprodukt vorhanden'></i>" : ""?>
<?=($voip) ? "<i class='fas fa-phone text-purple mr-2' title='Voice Produkt vorhanden'></i>" : ""?> <?=($voip) ? "<i class='fas fa-phone text-purple mr-2' data-toggletooltip='tooltip' title='Voice Produkt vorhanden'></i>" : ""?>
<?=($product->order->note) ? "<i class='fas fa-clipboard-list text-purple' title='Kommentar: ".str_replace('"', '&#34;', $product->order->note)."'></i>" : ""?> <?=($product->order->note) ? "<i class='fas fa-clipboard-list text-purple' data-toggle='popover' data-toggletooltip='tooltip' data-placement='top' title='Kommentar' data-content='".str_replace('"', '&#34;', str_replace("\n",'<br />',$product->order->note))."'></i>" : ""?>
</td> </td>
</tr> </tr>
<tr class="<?=($prov_count % 2 == 0) ? "table-bg-even" : "table-bg-odd"?> bottom-no-border top-no-border"> <tr class="<?=($prov_count % 2 == 0) ? "table-bg-even" : "table-bg-odd"?> bottom-no-border top-no-border">
@@ -363,4 +363,16 @@
</div> </div>
</div> </div>
<script>
$(document).ready(function() {
$(function () {
$('[data-toggle="popover"]').popover({html: true})
})
});
$(function () {
$('[data-toggletooltip="tooltip"]').tooltip({html: true})
})
</script>
<?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?> <?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?>