mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-18 13:22:20 +01:00
Update the articles module to implement the style guidelines. Much of this work is from @trainerbill Closes #874 Closes #339
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<section>
|
|
<div class="page-header">
|
|
<h1>{{vm.article._id ? 'Edit Article' : 'New Article'}}</h1>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<form name="vm.form.articleForm" class="form-horizontal" ng-submit="vm.save(vm.form.articleForm.$valid)" novalidate>
|
|
<fieldset>
|
|
<div class="form-group" show-errors>
|
|
<label class="control-label" for="title">Title</label>
|
|
<input name="title" type="text" ng-model="vm.article.title" id="title" class="form-control" placeholder="Title" required>
|
|
<div ng-messages="vm.form.articleForm.title.$error" role="alert">
|
|
<p class="help-block error-text" ng-message="required">Article title is required.</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label" for="content">Content</label>
|
|
<textarea name="content" data-ng-model="vm.article.content" id="content" class="form-control" cols="30" rows="10" placeholder="Content"></textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-default">{{vm.article._id ? 'Update' : 'Create'}}</button>
|
|
</div>
|
|
<div ng-show="vm.error" class="text-danger">
|
|
<strong ng-bind="vm.error"></strong>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</section>
|