-
Notifications
You must be signed in to change notification settings - Fork 240
fix(UI): do not display gorgone options on central's form #8206
fix(UI): do not display gorgone options on central's form #8206
Conversation
{/foreach} | ||
{literal}}{/literal}{if not $smarty.foreach.engines.last},{/if} | ||
{/foreach} | ||
{literal}}{/literal} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing closing brace genrating an error since long time ago
<td class="FormRowField"><img class="helpTooltip" name="gorgone_port"> {$form.gorgone_port.label}</td> | ||
<td class="FormRowValue">{$form.gorgone_port.html}</td> | ||
{/if} | ||
<!-- specific gorgone fields for remote or poller --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this file, only lines 45 to 65 were modified.
other lines are indentation correction and list_one/list_two consistency
@@ -234,8 +238,22 @@ | |||
$form->addElement('text', 'gorgone_port', _("Gorgone connection port"), $attrsText3); | |||
|
|||
$tab = array(); | |||
$tab[] = $form->createElement('radio', 'localhost', null, _("Yes"), '1'); | |||
$tab[] = $form->createElement('radio', 'localhost', null, _("No"), '0'); | |||
$tab[] = $form->createElement( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the onclick have been added to these two radio buttons
@@ -426,6 +444,18 @@ | |||
|
|||
?> | |||
<script type='text/javascript'> | |||
// toggle gorgone port and communication mode fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toggling method called by the localhost radio button
As many lines were modified (indentation, camelcase naming, ...) I commented the modifications to ease the review |
* enh(core): generate centreon gorgone configuration file (#8160) * enh(core): add gorgone configuration file generation * fix: folder paths * fix(core): naming of file and field type * enh(core): update configuration file to take in account last modif * fix(core): correct path to private key * enh(core): add nodes module * enh(core): store stats in cache dir * enh(core): enable broker stats collection * enh(poller) Update poller form to manage gorgone (#8184) * enh(gorgone) Update config form to manage gorgone options (#8197) * enh(chore) replace centcore by gorgone (#8172) * remove centcore perl script (#8209) * fix(UI): do not display gorgone options on central's form (#8206) * fix(UI): do not display gorgone options on central * remove duplicated code (#8215) * enh(admin): adapt broker stats page to new folder tree (#8216) * enh(core): update script to manage gorgone configuration file (#8229) * enh: exception management * enh(update): generate gorgone conf file on update * fix(translation): avoid empty gettext translation * enh(core): Add a yaml configuration loader (#8270) * MON-4737 enh(core): split gorgone configuration in different files (#8276) * enh(core): adapt upgrade script to latest modifications (#8284) * adapt update script * enh: add more check brefore trying to create the conf files * fix: correct path in the template * enh(core): update gorgone configuration files (#8293) * update configuration location * enh(gorgone): Added API to communicate with the Gorgone server (#8294) * enh(install): fix default keys pathes (#8302) * fix db name configuration template * replace remote data folder * fix rest api test * enh(UI): Add nowrap style to badge class - from aladdinchan (#8314) * fix(ui): Add hash:8 suffix to font files to avoid asset conflicts and optimize Webpack config (#8305) * Mon 4640 remove deprecated engine fields (#8233) * fix(CI): add new tests to clapi diff * fix(core): source install (#8396) * enh(core): add gorgone user and copy ssh keys * fix(api): fix options retrieval issue (#8412) * fix(core): manage the gorgone configuration files (#8400) * fix(core): duplicate SSH key on source upgrade (#8421) Co-authored-by: loiclau <loic.lau@gmail.com> Co-authored-by: Colin Gagnaire <cgagnaire@centreon.com> Co-authored-by: Laurent Calvet <lcalvet@centreon.com> Co-authored-by: Bruno d'Auria <bdauria@centreon.com> Co-authored-by: Matthieu Kermagoret <mkermagoret@centreon.com> Co-authored-by: Laurent Pinsivy <lpinsivy@centreon.com> Co-authored-by: Kevin Duret <duret.kevin@gmail.com> Co-authored-by: Laurent Calvet <laurent@callapa.com> Co-authored-by: Kevin Duret <kduret@centreon.com>
Pull Request Template
Description
1-
gorgone data shouldn't be displayed on the central poller configuration form.
This PR is intended to hide these options when the localhost parameter has been set.
Before :
After :
2-
Correct the error in the browser console (legacy)
Fixes # (VF MON-4509)
Type of change
Target serie
How this pull request can be tested ?
check the sreenshots above
Checklist
Community contributors & Centreon team
Centreon team only