edit.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="new-note">
  2. <div class="new-note-container">
  3. <ul class='errors' ng-if="errors">
  4. <li ng-repeat="error in errors">{{error}}</li>
  5. </ul>
  6. <form class="form">
  7. <fieldset class="form-field">
  8. <label class="form-label" for="title">Title</label>
  9. <input class="form-input" name="title" ng-model="note.header" />
  10. </fieldset>
  11. <fieldset class="form-field">
  12. <label class="form-label" for="category">Category</label>
  13. <select name='category' ng-model='note.CategoryId' ng-options='category.id as category.name for category in categories'></select>
  14. </fieldset>
  15. <fieldset class="form-field">
  16. <label class="form-label" for="link">Link</label>
  17. <input class="form-input" name="link" ng-model="note.link" />
  18. </fieldset>
  19. <fieldset class="form-field">
  20. <label class="form-label" for="icon"><i class="icon {{note.icon}}"></i>Icon</label>
  21. <input class="form-input" name="icon" ng-model="note.icon" />
  22. </fieldset>
  23. <fieldset class="form-field">
  24. <label class="form-label" for="description">Description</label>
  25. <textarea class="form-input" name="description" ng-model="note.description" placeholder="A short description of this note"></textarea>
  26. </fieldset>
  27. <fieldset class="form-field">
  28. <label class="form-label" for="content">Content</label>
  29. <textarea class="form-input" name="Content" ng-model="note.content" placeholder="The meat of your note"></textarea>
  30. </fieldset>
  31. <button class="btn" ng-click="updateNote(note)" ng-disabled="updating">{{updating ? 'Saving...' : 'Save'}}</button>
  32. </form>
  33. </div>
  34. </div>