Exemplo n.º 1
0
<?php

use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use cmsgears\core\common\widgets\Editor;
use cmsgears\files\widgets\FileUploader;
$coreProperties = $this->context->getCoreProperties();
$this->title = $coreProperties->getSiteTitle() . ' | Update Page';
// Sidebar
$this->params['sidebar-parent'] = 'sidebar-cms';
$this->params['sidebar-child'] = 'page';
Editor::widget(['selector' => '.content-editor']);
?>
<section class="wrap-content container clearfix">
	<div class="cud-box">
		<h2>Update Page</h2>
		<?php 
$form = ActiveForm::begin(['id' => 'frm-page-create', 'options' => ['class' => 'frm-split form-with-editor']]);
?>

    	<?php 
echo $form->field($model, 'name');
?>
    	<?php 
echo $form->field($content, 'templateId')->dropDownList($templatesMap);
?>
		<?php 
echo $form->field($model, 'status')->dropDownList($statusMap);
?>
		<?php 
Exemplo n.º 2
0
<?php

// Yii Imports
use yii\widgets\ActiveForm;
use yii\helpers\Html;
// CMG Imports
use cmsgears\core\common\widgets\Editor;
$coreProperties = $this->context->getCoreProperties();
$this->title = $coreProperties->getSiteTitle() . ' | Add Newsletter';
Editor::widget(['selector' => '.content-editor', 'loadAssets' => true]);
?>
<div class="box box-cud">
	<div class="box-wrap-header">
		<div class="header">Add Newsletter</div>
	</div>
	<div class="box-wrap-content frm-split-40-60">
		<?php 
$form = ActiveForm::begin(['id' => 'frm-newsletter']);
?>

    	<?php 
echo $form->field($model, 'name');
?>
    	<?php 
echo $form->field($model, 'description')->textarea();
?>
		<?php 
echo $form->field($model, 'templateId')->dropDownList($templatesMap);
?>

		<div class="box-content clearfix">