Exemplo n.º 1
0
/* @var $searchModel backend\models\NewsletterSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$session = Yii::$app->session;
if (!$session['language_id']) {
    $session['language_id'] = LanguageRecord::getMainLanguageId();
}
$this->title = Yii::t('back', 'Newsletters');
$this->params['breadcrumbs'][] = $this->title;
$modelClass = Yii::t('back', 'Newsletter');
?>
<div>

	<?php 
if ($session['language_id'] || LanguageRecord::existsMoreLanguageRecords(false, true)) {
    echo '<div class="pull-right">';
    echo LanguageButtonDropdown::widget(['routeBase' => ['page/index']]);
    echo '</div>';
}
?>

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

	<?php 
if (Yii::$app->user->can('manager')) {
    ?>
	    <p>
	        <?php 
    echo Html::a(Yii::t('back', 'Create {modelClass}', compact('modelClass')), ['create'], ['class' => 'btn btn-success']);
Exemplo n.º 2
0
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$session = Yii::$app->session;
if (!$session['language_id']) {
    $session['language_id'] = LanguageRecord::getMainLanguageId();
}
$this->title = Yii::t('back', 'Additional fields');
$this->params['breadcrumbs'][] = $this->title;
$modelClass = Yii::t('back', 'Additional field');
?>
<div>

	<?php 
if ($session['language_id'] || LanguageRecord::existsMoreLanguageRecords(false, true)) {
    echo '<div class="pull-right">';
    echo LanguageButtonDropdown::widget(['routeBase' => ['additional-field/index']]);
    echo '</div>';
}
?>

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::button(Yii::t('back', 'Create {modelClass}', compact('modelClass')), ['value' => Url::to(['additional-field/create']), 'title' => Yii::t('back', 'Create {modelClass}', compact('modelClass')), 'class' => 'showModalButton btn btn-success']);
?>
    </p>
Exemplo n.º 3
0
/* @var $searchModel backend\models\CategorySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$session = Yii::$app->session;
if (!$session['language_id']) {
    $session['language_id'] = LanguageRecord::getMainLanguageId();
}
$this->title = Yii::t('back', 'Categories');
$this->params['breadcrumbs'][] = $this->title;
$modelClass = Yii::t('back', 'Category');
?>
<div>

	<?php 
if ($session['language_id'] || LanguageRecord::existsMoreLanguageRecords(false, true)) {
    echo '<div class="pull-right">';
    echo LanguageButtonDropdown::widget(['routeBase' => ['category/index']]);
    echo '</div>';
}
?>

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::button(Yii::t('back', 'Create {modelClass}', compact('modelClass')), ['value' => Url::to(['category/create']), 'title' => Yii::t('back', 'Create {modelClass}', compact('modelClass')), 'class' => 'showModalButton btn btn-success']);
?>
    </p>
Exemplo n.º 4
0
use common\models\LanguageRecord;
use yii\helpers\Html;
use yii\widgets\ListView;
$session = Yii::$app->session;
if (!$session['language_id']) {
    $session['language_id'] = LanguageRecord::getMainLanguageId();
}
$this->title = Yii::t('back', 'Files');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="file-index">

	<?php 
if (LanguageRecord::existsMoreLanguageRecords(false, true)) {
    echo '<div class="pull-right">';
    echo LanguageButtonDropdown::widget(['routeBase' => ['file/files']]);
    echo '</div>';
}
?>

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a(Yii::t('back', 'Manage source files'), ['files-manage'], ['class' => 'btn btn-primary']);
?>
    </p>
Exemplo n.º 5
0
/* @var $menu \common\models\MenuRecord */
/* @var $web_id integer */
/* @var $menu_id integer */
$session = Yii::$app->session;
$menu = $model->getMenu();
$this->title = Yii::t('back', 'Menu Items');
$this->params['breadcrumbs'][] = $menu->web->title . ' - ' . $menu->title;
$modelClass = Yii::t('back', 'Menu item');
?>

<div>

    <?php 
if ($model->language_id || LanguageRecord::existsMoreLanguageRecords(false, true)) {
    echo '<div class="pull-right">';
    echo LanguageButtonDropdown::widget(['routeBase' => ['menu-item/index']]);
    echo '</div>';
}
?>

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
$createUrl = ['menu-item/create', 'mid' => $model->menu_id];
echo Html::button(Yii::t('back', 'Create {modelClass}', compact('modelClass')), ['value' => Url::to($createUrl), 'title' => Yii::t('back', 'Create {modelClass}', compact('modelClass')), 'class' => 'showModalButton btn btn-success']);
?>
    </p>