SHARE
TWEET

Untitled

a guest Dec 11th, 2014 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <section data-ng-controller="ArticlesController">
  2.         <div class="page-header">
  3.                 <h1>New Article</h1>
  4.         </div>
  5.         <div class="col-md-12">
  6.                 <form name="articleForm" class="form-horizontal" data-ng-submit="create()" novalidate>
  7.                         <fieldset>
  8.                                 <div class="form-group" ng-class="{ 'has-error': articleForm.title.$dirty && articleForm.title.$invalid }">
  9.                                         <label class="control-label" for="title">Title</label>
  10.                                         <div class="controls">
  11.                                                 <input name="title" type="text" data-ng-model="title" id="title" class="form-control" placeholder="Title" required>
  12.                                         </div>
  13.                                 </div>
  14.                                 <div class="form-group">
  15.                                         <label class="control-label" for="content">Content</label>
  16.                                         <div class="controls">
  17.                                                 <textarea name="content" data-ng-model="content" id="content" class="form-control" cols="30" rows="10" placeholder="Content"></textarea>
  18.                                         </div>
  19.                                 </div>
  20.                                 <div class="form-group">
  21.                                         <input type="submit" class="btn btn-default">
  22.                                 </div>
  23.                                 <div data-ng-show="error" class="text-danger">
  24.                                         <strong data-ng-bind="error"></strong>
  25.                                 </div>
  26.                         </fieldset>
  27.                 </form>
  28.         </div>
  29. </section>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top