Exemple #1
0
 /**
  * List pollerss
  *
  * @method get
  * @route /poller
  */
 public function listAction()
 {
     $tpl = Di::getDefault()->get('template');
     $tpl->addJs('poller-generate.js', 'bottom', 'centreon-configuration');
     $tpl->addJs('poller-template.js', 'bottom', 'centreon-configuration');
     parent::listAction();
 }
 /**
  *
  * @method get
  * @route /businessactivitytype/configuration
  */
 public function listAction()
 {
     $router = Di::getDefault()->get('router');
     $this->tpl->addJs('hogan-3.0.0.min.js');
     $urls = array();
     $this->tpl->append('jsUrl', $urls, true);
     parent::listAction();
 }
 /**
  *
  * @method get
  * @route /businessview/configuration
  */
 public function listAction()
 {
     $router = Di::getDefault()->get('router');
     $this->tpl->addJs('hogan-3.0.0.min.js')->addJs('centreon.tag.js', 'bottom', 'centreon-administration');
     $urls = array('tag' => array('add' => $router->getPathFor('/centreon-administration/tag/add'), 'del' => $router->getPathFor('/centreon-administration/tag/delete')));
     $this->tpl->append('jsUrl', $urls, true);
     parent::listAction();
 }
 /**
  * List the notification methods
  *
  * @method get
  * @route /notification-method
  */
 public function listAction()
 {
     $this->tpl->addJs('component/centreon.inputWithUnit.js');
     $this->tpl->addCustomJs('$(function() {
             $("#modal").on("loaded.bs.modal", function () {
                 $(".input-time-unit").centreonInputWithUnit();
             });
         });');
     parent::listAction();
 }
 /**
  *
  * @method get
  * @route /configuration/graphtemplate
  */
 public function listAction()
 {
     $this->tpl->addCss('spectrum.css');
     $this->tpl->addJs('spectrum.js')->addJs('component/customcurvegraph.js');
     $this->tpl->addCustomJs('$(function () {
             $("#modal").on("loaded.bs.modal", function() {
                 initCustomCurveGraph();
             });
         });');
     parent::listAction();
 }
 /**
  * List of scheduled donwtime
  *
  * @method get
  * @route /scheduled-downtime
  */
 public function listAction()
 {
     $this->tpl->addCss('centreon.scheduled-downtime.css', 'centreon-configuration')->addCss('bootstrap-datetimepicker.min.css')->addJs('hogan-3.0.0.min.js')->addJs('bootstrap-datetimepicker.min.js')->addJs('centreon.scheduled-downtime.js', 'bottom', 'centreon-configuration');
     $this->tpl->addCustomJs('$(function () {
             $("#modal").on("loaded.bs.modal", function() {
                 $(".scheduled-downtime").centreonScheduledDowntime();
             });
             $("#modal").on("changed", function () {
                 $(".scheduled-downtime").centreonScheduledDowntime("resizeCal");
             });
         });');
     parent::listAction();
 }
Exemple #7
0
 /**
  * List services
  *
  * @method get
  * @route /service
  */
 public function listAction()
 {
     $router = Di::getDefault()->get('router');
     $this->tpl->addJs('jquery.qtip.min.js')->addJs('hogan-3.0.0.min.js')->addJs('centreon.tag.js', 'bottom', 'centreon-administration')->addJs('moment-with-locales.js')->addJs('moment-timezone-with-data.min.js')->addJs('centreon-clone.js')->addJs('component/custommacro.js')->addCss('centreon.qtip.css');
     $urls = array('tag' => array('add' => $router->getPathFor('/centreon-administration/tag/add'), 'del' => $router->getPathFor('/centreon-administration/tag/delete'), 'getallGlobal' => $router->getPathFor('/centreon-administration/tag/all'), 'getallPerso' => $router->getPathFor('/centreon-administration/tag/allPerso'), 'addMassive' => $router->getPathFor('/centreon-administration/tag/addMassive')));
     $this->tpl->addCustomJs('$(function () {
             $("#modal").on("loaded.bs.modal", function() {
                 initCustomMacro();
             });
         });');
     $this->tpl->append('jsUrl', $urls, true);
     $this->tpl->assign('configuration', true);
     parent::listAction();
 }