Beispiel #1
0
<div class="user-form">

    <?php 
$form = ActiveForm::begin();
?>

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

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

    <?php 
echo $form->field($model, 'is_root')->checkbox();
?>

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

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

</div>
Beispiel #2
0
<?php

use yii\helpers\Html;
use yii\fluent\modules\admin\Module;
use yii\fluent\modules\admin\components\helpers\TranslationsHelper;
/* @var $this yii\web\View */
/* @var $model \yii\fluent\models\Block */
$this->title = Module::t('main', 'Translation') . " | " . $model->message;
$this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Translations'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->message, 'url' => ['update', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Module::t('main', 'Update');
$this->params['title'] = Module::t('main', 'Translation');
$this->params['subtitle'] = $model->message;
$this->params['actions'] = [['label' => Module::t('main', 'Manage'), 'icon' => 'fa fa-list', 'url' => ['index']], ['label' => Module::t('main', 'Create'), 'icon' => 'fa fa-pencil', 'url' => ['create']]];
$this->params['translations'] = TranslationsHelper::getUpdateItems($model, 'message');
?>

<?php 
echo $this->render('_form', ['model' => $model]);
Beispiel #3
0
    </div>

    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-aqua"><i class="fa fa-cog"></i></span>
            <div class="info-box-content">
                <div class="info-box-text" style="margin-bottom: 10px;"><?php 
echo Module::t('main', 'Settings');
?>
</div>
                <div>
                    <a href="<?php 
echo Url::toRoute(['settings/index']);
?>
"><i class="fa fa-list" style="width:20px"></i><?php 
echo Module::t('main', 'Manage');
?>
</a><br/>
                    <a href="<?php 
echo Url::toRoute(['settings/index']);
?>
"><i class="fa fa-wrench" style="width:20px"></i><?php 
echo Module::t('main', 'Manage (advanced)');
?>
</a>
                </div>
            </div>
        </div>
    </div>
</div>
Beispiel #4
0
<?php

use yii\helpers\Html;
use yii\fluent\modules\admin\Module;
/* @var $this yii\web\View */
/* @var $model \yii\fluent\models\Menu */
$this->title = Module::t('main', 'Menu item') . " | " . Module::t('main', 'Create');
$this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Menu'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $menu->name, 'url' => ['update', 'id' => $menu->id]];
$this->params['breadcrumbs'][] = Module::t('main', 'Menu items');
$this->params['breadcrumbs'][] = Module::t('main', 'Create');
$this->params['title'] = Module::t('main', 'Menu items');
$this->params['subtitle'] = $menu->name;
$this->params['actions'] = [['label' => Module::t('main', 'Menu items'), 'icon' => 'fa fa-list', 'url' => ['items', 'id' => $menu->id]]];
$this->params['translations'] = \yii\fluent\modules\admin\components\helpers\MenuTranslationsHelper::getCreateItems($model);
?>

<?php 
echo $this->render('_item_form', ['model' => $model, 'menu' => $menu]);
Beispiel #5
0
<?php

use yii\helpers\Html;
use yii\fluent\modules\admin\Module;
/* @var $this yii\web\View */
/* @var $model \yii\fluent\models\Block */
$this->title = Module::t('main', 'Key') . " | " . Module::t('main', 'Create');
$this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Settings'), 'url' => ['index']];
$this->params['breadcrumbs'][] = Module::t('main', 'Create');
$this->params['title'] = Module::t('main', 'Key');
$this->params['subtitle'] = Module::t('main', 'Create');
$this->params['actions'] = [['label' => Module::t('main', 'Manage (simple)'), 'icon' => 'fa fa-list', 'url' => ['simple']], ['label' => Module::t('main', 'Manage (advanced)'), 'icon' => 'fa fa-wrench', 'url' => ['index']]];
?>

<?php 
echo $this->render('_form', ['model' => $model]);
Beispiel #6
0
<?php

