public function __construct($step_number, $step_title, Template $view)
 {
     $this->load_language_resources();
     $this->init_response($step_number, $view);
     $env = new InstallDisplayGraphicalEnvironment();
     $this->add_language_bar();
     $this->init_steps();
     $this->update_progress_bar();
     $this->full_view->put_all(array('RESTART' => InstallUrlBuilder::welcome()->rel(), 'STEP_TITLE' => $step_title, 'C_HAS_PREVIOUS_STEP' => false, 'C_HAS_NEXT_STEP' => false, 'L_XML_LANGUAGE' => LangLoader::get_message('xml_lang', 'main'), 'PROGRESSION' => floor(100 * $this->current_step / ($this->nb_steps - 1)), 'PHPBOOST_VERSION' => GeneralConfig::load()->get_phpboost_major_version()));
     parent::__construct($env, $this->full_view);
 }
 private function build_form()
 {
     $this->form = new HTMLForm('licenseForm', '', false);
     $fieldset = new FormFieldsetHTML('agreementFieldset', $this->lang['step.license.terms.title']);
     $this->form->add_fieldset($fieldset);
     $agreement = new FormFieldHTML('agreementExplanation', $this->lang['step.license.require.agreement'] . '<br /><br />');
     $fieldset->add_field($agreement);
     $license_content = file_get_contents('gpl-license.txt');
     $license_block = '<div class="licence-container"><div class="license-content">' . $license_content . '</div></div>';
     $license = new FormFieldHTML('licenseContent', $license_block);
     $fieldset->add_field($license);
     $agree_checkbox = new FormFieldCheckbox('agree', $this->lang['step.license.please_agree'], FormFieldCheckbox::UNCHECKED, array('required' => $this->lang['step.license.submit.alert']));
     $fieldset->add_field($agree_checkbox);
     $action_fieldset = new FormFieldsetSubmit('actions');
     $back = new FormButtonLinkCssImg($this->lang['step.previous'], InstallUrlBuilder::welcome(), 'fa fa-arrow-left');
     $action_fieldset->add_element($back);
     $this->submit = new FormButtonSubmitCssImg($this->lang['step.next'], 'fa fa-arrow-right', 'license');
     $action_fieldset->add_element($this->submit);
     $this->form->add_fieldset($action_fieldset);
 }