Hide feature that need re-engeneering
This commit is contained in:
parent
6a363fd1ab
commit
2bbf9a3429
@ -363,6 +363,8 @@ class ActionsDatapolicies
|
|||||||
global $conf, $user, $langs;
|
global $conf, $user, $langs;
|
||||||
$langs->load('datapolicies@datapolicies');
|
$langs->load('datapolicies@datapolicies');
|
||||||
|
|
||||||
|
if (! empty($conf->global->DATAPOLICIES_ENABLE_EMAILS))
|
||||||
|
{
|
||||||
$dialog = '<div id="dialogdatapolicies" style="display:none;" title="' . $langs->trans('DATAPOLICIES_PORTABILITE_TITLE') . '">';
|
$dialog = '<div id="dialogdatapolicies" style="display:none;" title="' . $langs->trans('DATAPOLICIES_PORTABILITE_TITLE') . '">';
|
||||||
$dialog .= '<div class="confirmmessage">' . img_help('', '') . ' ' . $langs->trans('DATAPOLICIES_PORTABILITE_CONFIRMATION') . '</div>';
|
$dialog .= '<div class="confirmmessage">' . img_help('', '') . ' ' . $langs->trans('DATAPOLICIES_PORTABILITE_CONFIRMATION') . '</div>';
|
||||||
$dialog .= "</div>";
|
$dialog .= "</div>";
|
||||||
@ -404,6 +406,7 @@ class ActionsDatapolicies
|
|||||||
echo '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . "?id=" . $object->id . '&action=send_datapolicies" title="' . $langs->trans('DATAPOLICIES_SEND') . '">' . $langs->trans("DATAPOLICIES_SEND") . '</a></div>';
|
echo '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . "?id=" . $object->id . '&action=send_datapolicies" title="' . $langs->trans('DATAPOLICIES_SEND') . '">' . $langs->trans("DATAPOLICIES_SEND") . '</a></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* printCommonFooter
|
* printCommonFooter
|
||||||
|
|||||||
@ -40,10 +40,13 @@ function datapoliciesAdminPrepareHead()
|
|||||||
$head[$h][2] = 'settings';
|
$head[$h][2] = 'settings';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
if (! empty($conf->global->DATAPOLICIES_ENABLE_EMAILS))
|
||||||
|
{
|
||||||
$head[$h][0] = dol_buildpath("/datapolicies/admin/setupmail.php", 1);
|
$head[$h][0] = dol_buildpath("/datapolicies/admin/setupmail.php", 1);
|
||||||
$head[$h][1] = $langs->trans("DATAPOLICIESMail");
|
$head[$h][1] = $langs->trans("DATAPOLICIESMail");
|
||||||
$head[$h][2] = 'settings';
|
$head[$h][2] = 'settings';
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
complete_head_from_modules($conf, $langs, $object, $head, $h, 'datapolicies');
|
complete_head_from_modules($conf, $langs, $object, $head, $h, 'datapolicies');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user