use yii\helpers\Html;
use yii\fluent\modules\admin\Module;
use yii\fluent\modules\admin\components\helpers\MenuTranslationsHelper;
/* @var $this yii\web\View */
/* @var $model \yii\fluent\models\Menu */
$this->title = Module::t('main', 'Menu item') . " | " . $model->title;
$this->params['breadcrumbs'][] = ['label' => Module::t('main', 'Menu'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $menu->name, 'url' => ['update', 'id' => $menu->id]];
$this->params['breadcrumbs'][] = $model->title;
$this->params['breadcrumbs'][] = Module::t('main', 'Update');
$this->params['title'] = $model->title;
$this->params['subtitle'] = Module::t('main', 'Update');
$this->params['actions'] = [['label' => Module::t('main', 'Menu items'), 'icon' => 'fa fa-list', 'url' => ['items', 'id' => $menu->id]], ['label' => Module::t('main', 'Create item'), 'icon' => 'fa fa-pencil', 'url' => ['create-item', 'menu_id' => $menu->id]]];
$this->params['translations'] = MenuTranslationsHelper::getUpdateItems($model);
?>

<?php 
echo $this->render('_item_form', ['model' => $model, 'menu' => $menu]);
Beispiel #7
0
<?php

use yii\fluent\modules\admin\widgets\Menu;
use yii\fluent\modules\admin\Module;
$items = [['label' => strtoupper(Module::t('main', 'General')), 'options' => ['class' => 'header']], ['label' => Module::t('main', 'Dashboard'), 'icon' => 'fa  fa-tachometer', 'url' => ['dashboard/index']], ['label' => Module::t('main', 'Pages'), 'icon' => 'fa fa-file-text', 'url' => ['page/index']], ['label' => Module::t('main', 'Users'), 'icon' => 'fa fa-users', 'url' => ['user/index']], ['label' => Module::t('main', 'Blocks'), 'icon' => 'fa fa-th-large', 'url' => ['block/index']], ['label' => Module::t('main', 'Menu'), 'icon' => 'fa fa-bars', 'url' => ['menu/index']], ['label' => Module::t('main', 'Settings'), 'icon' => 'fa fa-cog', 'url' => ['settings/simple'], 'items' => [['label' => Module::t('main', 'Settings'), 'icon' => 'fa fa-cog', 'url' => ['settings/simple']], ['label' => Module::t('main', 'Interface translations'), 'icon' => 'fa fa-globe', 'url' => ['message/index']]]]];
if (isset($this->params['actions'])) {
    $items[] = ['label' => strtoupper(Module::t('main', 'Actions')), 'options' => ['class' => 'header']];
    $items = array_merge($items, $this->params['actions']);
}
if (isset($this->params['translations'])) {
    $items[] = ['label' => strtoupper(Module::t('main', 'Translations')), 'options' => ['class' => 'header']];
    $items = array_merge($items, $this->params['translations']);
}
?>

<?php 
echo Menu::widget(['options' => ['class' => 'sidebar-menu'], 'items' => $items]);
Beispiel #8
0
$this->title = Module::t('main', 'Settings');
$this->params['title'] = $this->title;
$this->params['subtitle'] = Module::t('main', 'Manage');
$this->params['actions'] = [['label' => Module::t('main', 'Manage (advanced)'), 'icon' => 'fa fa-wrench', 'url' => ['index']], ['label' => Module::t('main', 'Create'), 'icon' => 'fa fa-pencil', 'url' => ['create']]];
$this->params['breadcrumbs'][] = $this->title;
foreach ($settings as $setting) {
    ?>
    <div class="box">
        <div class="box-body">
            <?php 
    $form = ActiveForm::begin(['action' => \yii\helpers\Url::to(['settings/simple', 'key' => $setting->key])]);
    ?>

            <?php 
    echo $form->field($setting, 'value')->textInput(['maxlength' => true])->label($setting->title . ' (' . $setting->key . ')');
    ?>


            <div class="form-group">
                <?php 
    echo Html::submitButton(Module::t('main', 'Update'), ['class' => 'btn btn-primary']);
    ?>
            </div>

            <?php 
    ActiveForm::end();
    ?>
        </div>
    </div>
<?php 
}
Beispiel #9
0
                    <li>
                        <a href="<?php 
echo Url::home();
?>
"><i class="fa fa-home"></i>&nbsp; <?php 
echo Module::t('main', 'Site');
?>
</a>
                    </li><!-- /.messages-menu -->

                    <li>
                        <a href="<?php 
echo Url::to(['/user/logout']);
?>
"><i class="fa fa- fa-sign-out"></i>&nbsp; <?php 
echo Module::t('main', 'Log out');
?>
</a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <?php 
echo $this->render('/partials/_menu');
?>
        </section>