<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; use backend\assets\BackendAsset; use kartik\file\FileInput; /* @var $this yii\web\View */ /* @var $model common\models\Categorias */ /* @var $form yii\widgets\ActiveForm */ $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()]]); $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) { $seleccion = $checked == true ? 'checked' : ''; $html = '<label class="radio-inline radio-styled"> <input type="radio" name="' . $name . '" value="' . $value . '" ' . $seleccion . '><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 = $model->imagenCategoria(); ?>
<?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 -->
use yii\widgets\ActiveForm; use kartik\file\FileInput; use yii\web\View; use backend\assets\BackendAsset; use common\components\ImagenHelper; use common\extensions\cmsAB\dropzone\DropZone; /* @var $this yii\web\View */ /* @var $model common\models\Articulos */ /* @var $listadocategorias common\models\Articulos */ /* @var $form yii\widgets\ActiveForm */ //$this->registerJsFile('@web/js/core/demo/PublicarArticulosForm.js', ['depends' => [BackendAsset::className()]]); $this->registerJsFile('@web/js/core/demo/DemoFormEditors.js', ['depends' => [BackendAsset::className()]]); $this->registerJsFile('@web/js/core/demo/DemoFormComponents.js', ['depends' => [BackendAsset::className()]]); $this->registerJsFile('@web/js/core/demo/DemoUIMessages.js', ['depends' => [BackendAsset::className()]]); $this->registerJsFile('/libreria/plugins/crop/cropper.js', ['depends' => [BackendAsset::className()]]); $this->registerJsFile('/libreria/plugins/crop/main.js', ['depends' => [BackendAsset::className()]]); $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) { $seleccion = $checked == true ? 'checked' : ''; $html = '<label class="radio-inline radio-styled"> <input type="radio" name="' . $name . '" value="' . $value . '" ' . $seleccion . '><span>' . $label . '</span> </label>'; return $html; }, 'itemOptions' => ['labelOptions' => ['class' => 'radio-inline radio-styled']]]; $inputCheckBoxListOpciones = ['style' => 'margin-top: 10px;', 'tag' => 'div', 'item' => function ($index, $label, $name, $checked, $value) { $seleccion = $checked == true ? 'checked' : ''; $html = '<label class="checkbox-inline checkbox-styled"> <input type="checkbox" name="' . $name . '" value="' . $value . '" ' . $seleccion . '><span>' . $label . '</span> </label>