Esempio n. 1
0
                    <input id="' . $index . '_' . $name . '" type="radio" name="' . $name . '" value="' . $value . '" ' . $seleccion . '>
                    <label for="' . $index . '_' . $name . '">' . $label . '</label>
                 </div>';
    return $html;
}, 'itemOptions' => ['labelOptions' => []]];
$inputCheckBoxListOpciones = ['style' => 'margin-top: 10px;', 'tag' => 'div', 'class' => 'control-group', 'item' => function ($index, $label, $name, $checked, $value) {
    $seleccion = $checked == true ? 'checked' : '';
    $html = '<div class="checkbox checkbox-primary checkbox-inline">
                    <input id="' . $index . '_' . $name . '" type="checkbox" name="' . $name . '" value="' . $value . '" ' . $seleccion . '>
                    <label for="' . $index . '_' . $name . '">' . $label . '</label>
                 </div>';
    return $html;
}, 'itemOptions' => ['labelOptions' => []]];
$inputClase = 'form-control input-md';
$inputReadClase = 'form-control form-control-static';
$listadoImagenes = Yii::$app->controller->action->id != 'publicar-articulo' ? ImagenHelper::listaImagenesString([]) : [];
$ImagenPrincipal = Yii::$app->controller->action->id != 'publicar-articulo' ? $model->obtenerPosicionImagenPrincipal() : 0;
$session = Yii::$app->session;
?>

<?php 
$form = ActiveForm::begin(['id' => 'articulo', "enableClientValidation" => false, 'enableAjaxValidation' => true, 'validateOnChange' => false, 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => 'enviarForm form', 'role' => 'form'], 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'hintOptions' => ['tag' => 'span'], 'errorOptions' => ['tag' => 'span'], 'horizontalCssClasses' => ['label' => 'col-sm-3', 'offset' => 'col-sm-offset-3', 'wrapper' => 'col-sm-9', 'error' => 'error-block', 'hint' => 'help-block']]]);
?>
    <!-- BEGIN CONTENIDO -->
    <div class="row">
        <div class="col-md-12">
            <div class="card-box">


                    <div class="row">
                        <div class="col-xs-12">
Esempio n. 2
0
                    <label for="' . $index . '_' . $name . '">' . $label . '</label>
                 </div>';
    return $html;
}, 'itemOptions' => ['labelOptions' => []]];
$inputCheckBoxListOpciones = ['style' => 'margin-top: 10px;', 'tag' => 'div', 'class' => 'control-group', 'item' => function ($index, $label, $name, $checked, $value) {
    $seleccion = $checked == true ? 'checked' : '';
    $html = '<div class="checkbox checkbox-primary checkbox-inline">
                    <input id="' . $index . '_' . $name . '" type="checkbox" name="' . $name . '" value="' . $value . '" ' . $seleccion . '>
                    <label for="' . $index . '_' . $name . '">' . $label . '</label>
                 </div>';
    return $html;
}, 'itemOptions' => ['labelOptions' => []]];
$inputClase = 'form-control input-md';
$inputReadClase = 'form-control form-control-static';
$articulo = $model->cargarArticulo();
$listadoImagenes = Yii::$app->controller->action->id != 'publicar' ? ImagenHelper::listaImagenesString($articulo->archivos) : [];
$ImagenPrincipal = Yii::$app->controller->action->id != 'publicar' ? $articulo->obtenerPosicionImagenPrincipal() : 0;
$session = Yii::$app->session;
?>


<?php 
$form = ActiveForm::begin(['id' => 'articulo', "enableClientValidation" => false, 'enableAjaxValidation' => false, 'validateOnChange' => false, 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => 'enviarForm form', 'role' => 'form'], 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'hintOptions' => ['tag' => 'span'], 'errorOptions' => ['tag' => 'span'], 'horizontalCssClasses' => ['label' => 'col-sm-3', 'offset' => 'col-sm-offset-3', 'wrapper' => 'col-sm-9', 'error' => 'error-block', 'hint' => 'help-block']]]);
?>
    <!-- BEGIN CONTENIDO -->
    <div class="row">
        <div class="col-md-12">
            <div class="card-box">

                <?php 
echo Html::activeHiddenInput($model, 'idarticulo');
Esempio n. 3
0
                </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>
                ';
    return $html;
}, 'itemOptions' => ['labelOptions' => ['class' => 'radio-inline radio-styled']]];
$inputClase = 'form-control input-md';
$inputReadClase = 'form-control form-control-static';
$avatar = '';
//$model->imagenCategoria();
$listadoImagenes = Yii::$app->controller->action->id != 'crear' ? ImagenHelper::listaImagenesString($model->archivos) : [];
$ImagenPrincipal = Yii::$app->controller->action->id != 'crear' ? $model->obtenerPosicionImagenPrincipal() : 0;
$session = Yii::$app->session;
?>


<?php 
$form = ActiveForm::begin(['id' => 'articulo', "enableClientValidation" => false, 'enableAjaxValidation' => true, 'validateOnChange' => false, 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => 'enviarForm form', 'role' => 'form']]);
?>

    <!-- 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">