--- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_19.0.3_adherentcard_create.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_create.tpl.php @@ -20 +20,2 @@ -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ @@ -32,0 +34,2 @@ + +dol_htmloutput_errors((is_numeric($GLOBALS['error']) ? '' : $GLOBALS['error']), $GLOBALS['errors']); @@ -69 +72 @@ - + @@ -106 +109 @@ - + --- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_19.0.3_adherentcard_edit.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_edit.tpl.php @@ -20 +20,2 @@ -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ @@ -80 +81 @@ - + @@ -117 +118 @@ - + @@ -137,2 +138,2 @@ - ">  - "> + ">  + "> --- /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/github_19.0.3_adherentcard_view.tpl.php +++ /tmp/dsg/dolibarr/htdocs/adherents/canvas/default/tpl/client_adherentcard_view.tpl.php @@ -3 +3 @@ - * Copyright (C) 2012-2022 Philippe Grand + * Copyright (C) 2012 Philippe Grand @@ -20 +20,2 @@ -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ @@ -32,6 +33,2 @@ -if (!empty($this->control->tpl['action_create_user'])) { - echo $this->control->tpl['action_create_user']; -} -if (!empty($this->control->tpl['action_delete'])) { - echo $this->control->tpl['action_delete']; -} ?> +if (!empty($this->control->tpl['action_create_user'])) echo $this->control->tpl['action_create_user']; +if (!empty($this->control->tpl['action_delete'])) echo $this->control->tpl['action_delete']; ?> @@ -125 +122 @@ - echo '
'; + echo '
'; @@ -127,3 +124,3 @@ - if ($user->hasRight('adherent', 'creer')) { - echo ''.$langs->trans('Modify').''; - } + if ($user->rights->adherent->creer) { + echo ''.$langs->trans('Modify').''; + } @@ -131,3 +128,3 @@ - if (!$this->control->tpl['user_id'] && $user->hasRight('user', 'user', 'creer')) { - echo ''.$langs->trans("CreateDolibarrLogin").''; - } + if (!$this->control->tpl['user_id'] && $user->rights->user->user->creer) { + echo ''.$langs->trans("CreateDolibarrLogin").''; + } @@ -135,3 +132,3 @@ - if ($user->hasRight('adherent', 'supprimer')) { - print dolGetButtonAction($langs->trans("Delete"), '', 'delete', $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&action=delete&token='.newToken().'&canvas='.$canvas, 'delete', $user->hasRight('adherent', 'supprimer')); - } + if ($user->rights->adherent->supprimer) { + echo ''.$langs->trans('Delete').''; + } @@ -139 +136 @@ - echo '

'; + echo '

';