加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
form-horizontal.html 21.39 KB
一键复制 编辑 原始数据 按行查看 历史
风原 提交于 2022-04-03 18:07 . 去掉select2,太难用了。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<title>Preclinic - Medical & Hospital - Bootstrap 4 Admin Template</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="content">
<div class="row">
<div class="col-sm-12">
<h4 class="page-title">Horizontal Form</h4>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="card-box">
<h4 class="card-title">Basic Form</h4>
<form action="#">
<div class="form-group row">
<label class="col-md-3 col-form-label">First Name</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Last Name</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Email Address</label>
<div class="col-md-9">
<input type="email" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Username</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Password</label>
<div class="col-md-9">
<input type="password" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Repeat Password</label>
<div class="col-md-9">
<input type="password" class="form-control">
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<div class="col-md-6">
<div class="card-box">
<h4 class="card-title">Address Form</h4>
<form action="#">
<div class="form-group row">
<label class="col-md-3 col-form-label">Address Line 1</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Address Line 2</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">City</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">State</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Country</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Postal Code</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card-box">
<h4 class="card-title">Two Column Horizontal Form</h4>
<h4 class="card-title">Personal Information</h4>
<form action="#">
<div class="row">
<div class="col-md-6">
<div class="form-group row">
<label class="col-md-3 col-form-label">First Name</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Last Name</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Gender</label>
<div class="col-md-9">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="gender" id="gender_male" value="option1" checked>
<label class="form-check-label" for="gender_male">
Male
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="gender" id="gender_female" value="option2">
<label class="form-check-label" for="gender_female">
Female
</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Blood Group</label>
<div class="col-md-9">
<select class="select">
<option>Select</option>
<option value="1">A+</option>
<option value="2">O+</option>
<option value="3">B+</option>
<option value="4">AB+</option>
</select>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group row">
<label class="col-md-3 col-form-label">Username</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Email</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Password</label>
<div class="col-md-9">
<input type="password" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Repeat Password</label>
<div class="col-md-9">
<input type="password" class="form-control">
</div>
</div>
</div>
</div>
<h4 class="card-title">Address</h4>
<div class="row">
<div class="col-md-6">
<div class="form-group row">
<label class="col-md-3 col-form-label">Address Line 1</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Address Line 2</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">State</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group row">
<label class="col-md-3 col-form-label">City</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Country</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label">Postal Code</label>
<div class="col-md-9">
<input type="text" class="form-control">
</div>
</div>
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form action="#">
<div class="card-box">
<div class="row">
<div class="col-md-6">
<h4 class="card-title">Personal Details</h4>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Name:</label>
<div class="col-lg-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Password:</label>
<div class="col-lg-9">
<input type="password" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">State:</label>
<div class="col-lg-9">
<select class="select">
<option>Select State</option>
<option value="1">California</option>
<option value="2">Texas</option>
<option value="3">Florida</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">About:</label>
<div class="col-lg-9">
<textarea rows="5" cols="5" class="form-control" placeholder="Enter message"></textarea>
</div>
</div>
</div>
<div class="col-md-6">
<h4 class="card-title">Personal details</h4>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Name:</label>
<div class="col-lg-9">
<div class="row">
<div class="col-md-6">
<input type="text" placeholder="First name" class="form-control">
</div>
<div class="col-md-6">
<input type="text" placeholder="Last name" class="form-control">
</div>
</div>
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Email:</label>
<div class="col-lg-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Phone:</label>
<div class="col-lg-9">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label">Address:</label>
<div class="col-lg-9">
<input type="text" class="form-control m-b-20">
<div class="row">
<div class="col-md-6">
<div class=" m-b-20">
<select class="select">
<option>Select Country</option>
<option value="1">USA</option>
<option value="2">France</option>
<option value="3">India</option>
<option value="4">Spain</option>
</select>
</div>
<input type="text" placeholder="ZIP code" class="form-control">
</div>
<div class="col-md-6">
<input type="text" placeholder="State/Province" class="form-control m-b-20">
<input type="text" placeholder="City" class="form-control">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="sidebar-overlay" data-reff=""></div>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/app.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化