Example #1
0
<?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 
Example #2
0
<?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 
Example #3
0
    $this->title = 'Gbox Framework';
}
if (!$this->description) {
    $this->description = 'Descripción de Gbox Framework';
}
SiteAssets::register($this);
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
echo $this->renderHead();
?>
</head>
<body>
	<?php 
echo AppMenu::Show();
?>
	<div class="container">
		<?php 
if ($response = Session::get('response')) {
    echo Bootstrap::Alert($response['msg'], array_key_exists('type', $response) ? $response['type'] : 'danger', true);
    Session::destroy('response');
}
?>
		<?php 
echo $content;
?>
	</div>
</body>
</html>
Example #4
0
 public static function Show()
 {
     return Bootstrap::Navbar('mainmenu', Bootstrap::NavbarNav('mainmenu', [['name' => 'Página principal', 'url' => Url::goHome()], ['name' => 'Características', 'url' => Url::to('@web/features')], ['name' => 'GitHub', 'url' => 'https://github.com/RoxguelDevs/GboxFramework', 'target' => '_blank'], Gbox::$components->user->isGuest ? null : ['name' => 'Mi cuenta', 'url' => Url::to('@web/account')], Gbox::$components->user->isGuest ? ['name' => 'Acceder', 'url' => Url::to('@web/account/login')] : ['name' => 'Cerrar sesión', 'url' => Url::to('@web/account/sign-out')]]));
 }