mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°2847 - Fix TWIG exceptions due non existent JS templates
This commit is contained in:
@@ -34,7 +34,6 @@ class Alert extends UIBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-alert';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/alert/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/alert/layout';
|
||||
|
||||
// Specific constants
|
||||
/** @var string ENUM_COLOR_PRIMARY */
|
||||
|
||||
@@ -19,7 +19,6 @@ class Field extends UIBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-field';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/field/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/field/layout';
|
||||
|
||||
/** @var array */
|
||||
protected $aParams;
|
||||
|
||||
@@ -19,7 +19,6 @@ class FieldSet extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-fieldset';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/fieldset/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/fieldset/layout';
|
||||
|
||||
/** @var string */
|
||||
protected $sLegend;
|
||||
|
||||
@@ -19,7 +19,6 @@ class Form extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-form';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/form/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/form/layout';
|
||||
|
||||
/** @var string */
|
||||
protected $sOnSubmitJsCode;
|
||||
|
||||
@@ -19,7 +19,6 @@ class Input extends UIBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-input';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/input/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/input/layout';
|
||||
|
||||
public const INPUT_HIDDEN = 'hidden';
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ class Panel extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-panel';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/panel/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/panel/layout';
|
||||
|
||||
// Specific constants
|
||||
/** @var string ENUM_COLOR_PRIMARY */
|
||||
|
||||
@@ -19,7 +19,6 @@ class Title extends UIBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-title';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'components/title/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'components/title/layout';
|
||||
|
||||
/** @var string */
|
||||
protected $sTitle;
|
||||
|
||||
@@ -19,5 +19,4 @@ class Column extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-column';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'layouts/column/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'layouts/column/layout';
|
||||
}
|
||||
@@ -20,7 +20,6 @@ class MultiColumn extends UIBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-multicolumn';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'layouts/multicolumn/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'layouts/multicolumn/layout';
|
||||
|
||||
/** @var array */
|
||||
protected $aColumns;
|
||||
|
||||
@@ -33,7 +33,6 @@ class Tab extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-tab';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'layouts/tabcontainer/tab/tab';
|
||||
public const JS_TEMPLATE_REL_PATH = 'layouts/tabcontainer/tab/tab';
|
||||
|
||||
protected const TAB_TYPE = TabManager::ENUM_TAB_TYPE_HTML;
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ class TabContainer extends UIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-tabcontainer';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'layouts/tabcontainer/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'layouts/tabcontainer/layout';
|
||||
public const JS_FILES_REL_PATH = [
|
||||
'js/layouts/tab-container.js'
|
||||
];
|
||||
|
||||
@@ -17,7 +17,7 @@ class UIContentBlock extends UIBlock implements iUIContentBlock
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-contentblock';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'layouts/contentblock/layout';
|
||||
public const JS_TEMPLATE_REL_PATH = 'layouts/contentblock/layout';
|
||||
|
||||
/** @var array */
|
||||
protected $aCSSClasses;
|
||||
/** @var array */
|
||||
|
||||
Reference in New Issue
Block a user