-
-
Save bbraithwaite/2266a006de6e2d143725 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section data-ng-controller="CategoriesController" data-ng-init="findOne()"> | |
<div class="page-header"> | |
<h1>Edit Category</h1> | |
</div> | |
<div class="col-md-12"> | |
<form class="form-horizontal" data-ng-submit="update()" novalidate> | |
<fieldset> | |
<div class="form-group"> | |
<label class="control-label" for="name">Name</label> | |
<div class="controls"> | |
<input type="text" data-ng-model="category.name" id="name" class="form-control" placeholder="Name" required> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label class="control-label" for="description">Description</label> | |
<div class="controls"> | |
<textarea name="description" data-ng-model="category.description" id="description" class="form-control" cols="30" rows="10" placeholder="Description" required></textarea> | |
</div> | |
</div> | |
<div class="form-group"> | |
<input type="submit" value="Update" class="btn btn-default"> | |
</div> | |
<div data-ng-show="error" class="text-danger"> | |
<strong data-ng-bind="error"></strong> | |
</div> | |
</fieldset> | |
</form> | |
</div> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment