<?php use Gbox\helpers\Url; use Gbox\helpers\Html; use app\widgets\Bootstrap; use Gbox\helpers\Form; ?> <div class="row"> <div class="col-md-6"> <?php echo isset($msg) ? Bootstrap::Alert($msg, $modelAccount->hasErrors() ? 'danger' : 'success') : ''; ?> <?php $form = new Form(['method' => 'post']); ?> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><strong><?php echo $this->title; ?> </strong></h3></div> <div class="panel-body"> <p><strong>Datos personales</strong></p> <?php echo $form->field($modelAccount, 'firstname')->input('text', ['placeholder' => $modelAccount->getAttrLabel('firstname')])->label(false); ?> <?php echo $form->field($modelAccount, 'lastname')->input('text', ['placeholder' => $modelAccount->getAttrLabel('lastname')])->label(false); ?> <hr /> <p><strong>Datos de acceso</strong></p> <?php
<?php use Gbox\helpers\Url; use Gbox\helpers\Html; use app\widgets\Bootstrap; use Gbox\helpers\Form; ?> <div class="row"> <div class="col-md-6"> <?php echo $msg ? Bootstrap::Alert($msg, $model->hasErrors() ? 'danger' : 'success') : ''; ?> <?php $form = new Form(['method' => 'post']); ?> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><strong><?php echo $this->title; ?> </strong></h3></div> <div class="panel-body"> <?php echo $form->field($model, 'username')->input('text', ['placeholder' => 'Usuario o correo electrónico'])->label(false); ?> <?php echo $form->field($model, 'password')->input('password', ['placeholder' => $model->getAttrLabel('password')])->label(false); ?> </div> <div class="panel-footer text-right"> <div class="pull-left"> <?php
<?php echo $form->field($modelSignIn, 'rememberMe')->input('checkbox', ['class' => ''])->label(false)->setTemplate('<div class="checkbox"><label>{input} No cerrar sesión</label></div>'); ?> </div> <?php echo Html::submitButton("Iniciar sesión", ["class" => "btn btn-primary"]); ?> </div> </div> <?php $form->end(); ?> </div> <div class="col-md-5 col-md-offset-2"> <?php $form = new Form(['method' => 'post', 'action' => URL::to('@web/account/sign-up')]); ?> <input type="hidden" name="quick_sign_up" value="1" /> <div class="panel panel-default"> <div class="panel-heading"><h3 class="panel-title"><strong>Registrarme en <?php echo Gbox::getConfig()->params['app_name']; ?> </strong></h3></div> <div class="panel-body"> <?php echo $form->field($modelSignUp, 'email')->input('email'); ?> <?php echo $form->field($modelSignUp, 'password')->input('password'); ?> <?php