Beispiel #1
0
<?php

/**
 * @author Semenov Alexander <*****@*****.**>
 * @link http://skeeks.com/
 * @copyright 2010 SkeekS (СкикС)
 * @date 27.05.2015
 */
/* @var $this yii\web\View */
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
$form = ActiveForm::begin();
?>
    <?php 
echo $form->fieldSet(\Yii::t('app', 'Showing'));
?>
        <?php 
echo $form->field($model, 'viewFile')->textInput();
?>
    <?php 
echo $form->fieldSetEnd();
?>

    <?php 
echo $form->fieldSet(\Yii::t('app', 'Pagination'));
?>
        <?php 
echo $form->fieldRadioListBoolean($model, 'enabledPaging', \Yii::$app->cms->booleanFormat());
?>
        <?php 
echo $form->fieldRadioListBoolean($model, 'enabledPjaxPagination', \Yii::$app->cms->booleanFormat());
?>
Beispiel #2
0
<?php

use yii\helpers\Html;
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
use common\models\User;
/* @var $this yii\web\View */
/* @var $model \skeeks\cms\models\CmsUser */
/* @var $console \skeeks\cms\controllers\AdminUserController */
?>


<?php 
$form = \skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab::begin();
?>

<?php 
echo $form->fieldSet(\Yii::t('skeeks/cms', 'General information'));
?>


    <?php 
echo $form->fieldRadioListBoolean($model, 'active');
?>

    <?php 
echo $form->field($model, 'gender')->radioList(['men' => \Yii::t('skeeks/cms', 'Male'), 'women' => \Yii::t('skeeks/cms', 'Female')]);
?>

    <?php 
echo $form->field($model, 'image_id')->widget(\skeeks\cms\widgets\formInputs\StorageImage::className());
?>
Beispiel #3
0
<?php

use yii\helpers\Html;
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
use skeeks\cms\models\Tree;
use skeeks\cms\modules\admin\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $model Tree */
?>


<?php 
$form = ActiveForm::begin(['id' => 'sx-dynamic-form', 'enableAjaxValidation' => false]);
?>

<? $this->registerJs(<<<JS

(function(sx, $, _)
{
    sx.classes.DynamicForm = sx.classes.Component.extend({

        _onDomReady: function()
        {
            var self = this;

            $("[data-form-reload=true]").on('change', function()
            {
                self.update();
            });
        },
Beispiel #4
0
            }

            sx.alert(file);
            return this;
        }
    });

    sx.SelectFile = new sx.classes.SelectFile();

})(sx, sx.$, sx._);
JS
);
?>

<? $form = ActiveForm::begin([
    'usePjax' => false
]); ?>

<? if ($model) : ?>
    <?php 
echo $form->fieldSet(\Yii::t('skeeks/cms', 'Files attached to records'));
?>

        <? \yii\bootstrap\Alert::begin(['options' => [
          'class' => 'alert-info',
        ]]); ?>
            <?php 
echo \Yii::t('skeeks/cms', 'At this tab displays all the files and images that are tied to the current element.');
?>
        <? \yii\bootstrap\Alert::end(); ?>
Beispiel #5
0
})(sx, sx.\$, sx._);
JS
);
$statusDate = \Yii::$app->formatter->asDatetime($model->status_at);
?>

<h1 style="text-align: center;">Просмотр заказа № <?php 
echo $model->id;
?>
, от <?php 
echo \Yii::$app->formatter->asDatetime($model->created_at);
?>
</h1>

<?php 
$form = ActiveForm::begin(['pjaxOptions' => ['id' => 'sx-pjax-order-wrapper']]);
?>

<?php 
echo $form->fieldSet(\Yii::t('skeeks/shop/app', 'General information'));
?>

    <?php 
echo \skeeks\cms\modules\admin\widgets\BlockTitleWidget::widget(['content' => \Yii::t('skeeks/shop/app', 'Order')]);
?>

        <?php 
echo \yii\widgets\DetailView::widget(['model' => $model, 'template' => "<tr><th style='width: 50%; text-align: right;'>{label}</th><td>{value}</td></tr>", 'attributes' => [['label' => \Yii::t('skeeks/shop/app', 'Last modified'), 'format' => 'raw', 'value' => \Yii::$app->formatter->asDatetime($model->updated_at)], ['label' => \Yii::t('skeeks/shop/app', 'Status'), 'format' => 'raw', 'value' => <<<HTML

                    <a href="#sx-status-change" class="sx-dashed sx-fancybox" style="color: {$model->status->color}">{$model->status->name}</a>
                    <small>({$statusDate})</small>
/* @var $cmsUser \skeeks\cms\models\CmsUser */
/* @var $shopFuser \skeeks\cms\shop\models\ShopFuser */
$this->registerCss(<<<CSS
h1 a
{
    border-bottom: 1px dashed;
    text-decoration: none;
}
h1 a:hover
{
    border-bottom: 1px dashed;
    text-decoration: none;
}
CSS
);
$form = ActiveForm::begin(['id' => 'sx-change-user', 'method' => 'get', 'usePjax' => false]);
?>
<h1 style="text-align: center;">Новый заказ для покупателя: <a href="#" class="sx-change-user">выбрать</a> или <a href="#">создать</a></h1>
<hr />

<div style="text-align: center">
    <a href="#" class="btn btn-lg btn-primary sx-btn-for-me" data-me="<?php 
echo \Yii::$app->user->identity->id;
?>
">Создать для меня</a>
</div>
<div style="display: none;">
    <?php 
echo \skeeks\cms\modules\admin\widgets\formInputs\SelectModelDialogUserInput::widget(['id' => 'cmsUserId', 'name' => 'cmsUserId']);
?>
</div>