Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(conf) remove option to enable one-click-export button (#10350)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-launois committed Oct 22, 2021
1 parent a828390 commit 19b5331
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion www/include/Administration/myAccount/formMyAccount.ihtml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<tr class="list_two"><td class="FormRowField">{$form.default_page.label}</td><td class="FormRowValue">{$form.default_page.html}</td></tr>
<tr class="list_one"><td class="FormRowField"><img class="helpTooltip" name="show_deprecated_pages">{$form.show_deprecated_pages.label}</td><td class="FormRowValue">{$form.show_deprecated_pages.html}</td></tr>
<tr class="list_two"><td class="FormRowField">{$form.contact_js_effects.label}</td><td class="FormRowValue">{$form.contact_js_effects.html}</td></tr>
{if $contactIsAdmin}
{if $contactIsAdmin && !$isRemote}
<tr class="list_one"><td class="FormRowField">{$form.enable_one_click_export.label}</td><td class="FormRowValue">{$form.enable_one_click_export.html}</td></tr>
{/if}
<tr class="list_lvl_1">
Expand Down
17 changes: 10 additions & 7 deletions www/include/Administration/myAccount/formMyAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,15 @@
$form->addElement('select', 'contact_lang', _("Language"), $langs);
$form->addElement('checkbox', 'show_deprecated_pages', _("Use deprecated pages"), null, $attrsText);
$form->addElement('checkbox', 'contact_js_effects', _("Animation effects"), null, $attrsText);
$form->addElement(
'checkbox',
'enable_one_click_export',
_("Enable the one-click export button for poller configuration [BETA]"),
null,
$attrsText
);
if (!$isRemote) {
$form->addElement(
'checkbox',
'enable_one_click_export',
_("Enable the one-click export button for poller configuration [BETA]"),
null,
$attrsText
);
}


/* ------------------------ Topoogy ---------------------------- */
Expand Down Expand Up @@ -451,6 +453,7 @@ function myReplace()
$tpl->assign('o', $o);
$tpl->assign('featuresFlipping', (count($features) > 0));
$tpl->assign('contactIsAdmin', $centreon->user->get_admin());
$tpl->assign('isRemote', $isRemote);

/*
* prepare help texts
Expand Down

0 comments on commit 19b5331

Please sign in to comment.