-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.html
28 lines (27 loc) · 1.46 KB
/
create.html
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
<section data-ng-controller="ArticlesController">
<form name="articleForm" class="form-horizontal col-md-6" role="form" data-ng-submit="create(articleForm.$valid)" novalidate>
<div class="form-group" ng-class="{ 'has-error' : submitted && articleForm.title.$invalid }">
<label mean-token="'create-title'" class="col-md-3 control-label">Title</label>
<div class="col-md-9">
<input name="title" type="text" class="form-control" data-ng-model="title" id="title" placeholder="Title" required>
<div ng-show="submitted && articleForm.title.$invalid" class="help-block">
<p ng-show="articleForm.title.$error.required">Title is required</p>
</div>
</div>
</div>
<div class="form-group" ng-class="{ 'has-error' : submitted && articleForm.content.$invalid }">
<label mean-token="'create-content'" for="content" class="col-md-3 control-label">Content</label>
<div class="col-md-9">
<textarea name="content" data-ng-model="content" id="content" cols="30" rows="10" placeholder="Content" class="form-control" required></textarea>
<div ng-show="submitted && articleForm.content.$invalid" class="help-block">
<p ng-show="articleForm.content.$error.required">Content is required</p>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-3 col-md-9">
<button type="submit" class="btn btn-info">Submit</button>
</div>
</div>
</form>
</section>