use yii\helpers\Html; use themes\admin360\widgets\Panel; use themes\admin360\widgets\Button; use yii\bootstrap\ActiveForm; use modules\user\backend\models\User; use modules\user\common\widgets\ShowPassword; $backLink = $model->isNewRecord ? ['index'] : ['view', 'id' => $model->id]; ?> <div class="user-form"> <?php $form = ActiveForm::begin(['enableClientValidation' => true, 'id' => 'user-form']); ?> <div class="row"> <div class="col-md-8"> <?php Panel::begin(['title' => 'اطلاعات کاربر', 'options' => ['class' => 'panel-primary']]); ?> <?php echo $form->field($model, 'email')->textInput(['class' => 'form-control input-medium', 'style' => 'direction:ltr']); ?> <?php if ($model->isNewRecord) { ?> <?php echo $form->field($model, 'password')->widget(ShowPassword::className(), ['options' => ['class' => 'form-control']]); ?> <?php } ?> <?php echo $form->field($model, 'type')->dropDownList([User::TYPE_OPERATOR => 'اپراتور', User::TYPE_EDITOR => 'سردبیر', User::TYPE_SUPERUSER => 'مدیر سیستم'], ['class' => 'form-control input-small']);
<?php use yii\helpers\Html; use themes\admin360\widgets\Panel; use themes\admin360\widgets\Button; use yii\bootstrap\ActiveForm; use themes\admin360\widgets\ActionButtons; use modules\user\backend\models\User; use modules\user\common\widgets\ShowPassword; echo ActionButtons::widget(['modelID' => $model->id, 'buttons' => ['index' => ['label' => 'مدیریت کاربران'], 'view' => ['url' => ['view', 'id' => $model->id], 'type' => 'success', 'icon' => 'eye', 'label' => 'مشاهده اطلاعات کاربر']]]); Panel::begin(['title' => 'تغییر کلمه عبور']); ?> <div class="user-form"> <?php $form = ActiveForm::begin(['enableClientValidation' => true, 'id' => 'user-form']); ?> <div class="row"> <div class="col-md-8"> <?php echo $form->field($model, 'password')->widget(ShowPassword::className(), ['options' => ['class' => 'form-control']])->label('کلمه عبور جدید'); ?> </div> <div class="col-md-4"> <?php echo Html::submitButton('<i class="fa fa-save"></i> ذخیره', ['class' => 'btn btn-lg btn-success']); ?> <?php echo Button::widget(['label' => 'انصراف', 'options' => ['class' => 'btn-lg'], 'type' => 'warning', 'icon' => 'undo', 'url' => ['view', 'id' => $model->id]]); ?> </div> </div>
<?php Panel::end(); ?> <?php } ?> <?php Panel::begin(['title' => 'تصویر شاخص']); ?> <?php echo SingleImageUpload::widget(['model' => $model, 'group' => 'image']); ?> <?php Panel::end(); ?> <?php Panel::begin(['title' => 'ویژگی های صفحه']); ?> <?php echo $form->field($model, 'isActive')->checkbox(); ?> <?php Panel::end(); ?> </div> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($settings['email.smtpUsername'], "[email.smtpUsername]value")->textInput(['maxlength' => 255, 'class' => 'form-control input-medium'])->label($settings['email.smtpUsername']->getLabel()); ?> </div> <div class="col-md-6"> <?php echo $form->field($settings['email.smtpPassword'], "[email.smtpPassword]value")->textInput(['maxlength' => 255, 'class' => 'form-control input-medium'])->label($settings['email.smtpPassword']->getLabel()); ?> </div> </div> <?php Panel::end(); ?> <?php Panel::begin(['title' => 'گوگل آنالیتیکز']); ?> <div class="row"> <div class="col-md-8"> <?php echo $field = $form->field($settings['website.googleAnalytics'], "[website.googleAnalytics]value")->textInput(['class' => 'form-control input-large', 'style' => 'direction:ltr', 'placeholder' => 'UA-XXXXX-X'])->label($settings['website.googleAnalytics']->getLabel()); ?> </div> </div> <?php Panel::end(); ?> <div class="form-group"> <?php echo Html::submitButton('<i class="fa fa-save"></i> ذخیره', ['class' => 'btn btn-lg btn-success']); ?>
<?php use yii\widgets\Pjax; use yii\helpers\Html; use yii\grid\GridView; use themes\admin360\widgets\Panel; use themes\admin360\widgets\ActionButtons; use modules\user\backend\models\User; $this->title = 'مدیریت کاربران'; $this->params['breadcrumbs'][] = $this->title; echo ActionButtons::widget(['buttons' => ['create' => ['label' => 'کاربر جدید']]]); Panel::begin(['title' => 'لیست کاربران']); ?> <?php Pjax::begin(['id' => 'user-grid', 'enablePushState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'kalpok\\grid\\IDColumn'], 'email', ['attribute' => 'type', 'filter' => User::typeLabels(), 'value' => function ($model) { return $model->getTypeLabel(); }], 'lastLoggedInAt:datetime', ['attribute' => 'status', 'filter' => User::statusLabels(), 'value' => function ($model) { return $model->getStatusLabel(); }], ['class' => 'kalpok\\grid\\ActionColumn', 'template' => '{view} {update} {delete} {assign} {change-password}', 'buttons' => ['assign' => function ($url, $model, $key) { if ($model->type != User::TYPE_SUPERUSER) { return Html::a('<span class="fa fa-lock"></span>', $url, ['title' => 'اعطای دسترسی', 'data-pjax' => 0]); } }, 'change-password' => function ($url, $model, $key) { return Html::a('<span class="fa fa-key"></span>', $url, ['title' => 'تغییر رمز عبور', 'data-pjax' => 0]); }]]]]); ?> <?php
<?php use themes\admin360\widgets\Panel; use yii\widgets\DetailView; use themes\admin360\widgets\ActionButtons; use modules\user\backend\models\User; $this->title = $model->email; echo ActionButtons::widget(['modelID' => $model->id, 'buttons' => ['index' => ['label' => 'مدیریت کاربران'], 'create' => ['label' => 'کاربر جدید'], 'update' => ['label' => 'ویرایش کاربر'], 'change-password' => ['icon' => 'key', 'type' => 'warning', 'label' => 'تغییر رمز عبور', 'url' => ['change-password', 'id' => $model->id]], 'delete' => ['label' => 'حذف کاربر']]]); Panel::begin(['title' => $model->email]); ?> <div class="user-view"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id:farsiNumber', 'email', ['attribute' => 'status', 'value' => $model->getStatusLabel()], 'createdAt:datetime', 'lastLoggedInAt:datetime', ['attribute' => 'type', 'value' => $model->gettypeLabel()]]]); ?> </div> <?php Panel::end();
</div> <div class="row"> <div class="col-sm-4"> <?php Panel::begin(['title' => 'پنل green', 'options' => ['class' => 'panel-green'], 'footer' => 'panel footer']); ?> لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد <?php Panel::end(); ?> </div> <div class="col-sm-4"> <?php Panel::begin(['title' => 'پنل yellow', 'options' => ['class' => 'panel-yellow'], 'footer' => 'panel footer']); ?> لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد <?php Panel::end(); ?> </div> <div class="col-sm-4"> <?php Panel::begin(['title' => 'پنل red', 'options' => ['class' => 'panel-red'], 'footer' => 'panel footer']); ?> لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد <?php Panel::end(); ?> </div> </div> -->
<?php use yii\widgets\Pjax; use yii\grid\GridView; use themes\admin360\widgets\Panel; use themes\admin360\widgets\ActionButtons; $this->title = 'صفحات استاتیک'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="Pages-index"> <?php echo ActionButtons::widget(['buttons' => ['create' => ['label' => 'صفحه جدید']]]); Panel::begin(['title' => 'لیست صفحات استاتیک']); Pjax::begin(['id' => 'page-gridviewpjax', 'enablePushState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'kalpok\\grid\\IDColumn'], ['class' => 'kalpok\\grid\\LanguageColumn'], ['class' => 'kalpok\\grid\\ThumbnailColumn', 'group' => 'image', 'label' => 'تصویر شاخص'], ['attribute' => 'title', 'value' => function ($model) { return $model->prefixedTitle; }], ['attribute' => 'createdAt', 'format' => 'date', 'filter' => false], ['class' => 'kalpok\\grid\\ActiveColumn'], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update}']]]); Pjax::end(); Panel::end(); ?> </div>
Panel::end(); ?> <?php } ?> <?php Panel::begin(['title' => 'سایر اطلاعات']); ?> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id:farsiNumber', ['attribute' => 'language', 'visible' => Yii::$app->i18n->isMultiLanguage(), 'format' => 'language'], 'title', 'createdAt:date', 'updatedAt:date', 'isActive:boolean', ['label' => "صفحه پدر", 'visible' => !$model->isRoot(), 'value' => $model->isRoot() ?: Html::a($model->getParent()->title, ['view', 'id' => $model->getParent()->id]), 'format' => 'raw']]]); ?> <?php Panel::end(); ?> <?php Panel::begin(['title' => 'زیرمجموعه ها']); ?> <?php if (!empty($children)) { ?> <ul class="children" style="list-style:none; font-size:115%"> <?php foreach ($children as $child) { ?> <li><?php echo $child->prefixedTitle; ?> </li> <?php } ?>