modif accès plugin url

FossilOrigin-Name: 59131604362396ea238eef30a36e4578738c18059d28706cd09dd81d9d2c4328
This commit is contained in:
engel 2023-12-22 10:34:33 +00:00
parent e75c56b736
commit e6470bd2e9
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<nav class="acc-year">
<h4>Année fiscale sélectionnée&nbsp;:</h4>
<h3>{$annee_recu}</h3>
<footer>{linkbutton label="Changer d'année fiscale" href="%s/choix_annee.php?from=%s"|args:PLUGIN_URL,rawurlencode($self_url) shape="settings"}</footer>
<footer>{linkbutton label="Changer d'année fiscale" href="%s/choix_annee.php?from=%s"|args:$plugin_url,rawurlencode($self_url) shape="settings"}</footer>
</nav>
<form id="formulaire_saisie" method="post" action="action.php">

View File

@ -67,6 +67,7 @@ $tpl->assign('plugin_config', $plugin->getConfig());
$tpl->assign('nbTaux', $nbTaux);
$tpl->assign('nbChamps', $nbChamps);
$tpl->assign('plugin_css', ['style.css']);
$tpl->assign('plugin_url', \Garradin\Utils::plugin_url());
// envoyer au template
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');