65 lines
2.1 KiB
HTML
65 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Bootstrap grid system</title>
|
|
<meta charset="utf-8"/>
|
|
<meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<link rel="stylesheet" href="../css/bootstrap.min.css"/>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<!--[if lt IE 9]>
|
|
<script src="../js/html5shiv.3-7-0.js"></script>
|
|
<script src="../js/respond.1-4-2.min.js"></script>
|
|
<![endif]-->
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="page-header">
|
|
<h1>Chapter 3
|
|
<small>Exploring Bootstrap components: horizontal form</small>
|
|
</h1>
|
|
</div>
|
|
|
|
<form class="form-horizontal">
|
|
<div class="form-group has-success">
|
|
<label for="nameField" class="col-xs-2">Name</label>
|
|
<div class="col-xs-10">
|
|
<input type="text" class="form-control input-lg" id="nameField" placeholder="Your name" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group has-warning">
|
|
<label for="emailField" class="col-xs-2">E-mail</label>
|
|
<div class="col-xs-10">
|
|
<input type="text" class="form-control" id="emailField" placeholder="Your email" />
|
|
<span class="help-block">Accepts email addresses in the form foo@bar.tld only</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group has-error">
|
|
<label for="phoneField" class="col-xs-2">Phone number</label>
|
|
<div class="col-xs-10">
|
|
<input type="text" class="form-control" id="phoneField" placeholder="Your phone number" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="descField" class="col-xs-2">Description</label>
|
|
<div class="col-xs-10">
|
|
<textarea class="form-control input-sm" id="descField" placeholder="Your comments"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-10 col-xs-offset-2">
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
<button type="reset" class="btn btn-default">Reset</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
|
|
<script src="../js/jquery-1.11.2.min.js"></script>
|
|
<script src="../js/bootstrap.js"></script>
|
|
</body>
|
|
</html>
|