mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3551 - Migrate module to new UIBlock system : Customer Survey
This commit is contained in:
24
css/backoffice/vendors/_jquery-multiselect.scss
vendored
24
css/backoffice/vendors/_jquery-multiselect.scss
vendored
@@ -112,6 +112,30 @@ button.ui-multiselect > span {
|
||||
text-decoration:none
|
||||
}
|
||||
|
||||
/**for multiselect in 3.0*/
|
||||
.ui-dialog-titlebar.ui-multiselect-header {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.ui-dialog-titlebar.ui-multiselect-header ul {
|
||||
padding-left: 0px;
|
||||
width:100%;
|
||||
}
|
||||
.ui-dialog-titlebar.ui-multiselect-header a{
|
||||
color:$ibo-color-grey-900;
|
||||
font-weight:normal;
|
||||
}
|
||||
.ui-multiselect, .ui-multiselect-menu, .ui-multiselect-header{
|
||||
background-color: $ibo-color-grey-100;
|
||||
}
|
||||
button.ui-multiselect {
|
||||
padding-right:10px !important;
|
||||
}
|
||||
button.ui-multiselect .fas{
|
||||
float:right;
|
||||
padding-left:10px;
|
||||
}
|
||||
|
||||
/**for multiselect in 3.0*/
|
||||
.ui-dialog-titlebar.ui-multiselect-header {
|
||||
padding-left: 20px;
|
||||
|
||||
@@ -644,6 +644,8 @@
|
||||
},
|
||||
|
||||
checkAll: function(e) {
|
||||
/* currentTarget.addClass();
|
||||
currentTarget.removeClass();*/
|
||||
this._toggleChecked(true);
|
||||
this._trigger('checkAll');
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// Copyright (C) 2010-2021 Combodo SARL
|
||||
// Copyright (C) 2010-2012 Combodo SARL
|
||||
//
|
||||
// This file is part of iTop.
|
||||
//
|
||||
@@ -25,7 +25,7 @@ use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||
* The WizardController provides the "<< Back" feature by storing a stack
|
||||
* of the previous screens. The WizardController also maintains from page
|
||||
* to page a list of "parameters" to be dispayed/edited by each of the steps.
|
||||
* @copyright Copyright (C) 2010-2021 Combodo SARL
|
||||
* @copyright Copyright (C) 2010-2012 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
@@ -233,9 +233,9 @@ $('form').each(function () {
|
||||
width: 0
|
||||
}));
|
||||
});
|
||||
$('#btn_back').on('click', function() { $('#wiz_form').data('back', true); });
|
||||
$('#btn_back').click(function() { $('#wiz_form').data('back', true); });
|
||||
|
||||
$('#wiz_form').on('submit', function() {
|
||||
$('#wiz_form').submit(function() {
|
||||
if ($(this).data('back'))
|
||||
{
|
||||
return CanMoveBackward();
|
||||
@@ -346,7 +346,7 @@ on the page's parameters
|
||||
* If a step needs to maintain an internal "state" (for complex steps)
|
||||
* then it's up to the derived class to implement the behavior based on
|
||||
* the internal 'sCurrentState' variable.
|
||||
* @copyright Copyright (C) 2010-2021 Combodo SARL
|
||||
* @copyright Copyright (C) 2010-2012 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ var oTable{{ sListIDForVarSuffix }} = $('#{{ oUIBlock.GetId() }}').DataTable({
|
||||
{% if oUIBlock.GetOption("select_mode") is not empty %}
|
||||
updateDataTableSelection('{{ sListId }}', '{{ oUIBlock.GetId() }}');
|
||||
{% if oUIBlock.GetOption("select_mode") != "single" %}
|
||||
this.api().on('select', function (oEvent, dt, type, indexes) {
|
||||
this.api().on('select', function (oEvent, dt, type, indexes) {
|
||||
if (bSelectAllowed{{ oUIBlock.GetId() }})
|
||||
{
|
||||
let aData = oTable{{ sListIDForVarSuffix }}.rows(indexes).data().toArray();
|
||||
|
||||
@@ -20,9 +20,11 @@
|
||||
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
|
||||
require_once(__DIR__.'/../approot.inc.php');
|
||||
require_once(APPROOT.'/application/application.inc.php');
|
||||
require_once(APPROOT.'/application/excelexporter.class.inc.php');
|
||||
|
||||
require_once(APPROOT.'/application/startup.inc.php');
|
||||
|
||||
|
||||
const EXIT_CODE_ERROR = -1;
|
||||
const EXIT_CODE_FATAL = -2;
|
||||
|
||||
@@ -226,11 +228,11 @@ if (!empty($sExpression))
|
||||
);
|
||||
} else {
|
||||
$aExtraParams = array(
|
||||
'menu' => false,
|
||||
'toolkit_menu' => false,
|
||||
'display_limit' => false,
|
||||
'menu' => false,
|
||||
'toolkit_menu' => false,
|
||||
'display_limit' => false,
|
||||
'localize_values' => $bLocalize,
|
||||
'zlist' => 'details',
|
||||
'zlist' => 'details',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user