<?php use yii\helpers\Html; use themes\admin360\widgets\ActionButtons; $this->title = 'ساخت صفحه جدید'; $this->params['breadcrumbs'][] = ['label' => 'صفحات استاتیک', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="page-create"> <?php echo ActionButtons::widget(['buttons' => ['index' => ['label' => 'مدیریت صفحات']]]); ?> <?php echo $this->render('_form', ['model' => $model]); ?> </div>
<?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 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();
<?php use yii\helpers\Html; use themes\admin360\widgets\ActionButtons; $this->title = 'ویرایش صفحه : ' . ' ' . $model->title; $this->params['breadcrumbs'][] = ['label' => 'صفحات استاتیک', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' => $model->id]]; $this->params['breadcrumbs'][] = 'ویرایش صفحه ' . $model->title; ?> <div class="page-update"> <?php echo ActionButtons::widget(['modelID' => $model->id, 'buttons' => ['index' => ['label' => 'مدیریت صفحات'], 'create' => ['label' => 'صفحه جدید']]]); ?> <?php echo $this->render('_form', ['model' => $model]); ?> </div>
<hr /> <div class="row"> <div class="col-sm-12" style="text-align: center;"> <h3>به پنل مدیریت وب سایت <?php echo \Yii::$app->name; ?> خوش آمدید</h3> <?php echo Html::img(\Yii::$app->homeUrl . '/images/admin.png'); ?> </div> </div> <!-- <div class="row"> <div class="col-sm-12"> <?php echo ActionButtons::widget(['modelID' => 10, 'buttons' => ['create' => [], 'update' => [], 'delete' => []]]); ?> </div> </div> <div class="row"> <div class="col-sm-4"> <?php Panel::begin(['title' => 'پنل ساده', 'footer' => 'panel footer']); ?> لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد <?php Panel::end(); ?> </div> <div class="col-sm-4"> <?php
<?php use yii\helpers\Html; use themes\admin360\widgets\ActionButtons; $this->title = 'کاربر جدید'; $this->params['breadcrumbs'][] = ['label' => 'کاربران', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-create"> <?php echo ActionButtons::widget(['modelID' => $model->id, 'buttons' => ['index' => ['label' => 'مدیریت کاربران']]]); ?> <?php echo $this->render('_form', ['model' => $model]); ?> </div>