create.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. -->
  18. <ol class="breadcrumb">
  19. <li><a href="#/users">Users</a></li>
  20. <li class="active">Create local user</li>
  21. </ol>
  22. <hr>
  23. <form class="form-horizontal" role="form" novalidate name="form">
  24. <div class="form-group" ng-class="{'has-error' : form.user_name.$error.required && form.submitted}">
  25. <label for="username" class="col-sm-2 control-label">User name</label>
  26. <div class="col-sm-10">
  27. <input type="text" id="username" class="form-control" name="user_name" placeholder="User name" ng-model="user.user_name" required>
  28. <div class="alert alert-danger top-margin" ng-show="form.user_name.$error.required && form.submitted">
  29. Required
  30. </div>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="" class="col-sm-2 control-label">Type</label>
  35. <div class="col-sm-10">
  36. <label for="" class="control-label">Local</label>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label for="" class="col-sm-2 control-label">Status</label>
  41. <div class="col-sm-10">
  42. <div class="btn btn-success">Active</div>
  43. </div>
  44. </div>
  45. <div class="form-group" ng-class="{'has-error' : (form.password.$error.required && form.submitted) || form.confirmPassword.$error.passwordVerify}">
  46. <label for="password" class="col-sm-2 control-label">Password</label>
  47. <div class="col-sm-10">
  48. <input type="password" class="form-control bottom-margin" name="password" placeholder="Password" required ng-model="user.password">
  49. <input type="password" class="form-control bottom-margin" name="confirmPassword" placeholder="Password confirmation" required ng-model="user.passwordConfirmation"
  50. password-verify="user.password">
  51. <div class="alert alert-danger" ng-show='form.confirmPassword.$error.passwordVerify'>
  52. Password must match!
  53. </div>
  54. <div class="alert alert-danger" ng-show='form.password.$error.required && form.submitted'>
  55. Password required!
  56. </div>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <div class="col-sm-offset-2 col-sm-10">
  61. <button class="btn btn-primary" ng-click="createUser()">Create</button>
  62. </div>
  63. </div>
  64. </form>