gata basic ul
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
<h1>Contact</h1>
|
||||
<?php
|
||||
use app\core\form\Form;
|
||||
use app\core\form\TextareaField;
|
||||
$this->title = 'Contact';
|
||||
|
||||
<form action="" method="post">
|
||||
<div class="mb-3">
|
||||
<label>Subject</label>
|
||||
<input type="text" name="subject" class="form-control">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label>Email</label>
|
||||
<input type="text" name="email" class="form-control">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label>Body</label>
|
||||
<textarea name="body" class="form-control"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
$form = Form::begin('', 'post');
|
||||
echo $form->inputField($model, 'subject');
|
||||
echo new TextareaField($model, 'body');
|
||||
echo $form->button();
|
||||
|
||||
Form::end();
|
||||
?>
|
||||
@@ -1,2 +1,6 @@
|
||||
<?php
|
||||
$this->title = 'Home';
|
||||
?>
|
||||
|
||||
<h1>Home</h1>
|
||||
<h2> Welcome <?php echo $name;?> to our site!</h2>
|
||||
@@ -1,10 +1,14 @@
|
||||
<?php
|
||||
use app\core\Application;
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Bootstrap demo</title>
|
||||
<title><?php echo $this->title; ?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -42,6 +46,12 @@
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<?php
|
||||
$flashMessage = Application::$app->session->getFlash('success');
|
||||
if($flashMessage){
|
||||
echo $flashMessage;
|
||||
}
|
||||
?>
|
||||
{{content}}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
<h1>Login</h1>
|
||||
|
||||
<?php
|
||||
use app\core\form\Form;
|
||||
/* @var $model \app\models\User */
|
||||
$this->title='Login';
|
||||
|
||||
$form = Form::begin('', 'post');
|
||||
|
||||
echo $form->field($model, 'email');
|
||||
echo $form->field($model, 'password')->passwordField();
|
||||
echo $form->InputField($model, 'email');
|
||||
echo $form->inputField($model, 'password')->passwordField();
|
||||
|
||||
echo $form->button();
|
||||
|
||||
Form::end()
|
||||
?>
|
||||
|
||||
<h1>Login</h1>
|
||||
@@ -1 +1,7 @@
|
||||
<?php
|
||||
|
||||
$this->title = 'Profile';
|
||||
|
||||
?>
|
||||
|
||||
<h1>Profile</h1>
|
||||
@@ -1,17 +1,17 @@
|
||||
<h1>Create An Account</h1>
|
||||
<?php
|
||||
use app\core\form\Form;
|
||||
/* @var $model \app\models\User */
|
||||
$this->title = 'Register';
|
||||
|
||||
$form = Form::begin('', 'post');
|
||||
|
||||
echo $form->field($model, 'firstname');
|
||||
echo $form->field($model, 'lastname');
|
||||
echo $form->field($model, 'email');
|
||||
echo $form->field($model, 'password')->passwordField();
|
||||
echo $form->inputField($model, 'firstname');
|
||||
echo $form->inputField($model, 'lastname');
|
||||
echo $form->inputField($model, 'email');
|
||||
echo $form->inputField($model, 'password')->passwordField();
|
||||
|
||||
echo $form->button();
|
||||
|
||||
Form::end()
|
||||
?>
|
||||
|
||||
<h1>Create An Account</h1>
|
||||
|
||||
Reference in New Issue
Block a user