modules/Settings/MeetingServices/views/Edit.php
<?php
/**
* Settings meeting services edit/create view file.
*
* @package Settings.View
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
* @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
*/
/**
* Settings meeting services edit/create view class.
*/
class Settings_MeetingServices_Edit_View extends \App\Controller\ModalSettings
{
/** {@inheritdoc} */
public $showFooter = false;
/** {@inheritdoc} */
public function process(App\Request $request)
{
$moduleName = $request->getModule(false);
$viewer = $this->getViewer($request);
$record = !$request->isEmpty('record') ? $request->getInteger('record') : '';
if ($record) {
$recordModel = Settings_MeetingServices_Record_Model::getInstanceById($record);
} else {
$recordModel = Settings_MeetingServices_Record_Model::getCleanInstance();
}
$viewer->assign('RECORD_MODEL', $recordModel);
$viewer->assign('RECORD_ID', $record);
$viewer->assign('MODULE_NAME', $request->getModule());
$viewer->assign('QUALIFIED_MODULE', $moduleName);
$viewer->assign('BTN_SUCCESS', $this->successBtn);
$viewer->assign('BTN_SUCCESS_ICON', $this->successBtnIcon);
$viewer->assign('BTN_DANGER', $this->dangerBtn);
$viewer->view('Edit/Modal.tpl', $request->getModule(false));
}
}