Bouton supprimer ne devrait être visible que par les admins
This commit is contained in:
parent
b644eb34bf
commit
651d035ecc
|
@ -9,7 +9,9 @@
|
||||||
|
|
||||||
{linkbutton shape="download" href="%spdf.php?d&id=%d"|args:$plugin_url,$facture.id label="Télécharger ce document"}
|
{linkbutton shape="download" href="%spdf.php?d&id=%d"|args:$plugin_url,$facture.id label="Télécharger ce document"}
|
||||||
|
|
||||||
|
{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN)}
|
||||||
{linkbutton shape="delete" href="%sfacture_supprimer.php?id=%d"|args:$plugin_url,$facture.id label="Supprimer ce document"}
|
{linkbutton shape="delete" href="%sfacture_supprimer.php?id=%d"|args:$plugin_url,$facture.id label="Supprimer ce document"}
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div style="margin-top: 1em; width: min-content;">
|
<div style="margin-top: 1em; width: min-content;">
|
||||||
<embed src="pdf.php?id={$id}" type="application/pdf" width="840px" height="1188px" style="max-width: 900px; border: 1px solid black;">
|
<embed src="pdf.php?id={$id}" type="application/pdf" width="840px" height="1188px" style="max-width: 900px; border: 1px solid black;">
|
||||||
|
|
Loading…
Reference in New Issue