"create-post-form"
Bootstrap 3.3.0 Snippet by mustardandrew

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Create post</h1>
<form action="" method="POST">
<div class="form-group has-error">
<label for="slug">Slug <span class="require">*</span> <small>(This field use in url path.)</small></label>
<input type="text" class="form-control" name="slug" />
<span class="help-block">Field not entered!</span>
</div>
<div class="form-group">
<label for="title">Title <span class="require">*</span></label>
<input type="text" class="form-control" name="title" />
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea rows="5" class="form-control" name="description" ></textarea>
</div>
<div class="form-group">
<p><span class="require">*</span> - required fields</p>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">
Create
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
.require {
color: #666;
}
label small {
color: #999;
font-weight: normal;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: