use yii\helpers\Html; use yii\helpers\Url; use yii\bootstrap\ActiveForm; use yii\bootstrap\BaseHtml; use yii\captcha\Captcha; use frontend\assets\WebAsset; /* @var $this yii\web\View */ /* @var $model common\models\Denuncias */ /* @var $articulo common\models\Articulos */ /* @var $form yii\widgets\ActiveForm */ WebAsset::register($this); $url_terminos = $url_politica = ''; $texto_condiciones = BaseHtml::a('términos de uso', $url_terminos); $texto_condiciones .= Yii::t('app', ' y la '); $texto_condiciones .= BaseHtml::a('política de privacidad.', $url_politica); $inputRadioListOpciones = ['style' => 'margin-top: 10px;', 'tag' => 'div', 'item' => function ($index, $label, $name, $checked, $value) { $seleccion = $checked == true ? 'checked' : ''; $html = ' <input type="radio" id="motivo-' . $index . '" name="' . $name . '" value="' . $value . '" ' . $seleccion . ' > <label for="motivo-' . $index . '" style="display:block">' . $label . '</label> '; return $html; }, 'itemOptions' => ['labelOptions' => ['class' => 'radio-inline radio-styled']]]; ?> <?php $form = ActiveForm::begin(['layout' => 'horizontal', 'id' => 'denuncia', "enableClientValidation" => false, 'enableAjaxValidation' => false, 'validateOnChange' => false, 'options' => ['validateOnSubmit' => true, 'class' => '', 'role' => 'form', 'method' => 'post'], 'options' => ['validateOnSubmit' => true, 'enctype' => 'multipart/form-data', 'class' => '', 'role' => 'form', 'data-pjax' => true], 'fieldConfig' => ['options' => ['class' => 'form-group'], 'hintOptions' => ['tag' => 'span', 'class' => 'help-block'], 'errorOptions' => ['tag' => 'span', 'class' => 'help-block help-block-error'], 'inputOptions' => ['class' => 'form-control'], 'checkboxTemplate' => "<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>"]]); ?> <!-- BEGIN CONTENIDO -->
<span class="labelData"><?php echo Html::encode($this->title); ?> </span> </div> <div class="col-md-8 text-right labelData"> </div> </div> </div> </div> <div class="escolha-empresa-view"> <div class="row"> <div class="col-md-8 col-md-offset-2 text-center"> <?php $form = ActiveForm::begin(['layout' => 'inline']); ?> <div class="form-group"> <label for="escolha_empresa">Empresas: </label> <?php echo \yii\bootstrap\BaseHtml::dropDownList('escolha_empresa', null, \yii\helpers\ArrayHelper::map(app\models\EmpresasUsuarios::find()->where(['usuario_id' => Yii::$app->user->getId()])->all(), 'empresa_id', 'empresa.nome_fantasia'), ['class' => 'form-control', 'id' => 'escolha_empresa']); ?> </div> <button type="submit" id="btnEscolhaEmpresa" class="btn btn-primary">Escolher</button> <?php ActiveForm::end(); ?> </div> </div> </div> </div>