Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base: 46fadf83d4
...
compare: 75490c6492
  • 2 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
48 components/pageTree/views/tree.php
View
@@ -1,14 +1,42 @@
-<h3><?php echo CHtml::link($model->t('menuName'), $model->createUrl()) ?> <?php echo CHtml::link(Yii::t('app', 'Update'), array('/p3pages/p3PageMeta/update', 'id' => $model->id), array('class' => 'btn')) ?> </h3>
<p>
+ <?php echo CHtml::link('<i class="icon-circle-arrow-right icon-white"></i> ' . $model->t('menuName'), $model->createUrl(), array('class' => 'btn btn-primary')) ?>
+
+
+
+ <?php
+ echo CHtml::link(Yii::t('app', '<i class="icon-info-sign"></i> Meta Data'), array(
+ '/p3pages/p3PageMeta/update',
+ 'id' => $model->id), array(
+ 'class' => 'btn'))
+ ?>
+
+ <?php
+ echo CHtml::link(Yii::t('app', '<i class="icon-wrench"></i> Template'), array(
+ '/p3pages/p3Page/update',
+ 'id' => $model->id), array('class' => 'btn'))
+ ?>
+ <?php
+ echo CHtml::link(Yii::t('app', '<i class="icon-file"></i> Details '), array(
+ '/p3pages/p3Page/view',
+ 'id' => $model->id), array('class' => 'btn'))
+ ?>
+
+ <?php
+ echo CHtml::link(Yii::t('app', '<i class="icon-minus-sign icon-white"></i> Delete'), '#', array('class' => 'btn btn-danger', 'submit' => array($this->controller->createUrl('p3Page/delete'), 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'))
+ ?>
- <?php foreach ($model->p3PageTranslations AS $translation): ?>
- <?php echo CHtml::link($translation->language, array('/p3pages/p3PageTranslation/update', 'id' => $translation->id), array('class' => 'btn btn-small')) ?>
- <?php endforeach; ?>
- <?php echo CHtml::link("Create New Translation", array('/p3pages/p3PageTranslation/create', 'P3PageTranslation'=>array('p3_page_id' => $model->id)), array('class' => 'btn btn-small')) ?>
</p>
<p>
- <b>Position: <?php echo $model->p3PageMeta->treePosition ?></b>
- Layout: <?php echo $model->layout ?> View: <?php echo $model->view ?> Route: <?php echo $model->route ?>
-
- <?php echo CHtml::link(Yii::t('app', 'Update'), array('/p3pages/p3Page/update', 'id' => $model->id), array('class' => 'btn')) ?>
- <?php echo CHtml::link(Yii::t('app', 'Details '), array('/p3pages/p3Page/view', 'id' => $model->id), array('class' => 'btn')) ?></p>
+ <?php foreach ($model->p3PageTranslations AS $translation): ?>
+ <?php
+ echo CHtml::link('<i class="icon-pencil icon-white"></i> ' . $translation->language, array('/p3pages/p3PageTranslation/update', 'id' => $translation->id), array('class' => 'btn btn-info'))
+ ?>
+ <?php endforeach; ?>
+ <?php
+ echo CHtml::link('<i class="icon-plus"></i> Add Translation', array('/p3pages/p3PageTranslation/create', 'P3PageTranslation' => array('p3_page_id' => $model->id)), array('class' => 'btn'))
+ ?>
+</p>
+<p>
+<h5>Position</h5> <?php echo ($model->p3PageMeta !== null) ? $model->p3PageMeta->treePosition : 'Meta Data n/a' ?></b>
+<h5>Layout</h5> <?php echo $model->layout ?> View: <?php echo $model->view ?> Route: <?php echo $model->route ?>
+</p>
6 controllers/DefaultController.php
View
@@ -42,7 +42,7 @@ public function actionPage() {
$model = P3Page::model()->default()->findByAttributes(array('name' => $name));
// redirect for consistency reasons
if ($model !== null) {
- Yii::app()->request->redirect($this->createUrl('/p2/p2Page/view', array_merge($_GET, array(P3Page::PAGE_ID_KEY => $model->id, P3Page::PAGE_NAME_KEY => $model->name))));
+ Yii::app()->request->redirect($this->createUrl('/p3/p3Page/view', array_merge($_GET, array(P3Page::PAGE_ID_KEY => $model->id, P3Page::PAGE_NAME_KEY => $model->name))));
}
} else {
throw new CHttpException(404, 'Id/name not found!');
@@ -66,7 +66,9 @@ public function actionPage() {
// record found in db
if ($route = CJSON::decode($model->route)) {
- $url = $this->createUrl($route['r'], $route);
+ $params = $route;
+ unset($params['route']);
+ $url = $this->createUrl($route['route'], $params);
//var_dump($url);exit;
$this->redirect($url);
}
8 models/P3Page.php
View
@@ -50,8 +50,9 @@ public function behaviors() {
public function rules() {
return array_merge(
- /* array('column1, column2', 'rule'), */
- parent::rules()
+ array(
+ array('route', 'match', 'pattern' => '/"route":"/', 'message' => 'Route JSON must contain a \'route\' element'),
+ ), parent::rules()
);
}
@@ -75,8 +76,7 @@ public function createUrl($additionalParams = array(), $absolute = false) {
else
return Yii::app()->controller->createUrl($link['route'], $params);
} else {
- #echo $this->id."---";
- throw new Exception('Could not determine URL string.');
+ Yii::log('Could not determine URL string for P3Page #'.$this->id , CLogger::LEVEL_WARNING);
}
}
61 models/P3PageTranslation.php
View
@@ -4,39 +4,32 @@
Yii::setPathOfAlias('P3PageTranslation', dirname(__FILE__));
Yii::import('P3PageTranslation.*');
-class P3PageTranslation extends BaseP3PageTranslation
-{
- // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
- public static function model($className=__CLASS__)
- {
- return parent::model($className);
- }
-
- public function init()
- {
- return parent::init();
- }
-
- public function __toString() {
- return (string) $this->language;
-
- }
-
- public function behaviors()
- {
- return array_merge(parent::behaviors(),array(
-));
- }
-
-
-
-
- public function rules()
- {
- return array_merge(
- /*array('column1, column2', 'rule'),*/
- parent::rules()
- );
- }
+class P3PageTranslation extends BaseP3PageTranslation {
+
+ // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
+ public static function model($className = __CLASS__) {
+ return parent::model($className);
+ }
+
+ public function init() {
+ return parent::init();
+ }
+
+ public function __toString() {
+ return (string) $this->language;
+ }
+
+ public function behaviors() {
+ return array_merge(parent::behaviors(), array(
+ ));
+ }
+
+ public function rules() {
+ return array_merge(
+ array(
+ array('seoUrl', 'match', 'pattern' => '/^[a-z0-9\-]+$/', 'message' => 'SEO URL must only conatin lowercase characters, numbers and dashes'),
+ ), parent::rules()
+ );
+ }
}
3  views/default/index.php
View
@@ -12,7 +12,8 @@
<?php } ?>
<p>
-<ul>
+<ul>
+ <li><?php echo CHtml::link('Create Page',array('/p3pages/p3Page/create')) ?></li>
<li><?php echo CHtml::link('Manage Pages',array('/p3pages/p3Page/admin')) ?></li>
</ul>
</p>
12 views/p3Page/_form.php
View
@@ -8,7 +8,7 @@
'id'=>'p3-page-form',
'enableAjaxValidation'=>true,
'enableClientValidation'=>true,
- ));
+ ));
echo $form->errorSummary($model);
?>
@@ -17,14 +17,14 @@
<?php echo $form->labelEx($model,'layout'); ?>
<?php echo $form->textField($model,'layout',array('size'=>60,'maxlength'=>128)); ?>
<?php echo $form->error($model,'layout'); ?>
-<div class='hint'><?php if('hint.P3Page.layout' != $hint = Yii::t('app', 'layout')) echo $hint; ?></div>
+<div class='hint'><?php if('hint.P3Page.layout' != $hint = Yii::t('p3pagesModule.app', 'layout')) echo $hint; ?></div>
</div>
<div class="row">
<?php echo $form->labelEx($model,'view'); ?>
<?php echo $form->textField($model,'view',array('size'=>60,'maxlength'=>128)); ?>
<?php echo $form->error($model,'view'); ?>
-<div class='hint'><?php if('hint.P3Page.view' != $hint = Yii::t('app', 'view')) echo $hint; ?></div>
+<div class='hint'><?php if('view' != $hint = Yii::t('p3pagesModule.app', 'view')) echo $hint; ?></div>
</div>
<div class="row">
@@ -36,7 +36,7 @@
));
?><div class="notice">Do not use double quotes (") for keys and/or values!</div>
<?php echo $form->error($model,'route'); ?>
-<div class='hint'><?php if('hint.P3Page.route' != $hint = Yii::t('app', 'route')) echo $hint; ?></div>
+<div class='hint'><?php if('hint.P3Page.route' != $hint = Yii::t('p3pagesModule.app', 'route')) echo $hint; ?></div>
</div>
<div class="row">
@@ -47,7 +47,7 @@
<?php
echo CHtml::Button(Yii::t('app', 'Cancel'), array(
- 'submit' => array('p3Page/admin')));
-echo CHtml::submitButton(Yii::t('app', 'Save'));
+ 'submit' => array('p3Page/admin')));
+echo CHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget(); ?>
</div> <!-- form -->
442 views/p3PageMeta/_form.php
View
@@ -1,204 +1,238 @@
-<div class="form">
- <p class="note">
- <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
- </p>
-
- <?php
- $form = $this->beginWidget('CActiveForm', array(
- 'id' => 'p3-page-meta-form',
- 'enableAjaxValidation' => true,
- 'enableClientValidation' => true,
- ));
-
- echo $form->errorSummary($model);
- ?>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'status'); ?>
- <?php echo $form->textField($model, 'status'); ?>
- <?php echo $form->error($model, 'status'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.status' != $hint = Yii::t('app', 'status')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'type'); ?>
- <?php echo $form->textField($model, 'type', array('size' => 60, 'maxlength' => 64)); ?>
- <?php echo $form->error($model, 'type'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.type' != $hint = Yii::t('app', 'type')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'language'); ?>
- <?php echo $form->textField($model, 'language', array('size' => 8, 'maxlength' => 8)); ?>
- <?php echo $form->error($model, 'language'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.language' != $hint = Yii::t('app', 'language')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <label for="treeParent"><?php echo Yii::t('app', 'TreeParent'); ?></label>
- <?php
- $this->widget(
- 'Relation', array(
- 'model' => $model,
- 'relation' => 'treeParent',
- 'fields' => '_label',
- 'allowEmpty' => true,
- 'style' => 'dropdownlist',
- 'htmlOptions' => array(
- 'checkAll' => Yii::t('app', 'Choose all'),
- ),)
- );
- ?><br />
- </div>
- <div class="row">
- <?php echo $form->labelEx($model, 'treePosition'); ?>
- <?php echo $form->textField($model, 'treePosition'); ?>
-<?php echo $form->error($model, 'treePosition'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.treePosition' != $hint = Yii::t('app', 'treePosition')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'begin'); ?>
- <?php echo $form->textField($model, 'begin'); ?>
-<?php echo $form->error($model, 'begin'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.begin' != $hint = Yii::t('app', 'begin')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'end'); ?>
- <?php echo $form->textField($model, 'end'); ?>
-<?php echo $form->error($model, 'end'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.end' != $hint = Yii::t('app', 'end')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'keywords'); ?>
- <?php echo $form->textArea($model, 'keywords', array('rows' => 6, 'cols' => 50)); ?>
-<?php echo $form->error($model, 'keywords'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.keywords' != $hint = Yii::t('app', 'keywords')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'customData'); ?>
- <?php echo $form->textArea($model, 'customData', array('rows' => 6, 'cols' => 50)); ?>
-<?php echo $form->error($model, 'customData'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.customData' != $hint = Yii::t('app', 'customData')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'label'); ?>
- <?php echo $form->textField($model, 'label'); ?>
-<?php echo $form->error($model, 'label'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.label' != $hint = Yii::t('app', 'label')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'owner'); ?>
- <?php echo $form->textField($model, 'owner', array('size' => 60, 'maxlength' => 64)); ?>
-<?php echo $form->error($model, 'owner'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.owner' != $hint = Yii::t('app', 'owner')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'checkAccessCreate'); ?>
- <?php echo $form->textField($model, 'checkAccessCreate', array('size' => 60, 'maxlength' => 256)); ?>
-<?php echo $form->error($model, 'checkAccessCreate'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.checkAccessCreate' != $hint = Yii::t('app', 'checkAccessCreate')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'checkAccessRead'); ?>
- <?php echo $form->textField($model, 'checkAccessRead', array('size' => 60, 'maxlength' => 256)); ?>
-<?php echo $form->error($model, 'checkAccessRead'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.checkAccessRead' != $hint = Yii::t('app', 'checkAccessRead')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'checkAccessUpdate'); ?>
- <?php echo $form->textField($model, 'checkAccessUpdate', array('size' => 60, 'maxlength' => 256)); ?>
-<?php echo $form->error($model, 'checkAccessUpdate'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.checkAccessUpdate' != $hint = Yii::t('app', 'checkAccessUpdate')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'checkAccessDelete'); ?>
- <?php echo $form->textField($model, 'checkAccessDelete', array('size' => 60, 'maxlength' => 256)); ?>
-<?php echo $form->error($model, 'checkAccessDelete'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.checkAccessDelete' != $hint = Yii::t('app', 'checkAccessDelete')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'createdAt'); ?>
- <?php echo $form->textField($model, 'createdAt'); ?>
-<?php echo $form->error($model, 'createdAt'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.createdAt' != $hint = Yii::t('app', 'createdAt')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'createdBy'); ?>
- <?php echo $form->textField($model, 'createdBy', array('size' => 60, 'maxlength' => 64)); ?>
-<?php echo $form->error($model, 'createdBy'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.createdBy' != $hint = Yii::t('app', 'createdBy')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'modifiedAt'); ?>
- <?php echo $form->textField($model, 'modifiedAt'); ?>
-<?php echo $form->error($model, 'modifiedAt'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.modifiedAt' != $hint = Yii::t('app', 'modifiedAt')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'modifiedBy'); ?>
- <?php echo $form->textField($model, 'modifiedBy', array('size' => 60, 'maxlength' => 64)); ?>
-<?php echo $form->error($model, 'modifiedBy'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.modifiedBy' != $hint = Yii::t('app', 'modifiedBy')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'guid'); ?>
- <?php echo $form->textField($model, 'guid', array('size' => 60, 'maxlength' => 64)); ?>
-<?php echo $form->error($model, 'guid'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.guid' != $hint = Yii::t('app', 'guid')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'ancestor_guid'); ?>
- <?php echo $form->textField($model, 'ancestor_guid', array('size' => 60, 'maxlength' => 64)); ?>
-<?php echo $form->error($model, 'ancestor_guid'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.ancestor_guid' != $hint = Yii::t('app', 'ancestor_guid')) echo $hint; ?></div>
- </div>
-
- <div class="row">
- <?php echo $form->labelEx($model, 'model'); ?>
- <?php echo $form->textField($model, 'model', array('size' => 60, 'maxlength' => 128)); ?>
-<?php echo $form->error($model, 'model'); ?>
- <div class='hint'><?php if ('hint.P3PageMeta.model' != $hint = Yii::t('app', 'model')) echo $hint; ?></div>
- </div>
-
-
- <div class="row">
- <label for="id0"><?php echo Yii::t('app', 'Id0'); ?></label>
- <?php
- $this->widget(
- 'Relation', array(
- 'model' => $model,
- 'relation' => 'id0',
- 'fields' => '_label',
- 'allowEmpty' => false,
- 'style' => 'dropdownlist',
- 'htmlOptions' => array(
- 'checkAll' => Yii::t('app', 'Choose all'),
- ),)
- );
- ?><br />
- </div>
-
-
- <?php
- echo CHtml::Button(Yii::t('app', 'Cancel'), array(
- 'submit' => array('p3PageMeta/admin')));
- echo CHtml::submitButton(Yii::t('app', 'Save'));
- $this->endWidget();
- ?>
-</div> <!-- form -->
+<div>
+ <p class="note">
+ <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
+ </p>
+
+ <?php
+ $form = $this->beginWidget('CActiveForm', array(
+ 'id' => 'p3-page-meta-form',
+ 'enableAjaxValidation' => true,
+ 'enableClientValidation' => true,
+ ));
+
+ echo $form->errorSummary($model);
+ ?>
+
+ <div class="row">
+ <div class="span3">
+ <div class="form">
+
+ <div class="row">
+ <label for="treeParent"><?php echo Yii::t('app', 'TreeParent'); ?></label>
+ <?php
+ $this->widget(
+ 'Relation', array(
+ 'model' => $model,
+ 'relation' => 'treeParent',
+ 'fields' => '_label',
+ 'allowEmpty' => true,
+ 'style' => 'dropdownlist',
+ 'htmlOptions' => array(
+ 'checkAll' => Yii::t('app', 'Choose all'),
+ ),)
+ );
+ ?><br />
+ </div>
+ <div class="row">
+ <?php echo $form->labelEx($model, 'treePosition'); ?>
+ <?php echo $form->textField($model, 'treePosition'); ?>
+ <?php echo $form->error($model, 'treePosition'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.treePosition' != $hint = Yii::t('app', 'treePosition')) echo $hint; ?></div>
+ </div>
+ <div class="row">
+ <?php echo $form->labelEx($model, 'status'); ?>
+ <?php echo $form->textField($model, 'status'); ?>
+ <?php echo $form->error($model, 'status'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.status' != $hint = Yii::t('app', 'status')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'type'); ?>
+ <?php echo $form->textField($model, 'type', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'type'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.type' != $hint = Yii::t('app', 'type')) echo $hint; ?></div>
+ </div>
+
+ </div>
+ </div>
+ <div class="span3">
+ <div class="form">
+ <div class="row">
+ <?php echo $form->labelEx($model, 'checkAccessCreate'); ?>
+ <?php echo $form->textField($model, 'checkAccessCreate', array('size' => 60, 'maxlength' => 256)); ?>
+ <?php echo $form->error($model, 'checkAccessCreate'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.checkAccessCreate' != $hint = Yii::t('app', 'checkAccessCreate')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'checkAccessRead'); ?>
+ <?php echo $form->textField($model, 'checkAccessRead', array('size' => 60, 'maxlength' => 256)); ?>
+ <?php echo $form->error($model, 'checkAccessRead'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.checkAccessRead' != $hint = Yii::t('app', 'checkAccessRead')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'checkAccessUpdate'); ?>
+ <?php echo $form->textField($model, 'checkAccessUpdate', array('size' => 60, 'maxlength' => 256)); ?>
+ <?php echo $form->error($model, 'checkAccessUpdate'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.checkAccessUpdate' != $hint = Yii::t('app', 'checkAccessUpdate')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'checkAccessDelete'); ?>
+ <?php echo $form->textField($model, 'checkAccessDelete', array('size' => 60, 'maxlength' => 256)); ?>
+ <?php echo $form->error($model, 'checkAccessDelete'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.checkAccessDelete' != $hint = Yii::t('app', 'checkAccessDelete')) echo $hint; ?></div>
+ </div>
+ </div>
+ </div>
+ <div class="span3">
+
+ <div class="form">
+
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'language'); ?>
+ <?php echo $form->textField($model, 'language', array('size' => 8, 'maxlength' => 8)); ?>
+ <?php echo $form->error($model, 'language'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.language' != $hint = Yii::t('app', 'language')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'label'); ?>
+ <?php echo $form->textField($model, 'label'); ?>
+ <?php echo $form->error($model, 'label'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.label' != $hint = Yii::t('app', 'label')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'begin'); ?>
+ <?php echo $form->textField($model, 'begin'); ?>
+ <?php echo $form->error($model, 'begin'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.begin' != $hint = Yii::t('app', 'begin')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'end'); ?>
+ <?php echo $form->textField($model, 'end'); ?>
+ <?php echo $form->error($model, 'end'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.end' != $hint = Yii::t('app', 'end')) echo $hint; ?></div>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ <div class="row">
+ <div class="span3">
+ <div class="form">
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'keywords'); ?>
+ <?php echo $form->textArea($model, 'keywords', array('rows' => 6, 'cols' => 50)); ?>
+ <?php echo $form->error($model, 'keywords'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.keywords' != $hint = Yii::t('app', 'keywords')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'customData'); ?>
+ <?php echo $form->textArea($model, 'customData', array('rows' => 6, 'cols' => 50)); ?>
+ <?php echo $form->error($model, 'customData'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.customData' != $hint = Yii::t('app', 'customData')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'owner'); ?>
+ <?php echo $form->textField($model, 'owner', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'owner'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.owner' != $hint = Yii::t('app', 'owner')) echo $hint; ?></div>
+ </div>
+
+ </div>
+ </div>
+ <div class="span3">
+ <div class="form">
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'createdAt'); ?>
+ <?php echo $form->textField($model, 'createdAt'); ?>
+ <?php echo $form->error($model, 'createdAt'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.createdAt' != $hint = Yii::t('app', 'createdAt')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'createdBy'); ?>
+ <?php echo $form->textField($model, 'createdBy', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'createdBy'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.createdBy' != $hint = Yii::t('app', 'createdBy')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'modifiedAt'); ?>
+ <?php echo $form->textField($model, 'modifiedAt'); ?>
+ <?php echo $form->error($model, 'modifiedAt'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.modifiedAt' != $hint = Yii::t('app', 'modifiedAt')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'modifiedBy'); ?>
+ <?php echo $form->textField($model, 'modifiedBy', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'modifiedBy'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.modifiedBy' != $hint = Yii::t('app', 'modifiedBy')) echo $hint; ?></div>
+ </div>
+ </div>
+ </div>
+ <div class="span3">
+ <div class="form">
+
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'guid'); ?>
+ <?php echo $form->textField($model, 'guid', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'guid'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.guid' != $hint = Yii::t('app', 'guid')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'ancestor_guid'); ?>
+ <?php echo $form->textField($model, 'ancestor_guid', array('size' => 60, 'maxlength' => 64)); ?>
+ <?php echo $form->error($model, 'ancestor_guid'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.ancestor_guid' != $hint = Yii::t('app', 'ancestor_guid')) echo $hint; ?></div>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model, 'model'); ?>
+ <?php echo $form->textField($model, 'model', array('size' => 60, 'maxlength' => 128)); ?>
+ <?php echo $form->error($model, 'model'); ?>
+ <div class='hint'><?php if ('hint.P3PageMeta.model' != $hint = Yii::t('app', 'model')) echo $hint; ?></div>
+ </div>
+
+
+ <div class="row">
+ <label for="id0"><?php echo Yii::t('app', 'Id0'); ?></label>
+ <?php
+ $this->widget(
+ 'Relation', array(
+ 'model' => $model,
+ 'relation' => 'id0',
+ 'fields' => '_label',
+ 'allowEmpty' => false,
+ 'style' => 'dropdownlist',
+ 'htmlOptions' => array(
+ 'checkAll' => Yii::t('app', 'Choose all'),
+ ),)
+ );
+ ?><br />
+ </div>
+
+
+ <?php
+ echo CHtml::Button(Yii::t('app', 'Cancel'), array(
+ 'submit' => array('p3PageMeta/admin')));
+ echo CHtml::submitButton(Yii::t('app', 'Save'));
+ $this->endWidget();
+ ?>
+ </div>
+ </div>
+ </div>
+</div> <!--
+ form -->

No commit comments for this range

Something went wrong with that request. Please try again.