Beispiel #1
0
<?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;
?>
Beispiel #2
0
<?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">
Beispiel #3
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\PaginasCategorias;
use kartik\tree\TreeView;
/* @var $this yii\web\View */
/* @var $model common\models\PaginasCategorias */
/* @var $form yii\widgets\ActiveForm */
$categorias = new PaginasCategorias();
//echo '<pre>';print_r(['sd',$categorias->listadoCategoriasJerarquia()]);die();
$this->registerJsFile('@web/js/core/demo/DemoFormEditors.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->registerJsFile('@web/js/core/demo/DemoFormComponents.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
?>

<?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data', 'class' => 'enviarForm']]);
?>

<!-- BEGIN CONTENIDO -->
<div class="row">
    <div class="col-lg-12">
        <h4>Información General</h4>
    </div><!--end .col -->
    <div class="col-lg-3 col-md-4">
        <article class="margin-bottom-xxl">
            <p>
                Utiliza este apartado para establecer un título y subtítulo a tu página de inicio. Recuerda que es muy importante que el usuario se sienta identificado con lo que está buscanso, por ello te recomendamos utilizar títulos descriptivos.
            </p>
        </article>
    </div><!--end .col -->
Beispiel #4
0
<?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">
Beispiel #5
0
use yii\helpers\Html;
use yii\widgets\Pjax;
use yii\grid\GridView;
use yii\grid\DataColumn;
use yii\helpers\Url;
use himiklab\thumbnail\EasyThumbnailImage;
/* @var $this yii\web\View */
/* @var $model common\models\CrearCategoriaForm */
/* @var $searchModel common\models\CategoriasBuscador */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->registerJsFile('@web/js/core/demo/DemoFormEditors.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->registerJsFile('@web/js/core/demo/DemoFormComponents.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->registerJsFile('@web/js/core/demo/DemoUIMessages.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->registerJsFile('@web/js/libs/crop/cropper.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->registerJsFile('@web/js/libs/crop/main.js', ['depends' => [\backend\assets\BackendAsset::className()]]);
$this->title = Yii::t('app', 'Articulos');
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="section-body contain-lg">

    <!-- BEGIN INTRO -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="text-primary"><?php 
echo Html::encode($this->title);
?>
</h1>
        </div><!--end .col -->
        <div class="col-lg-8">
Beispiel #6
0
<?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);
?>