Skip to content

Commit

Permalink
Merge branch 'master' of http://git.centreon.com/centreon
Browse files Browse the repository at this point in the history
  • Loading branch information
bsauveton committed Jul 10, 2015
2 parents 837bc06 + b66f436 commit aeb173a
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 14 deletions.
3 changes: 2 additions & 1 deletion core/controllers/ListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ public function listAction()


/* Display variable */
$this->tpl->assign('objectName', $this->objectDisplayName);
$this->tpl->assign('objectDisplayName', $this->objectDisplayName);
$this->tpl->assign('objectName', static::$objectName);
$this->tpl->assign('datatableObject', $this->datatableObject);
$this->tpl->assign('moduleName', static::$moduleName);
$this->tpl->assign('objectAddUrl', $this->objectBaseUrl . '/add');
Expand Down
2 changes: 1 addition & 1 deletion core/views/tools/datatable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<div class="buttonGroup btDatatable">
{if (isset($objectAddUrl) && !empty($objectAddUrl))}
<div class="configuration-actions">
<button class="btnC btnSuccess" id="modalAdd">{t}Add {$objectName}{/t}</button>
<button class="btnC btnSuccess" id="modalAdd">{t}Add {$objectDisplayName}{/t}</button>
</div>
{/if}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

class AclresourceController extends FormController
{
protected $objectDisplayName = 'AclResource';
protected $objectDisplayName = 'Acl Resource';
public static $objectName = 'aclresource';
protected $objectBaseUrl = '/centreon-administration/aclresource';
protected $objectClass = '\CentreonAdministration\Models\Aclresource';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
class AuthController extends FormController{

protected $objectDisplayName = 'Auth';
protected $objectDisplayName = 'Authentication';
public static $objectName = 'auth';
public static $enableDisableFieldName = 'ar_enable';
protected $datatableObject = '\CentreonAdministration\Internal\AuthDatatable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ public function listeAction()


/* Display variable */
$this->tpl->assign('objectName', $this->objectDisplayName);
$this->tpl->assign('objectName', static::$objectName);
$this->tpl->assign('objectDisplayName', $this->objectDisplayName);
$this->tpl->assign('datatableObject', $this->datatableObject);
$this->tpl->assign('moduleName', static::$moduleName);
$this->tpl->assign('objectAddUrl', '');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

class BusinessActivityController extends FormController
{
protected $objectDisplayName = 'BusinessActivity';
protected $objectDisplayName = 'Business Activity';
public static $objectName = 'businessactivity';
public static $enableDisableFieldName = 'activate';
protected $objectClass = '\CentreonBam\Models\BusinessActivity';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function displayHostsAction()
$this->tpl->assign('moduleName', 'CentreonBam');
$this->tpl->assign('datatableObject', $this->datatableObject);
$this->tpl->assign('objectName', 'BusinessActivity');
$this->tpl->assign('objectDisplayName', 'Business Activity');
//$this->tpl->assign('consoleType', 0); // host console
$this->tpl->assign('objectListUrl', '/centreon-bam/businessactivity/realtime/list');
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

class ContactTemplateController extends FormController
{
protected $objectDisplayName = 'Contacttemplate';
protected $objectDisplayName = 'Contact Template';
public static $objectName = 'contacttemplate';
public static $enableDisableFieldName = 'contact_activate';
protected $objectBaseUrl = '/centreon-configuration/contacttemplate';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HostTemplateController extends FormController
*
* @var string
*/
protected $objectDisplayName = 'Hosttemplate';
protected $objectDisplayName = 'Host Template';

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
class NotificationMethodController extends FormController
{
protected $objectDisplayName = 'NotificationMethod';
protected $objectDisplayName = 'Notification Method';
public static $objectName = 'notification-method';
protected $objectBaseUrl = '/centreon-configuration/notification-method';
protected $datatableObject = '\CentreonConfiguration\Internal\NotificationMethodDatatable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
class NotificationRuleController extends FormController
{
protected $objectDisplayName = 'NotificationRule';
protected $objectDisplayName = 'Notification Rule';
public static $objectName = 'notification-rule';
protected $objectBaseUrl = '/centreon-configuration/notification-rule';
protected $datatableObject = '\CentreonConfiguration\Internal\NotificationRuleDatatable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
class ScheduledDowntimeController extends FormController
{
protected $objectDisplayName = 'ScheduledDowntime';
protected $objectDisplayName = 'Scheduled Downtime';
public static $objectName = 'scheduled-downtime';
public static $enableDisableFieldName = 'dt_activate';
protected $objectBaseUrl = '/centreon-configuration/scheduled-downtime';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
class ServiceTemplateController extends FormController
{
protected $objectDisplayName = 'ServiceTemplate';
protected $objectDisplayName = 'Service Template';
public static $objectName = 'servicetemplate';
public static $enableDisableFieldName = 'service_activate';
protected $objectBaseUrl = '/centreon-configuration/servicetemplate';
Expand Down
4 changes: 2 additions & 2 deletions modules/CentreonMainModule/views/list.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{extends file="file:[Core]baseLayout.tpl"}

{block name="title"}{$objectName}{/block}
{block name="title"}{$objectDisplayName}{/block}

{block name="content"}

Expand All @@ -11,7 +11,7 @@
<div class="first-content"></div>

{if isset($objectAddUrl)}
{datatable module=$moduleName object=$objectName datatableObject=$datatableObject displayActionBar=$displayActionBar objectAddUrl=$objectAddUrl}
{datatable module=$moduleName object=$objectName objectDisplayName=$objectDisplayName datatableObject=$datatableObject displayActionBar=$displayActionBar objectAddUrl=$objectAddUrl}
{else}
{datatable module=$moduleName object=$objectName datatableObject=$datatableObject displayActionBar=$displayActionBar}
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function displayDowntimesAction()
$this->tpl->assign('moduleName', 'CentreonRealtime');
$this->tpl->assign('datatableObject', $this->datatableObject);
$this->tpl->assign('objectName', 'Downtimes');
$this->tpl->assign('objectDisplayName', 'Downtimes');
$this->tpl->assign('consoleType', 0); // host console
$this->tpl->assign('objectListUrl', '/centreon-realtime/downtimes/list');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function displayHostsAction()
$this->tpl->assign('moduleName', 'CentreonRealtime');
$this->tpl->assign('datatableObject', $this->datatableObject);
$this->tpl->assign('objectName', 'Host');
$this->tpl->assign('objectDisplayName', 'Host');
$this->tpl->assign('objectListUrl', '/centreon-realtime/host/list');

$actions = array();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public function displayServicesAction()
/* Datatable */
$tpl->assign('moduleName', 'CentreonRealtime');
$tpl->assign('datatableObject', $this->datatableObject);
$tpl->assign('objectDisplayName', 'Service');
$tpl->assign('objectName', 'Service');
$tpl->assign('objectListUrl', '/centreon-realtime/service/list');

Expand Down

0 comments on commit aeb173a

Please sign in to comment.