edit.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="new-note">
  2. <div class="new-note-container">
  3. <h2>{{user.name}}</h2>
  4. <i class="icon {{user.type}}"></i>
  5. <ul class='errors' ng-if="errors">
  6. <li ng-repeat="error in errors">{{error}}</li>
  7. </ul>
  8. <form class="form">
  9. <fieldset class="form-field">
  10. <label class="form-label" for="name">Name</label>
  11. <input class="form-input" name="name" ng-model="user.name" />
  12. </fieldset>
  13. <fieldset class="form-field">
  14. <label class="form-label" for="username">User Name</label>
  15. <input class="form-input" name="username" ng-model="user.username" />
  16. </fieldset>
  17. <fieldset class="form-field">
  18. <label class="form-label" for="password">Password</label>
  19. <input class="form-input" name="password" ng-model="user.password" placeholder='password' />
  20. <input class="form-input" name="passwordConfirm" ng-model="user.passwordConfirm" placeholder='password confirm' />
  21. </fieldset>
  22. <fieldset class="form-field">
  23. <label class="form-label" for="twitter_handle">Twitter name</label>
  24. <input class="form-input" name="twitter_handle" ng-model="user.twitter_handle" placeholder='Twitters' />
  25. </fieldset>
  26. <fieldset class="form-field">
  27. <label class="form-label" for="site">Site</label>
  28. <input class="form-input" name="site" ng-model="user.site" placeholder="I don't have a site :(" />
  29. </fieldset>
  30. <fieldset class="form-field">
  31. <label class="form-label" for="bio">Bio</label>
  32. <textarea class="form-input" name="bio" ng-model="user.bio" placeholder="Tell us a little about yourself."></textarea>
  33. </fieldset>
  34. <button class="btn" ng-click="updateUser(user)" ng-disabled="updating">{{updating ? 'Saving...' : 'Save'}}</button>
  35. </form>
  36. </div>
  37. </div>