Exemple #1
0
            <div class="panel-body">
                <?php 
$form = ActiveForm::begin(['id' => 'login-form']);
?>

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

                <?php 
echo $form->field($model, 'password')->passwordInput();
?>

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

                <?php 
ActiveForm::end();
?>
            </div>
        </div>
        <div class="text-center">
            <a class="logo" href="https://github.com/roboapp" target="_blank" title="RoboappCMS homepage">
                RoboappCMS
            </a>
        </div>
    </div>
</div>
Exemple #2
0
<?php

use roboapp\admin\Module;
$this->title = Module::t('Welcome');
?>
<p><?php 
echo Module::t('Welcome to control panel, choose which section you want to manage in left menu.');
?>
</p>
Exemple #3
0
                        <i class="glyphicon glyphicon-hdd"></i>
                        <?php 
echo Module::t('System');
?>
                    </a>
                    <a href="<?php 
echo Url::to(['#']);
?>
"
                       class="menu-item <?php 
echo $moduleName == 'admin' && $this->context->id == 'logs' ? 'active' : '';
?>
">
                        <i class="glyphicon glyphicon-align-justify"></i>
                        <?php 
echo Module::t('Logs');
?>
                    </a>
-->
            </div>
            <div class="box content">
                <div class="page-title">
                    <?php 
echo $this->title;
?>
                </div>
                <div class="container-fluid">
                    <?php 
echo Alert::widget();
?>
Exemple #4
0
 /**
  * @param array $url URL config
  * @return array|null link data
  */
 protected function detectData($url)
 {
     switch ($url[0]) {
         case 'delete':
             return ['confirm' => Module::t('Are you sure you want to delete this item?'), 'method' => 'post'];
         case 'restore':
             return ['confirm' => Module::t('Are you sure you want to restore this item?'), 'method' => 'post'];
         default:
             return null;
     }
 }