47 return parent::getTitle() .
' - ' . Zurmo::t(
'ReportsModule',
'Matrix');
63 $gridView->setView($moduleForReportWizardView, 0, 0);
64 $gridView->setView($filtersForReportWizardView, 1, 0);
65 $gridView->setView($groupBysForReportWizardView, 2, 0);
66 $gridView->setView($displayAttributesForReportWizardView, 3, 0);
67 $gridView->setView($generalDataForReportWizardView, 4, 0);
68 return $gridView->render();
77 assert(
'is_string($formName)');
78 return "linkId = $('#" . $formName .
"').find('.attachLoadingTarget').attr('id');
81 $('#" . static::getValidationScenarioInputId() .
"').val('" .
82 ReportWizardForm::FILTERS_VALIDATION_SCENARIO .
"');
83 $('#ModuleForReportWizardView').hide();
84 " . static::renderTreeViewAjaxScriptContent($formName,
'FiltersForReportWizardView', $this->model->type) .
"
85 $('#FiltersForReportWizardView').show();
86 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('40%');
87 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').next().addClass('current-step');
91 $('#" . static::getValidationScenarioInputId() .
"').val('" .
92 ReportWizardForm::GROUP_BYS_VALIDATION_SCENARIO .
"');
93 $('#FiltersForReportWizardView').hide();
94 " . static::renderTreeViewAjaxScriptContent($formName,
'GroupBysForReportWizardView', $this->model->type) .
"
95 $('#GroupBysForReportWizardView').show();
96 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('60%');
97 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').next().addClass('current-step');
101 $('#" . static::getValidationScenarioInputId() .
"').val('" .
102 ReportWizardForm::DISPLAY_ATTRIBUTES_VALIDATION_SCENARIO .
"');
103 $('#GroupBysForReportWizardView').hide();
104 " . static::renderTreeViewAjaxScriptContent($formName,
'DisplayAttributesForReportWizardView', $this->model->type) .
"
105 $('#DisplayAttributesForReportWizardView').show();
106 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('80%');
107 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').next().addClass('current-step');
111 $('#" . static::getValidationScenarioInputId() .
"').val('" .
112 ReportWizardForm::GENERAL_DATA_VALIDATION_SCENARIO .
"');
113 $('#DisplayAttributesForReportWizardView').hide();
114 $('#GeneralDataForReportWizardView').show();
115 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('100%');
116 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').next().addClass('current-step');
124 $('#" . $formName .
"').find('.attachLoadingTarget').removeClass('loading');
125 $('#" . $formName .
"').find('.attachLoadingTarget').removeClass('loading-ajax-submit');
126 $('#" . $formName .
"').find('.attachLoadingTarget').removeClass('attachLoadingTarget');
131 protected function registerClickFlowScript()
133 Yii::app()->clientScript->registerScript(
'clickflow',
"
137 url = document.referrer;
138 window.location.href = url;
145 $('#" . static::getValidationScenarioInputId() .
"').val('" . ReportWizardForm::MODULE_VALIDATION_SCENARIO .
"');
146 $('#" . WizardActiveForm::makeErrorsSummaryId(static::getFormId()) .
"').hide();
147 $('#ModuleForReportWizardView').show();
148 $('#FiltersForReportWizardView').hide();
149 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('20%');
150 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');
157 $('#" . static::getValidationScenarioInputId() .
"').val('" . ReportWizardForm::FILTERS_VALIDATION_SCENARIO .
"');
158 $('#FiltersForReportWizardView').show();
159 $('#GroupBysForReportWizardView').hide();
160 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('40%');
161 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');
168 $('#" . static::getValidationScenarioInputId() .
"').val('" . ReportWizardForm::GROUP_BYS_VALIDATION_SCENARIO .
"');
169 $('#GroupBysForReportWizardView').show();
170 $('#DisplayAttributesForReportWizardView').hide();
171 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('60%');
172 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');
179 $('#" . static::getValidationScenarioInputId() .
"').val('" . ReportWizardForm::DISPLAY_ATTRIBUTES_VALIDATION_SCENARIO .
"');
180 $('#DisplayAttributesForReportWizardView').show();
181 $('#GeneralDataForReportWizardView').hide();
182 $('.StepsAndProgressBarForWizardView').find('.progress-bar').width('80%');
183 $('.StepsAndProgressBarForWizardView').find('.current-step').removeClass('current-step').prev().addClass('current-step');
190 protected function registerModuleClassNameChangeScriptExtraPart()
192 return " $('#GroupBysForReportWizardView').find('.dynamic-rows').find('ul:first').find('li').remove();
193 $('#GroupBysTreeArea').html('');
static getNextPageLinkId()
static getZeroComponentsClassName()
static getPreviousPageLinkId()
static getPreviousPageLinkId()
renderConfigSaveAjax($formName)
renderContainingViews(WizardActiveForm $form)
static getNextPageLinkId()
static getNextPageLinkId()
static getPreviousPageLinkId()
static getNextPageLinkId()
static getPreviousPageLinkId()
static getPreviousPageLinkId()
static getNextPageLinkId()
getSaveAjaxString($formName, $redirectAfterSave=true, array $additionalAjaxOptions=array())