-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform
30 lines (27 loc) · 965 Bytes
/
form
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
<div class="row" ng-controller="newCtrl">
<div class="col-md-6">
<form role="form" name="post" ng-submit="submit()">
<div class="form-group" >
<label>Title</label>
<input type="text" ng-model="post.title" class="form-control" placeholder="Title" required />
</div>
<div class="form-group" >
<label>Name</label>
<input type="text" ng-model="post.name" class="form-control" placeholder="Name" required />
</div>
<div class="form-group" >
<label>Body</label>
<textarea ng-model="post.body" class="form-control"></textarea>
</div>
<div class="form-group" >
<label>Style</label>
<select class="form-control" ng-model="post.style" ng-options="style for style in styles">
</select>
</div>
<button type="submit" class="btn btn-success" >Save</button>
</form>
</div>
<div class="col-md-6">
<preview></preview>
</div>
</div>