12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- -->
- <ol class="breadcrumb">
- <li><a href="#/users">Users</a></li>
- <li class="active">Create local user</li>
- </ol>
- <hr>
- <form class="form-horizontal" role="form" novalidate name="form">
- <div class="form-group" ng-class="{'has-error' : form.user_name.$error.required && form.submitted}">
- <label for="username" class="col-sm-2 control-label">User name</label>
- <div class="col-sm-10">
- <input type="text" id="username" class="form-control" name="user_name" placeholder="User name" ng-model="user.user_name" required>
- <div class="alert alert-danger top-margin" ng-show="form.user_name.$error.required && form.submitted">
- Required
- </div>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="col-sm-2 control-label">Type</label>
- <div class="col-sm-10">
- <label for="" class="control-label">Local</label>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="col-sm-2 control-label">Status</label>
- <div class="col-sm-10">
- <div class="btn btn-success">Active</div>
- </div>
- </div>
- <div class="form-group" ng-class="{'has-error' : (form.password.$error.required && form.submitted) || form.confirmPassword.$error.passwordVerify}">
- <label for="password" class="col-sm-2 control-label">Password</label>
- <div class="col-sm-10">
- <input type="password" class="form-control bottom-margin" name="password" placeholder="Password" required ng-model="user.password">
- <input type="password" class="form-control bottom-margin" name="confirmPassword" placeholder="Password confirmation" required ng-model="user.passwordConfirmation"
- password-verify="user.password">
- <div class="alert alert-danger" ng-show='form.confirmPassword.$error.passwordVerify'>
- Password must match!
- </div>
- <div class="alert alert-danger" ng-show='form.password.$error.required && form.submitted'>
- Password required!
- </div>
-
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button class="btn btn-primary" ng-click="createUser()">Create</button>
- </div>
- </div>
-
- </form>
|