<form ng-submit=“addEdit()”>
<div class="modal-header"> <h3> <i class="fa fa-user"></i> User</h3> </div> <div class="modal-body"> <div class="form-group"> <label for="exampleInputEmail1">Full name</label> <input type="text" class="form-control" ng-model="user.name" required placeholder="John Smith"> </div> <div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" ng-model="user.email" required placeholder="Enter email"> </div> <div class="form-group"> <label>Password</label> <input type="password" class="form-control" ng-model="user.password" ng-required="user.id == null" placeholder="Password"> </div> <div class="checkbox" ng-if="is_admin"> <label> <input type="checkbox" ng-model="user.admin"> Admin <small class="text-muted"> - Admin users have permisions to all buckets and to user managment</small> </label> </div> </div> <div class="modal-footer"> <button class="btn btn-primary" type="submit">Save</button> <button type="button" class="btn btn-warning" ng-click="cancel()">Cancel</button> </div>
</form>