Esempio n. 1
0
?>

    <?php 
echo $form->field($model, 'template_show')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'author')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'click')->textInput();
?>

    <?php 
echo $form->field($model, 'status')->dropDownList(\clh021\wechat_ionic1\models\Status::labels());
?>

    <div class="form-group">
        <div class="col-lg-3 col-lg-offset-2">
            <?php 
echo Html::submitButton($model->isNewRecord ? Module::t('wechat', 'Create') : Module::t('wechat', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
Esempio n. 2
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use clh021\wechat_ionic1\Module;
/* @var $this yii\web\View */
/* @var $model app\models\CmsShow */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Module::t('wechat', 'Cms Shows'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="cms-show-view">

    <p>
        <?php 
echo Html::a(Module::t('wechat', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Module::t('wechat', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Module::t('wechat', 'Are you sure you want to delete this item?'), 'method' => 'post']]);
?>
    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', ['attribute' => 'catalog_id', 'value' => $model->catalog->title], 'title', 'surname', 'brief', 'content:ntext', 'seo_title', 'seo_keywords', 'seo_description', 'banner', 'template_show', 'author', 'click', ['attribute' => 'status', 'value' => \clh021\wechat_ionic1\models\Status::labels($model->status)], 'created_at:datetime', 'updated_at:datetime']]);
?>

</div>
Esempio n. 3
0
    ?>
</td>
            <td><?php 
    echo $item['sort_order'];
    ?>
</td>
            <td><?php 
    echo CmsCatalog::getCatalogPageTypeLabels($item['page_type']);
    ?>
</td>
            <td><?php 
    echo \clh021\wechat_ionic1\models\YesNo::labels()[$item['is_nav']];
    ?>
</td>
            <td><?php 
    echo \clh021\wechat_ionic1\models\Status::labels()[$item['status']];
    ?>
</td>
            <td>
                <?php 
    if ($item['page_type'] == CmsCatalog::PAGE_TYPE_LIST) {
        ?>
<a href="<?php 
        echo \Yii::$app->getUrlManager()->createUrl(['cms/cms-show/create', 'catalog_id' => $item['id']]);
        ?>
" title="<?php 
        echo Module::t('wechat', 'Add Show');
        ?>
" data-pjax="0"><span class="glyphicon glyphicon-file"></span></a> <?php 
    }
    ?>
Esempio n. 4
0
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use clh021\wechat_ionic1\Module;
/* @var $this yii\web\View */
/* @var $model app\models\CmsCatalog */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Module::t('wechat', 'Cms Catalogs'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="cms-catalog-view">

    <p>
        <?php 
echo Html::a(Module::t('wechat', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Module::t('wechat', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Module::t('wechat', 'Are you sure you want to delete this item?'), 'method' => 'post']]);
?>
    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', ['attribute' => 'parent_id', 'value' => $model->parent_id ? $model->parent->title : Module::t('wechat', 'Root Catalog')], 'title', 'surname', 'brief', 'content:ntext', 'seo_title', 'seo_keywords', 'seo_description', 'banner', ['attribute' => 'is_nav', 'value' => \clh021\wechat_ionic1\models\YesNo::labels($model->is_nav)], 'sort_order', ['attribute' => 'page_type', 'value' => \clh021\wechat_ionic1\models\CmsCatalog::getCatalogPageTypeLabels($model->page_type)], 'page_size', 'template_list', 'template_show', 'template_page', 'redirect_url:url', ['attribute' => 'status', 'value' => \clh021\wechat_ionic1\models\Status::labels($model->status)], 'created_at:datetime', 'updated_at:datetime']]);
?>

</div>