<?php /* * This file is part of the HomeFinanceV2 project. * * (c) Rafalsky.com <http://github.com/Rafalsky/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use backend\assets\BackendAsset; use yii\helpers\Html; use yii\helpers\ArrayHelper; /* @var $this \yii\web\View */ /* @var $content string */ $bundle = BackendAsset::register($this); $this->params['body-class'] = array_key_exists('body-class', $this->params) ? $this->params['body-class'] : null; ?> <?php $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo \Yii::$app->language; ?> "> <head> <meta charset="<?php echo \Yii::$app->charset; ?>
<?php /* @var $this \yii\web\View */ /* @var $content string */ use backend\assets\AppAsset; use backend\assets\BackendAsset; use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use common\widgets\Alert; use common\components\MetodosHelper; use yii\widgets\Breadcrumbs; //AppAsset::register($this); BackendAsset::register($this); $usuario = Yii::$app->getUser(); $ocultarAcciones = ['portada', 'articulo', 'crear', 'actualizar']; $mostrarAcciones = ['portada', 'articulo', 'crear', 'actualizar']; $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "> <meta http-equiv="content-type" content="text/html; charset=utf8"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; use backend\assets\BackendAsset; use kartik\file\FileInput; use himiklab\thumbnail\EasyThumbnailImage; /* @var $this yii\web\View */ /* @var $model common\models\Usuarios */ /* @var $form yii\widgets\ActiveForm */ $baseUrl = BackendAsset::register($this)->baseUrl; $inputOpciones = ['template' => "{input}\n{label}\n{hint}\n{error}\n", 'options' => ['class' => 'form-group floating-label']]; $inputReadOpciones = ['template' => "{label}\n{input}\n{hint}\n{error}\n", 'options' => ['class' => 'form-group floating-label']]; $inputRadioListOpciones = ['style' => 'margin-top: 10px;', 'tag' => 'div', 'item' => function ($index, $label, $name, $checked, $value) { $html = '<label class="radio-inline radio-styled"> <input type="radio" name="' . $name . '" value="' . $value . '" ' . $checked . '><span>' . $label . '</span> </label>'; return $html; }, 'itemOptions' => ['labelOptions' => ['class' => 'radio-inline radio-styled']]]; $inputClase = 'form-control input-md'; $inputReadClase = 'form-control form-control-static'; $avatar = empty($model->foto) ? $baseUrl . '/img/avatar1.jpg' : Yii::getAlias('@libreria') . '/imagenes/usuarios/' . $model->foto; ?> <?php $form = ActiveForm::begin(['id' => 'categoria', "enableClientValidation" => false, 'enableAjaxValidation' => true, 'action' => Url::toRoute(['crear']), 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => 'form', 'role' => 'form']]); ?> <div class="modal-header">
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; /* @var $this \yii\web\View */ /* @var $content string */ \backend\assets\BackendAsset::register($this); $this->params['body-class'] = array_key_exists('body-class', $this->params) ? $this->params['body-class'] : null; ?> <?php $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title); ?>