Commit 4d4c0f12 authored by 20194288-huannh's avatar 20194288-huannh

Update form register, login with Bootstrap

parent 56202083
......@@ -20,27 +20,28 @@
<style>
body {
font-family: 'Nunito', sans-serif;
height: 100vh;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="row d-flex justify-content-center align-items-center vh-100">
<div class="col-md-4 border border-2 rounded p-3">
<form method="POST" action="/login">
<h2>Đăng nhập</h2>
<div class="form-group">
<label>Số điện thoại (*)</label>
<legend class = "text-center">Đăng nhập</legend>
<div class="form-group mb-3">
<label class="form-label">Số điện thoại (*)</label>
<input type="text" placeholder="" require class="form-control" name="phone">
</div>
<div class="form-group">
<label>Mật khẩu (*)</label>
<div class="form-group mb-3">
<label class="form-label">Mật khẩu (*)</label>
<input type="password" placeholder="" require class="form-control" name="password">
</div>
<div class="form-group">
<input type="hidden" name="_token" value="<?php echo csrf_token() ?>">
</div>
<div class="form-group">
<div class="form-group d-flex justify-content-center">
<button class="btn btn-success">Đăng nhập</button>
</div>
</form>
......
......@@ -25,35 +25,35 @@
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="row d-flex justify-content-center align-items-center vh-100">
<div class="col-md-4 border border-2 rounded p-3">
<form method="POST" action="/register">
@csrf
<h2>Đăng kí</h2>
<div class="form-group">
<label>Số điện thoại (*)</label>
<legend class = "text-center">Đăng kí</legend>
<div class="form-group mb-3">
<label class="form-label">Số điện thoại (*)</label>
<input type="text" placeholder="" require class="form-control" name="phone">
</div>
<div class="form-group">
<label>Họ Tên (*)</label>
<div class="form-group mb-3">
<label class="form-label">Họ Tên (*)</label>
<input type="text" placeholder="" require class="form-control" name="name">
</div>
<div class="form-group">
<label>Mật khẩu (*)</label>
<div class="form-group mb-3">
<label class="form-label">Mật khẩu (*)</label>
<input type="password" placeholder="" require class="form-control" name="password">
</div>
<div class="form-group">
<input type="checkbox" name="register">
<label>Đăng kí cửa hàng</label>
</div>
<div class="form-group">
<div class="form-group mb-3">
<input type="checkbox" name="rule">
<label>Tôi đồng ý với điều khoản sử dụng</label>
</div>
<div class="form-group">
<div class="form-group mb-3">
<input type="hidden" name="_token" value="<?php echo csrf_token() ?>">
</div>
<div class="form-group">
<div class="form-group d-flex justify-content-center">
<button class="btn btn-success">Đăng kí</button>
</div>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment