diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-30 06:59:18 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-30 06:59:18 +0300 |
commit | 203700b32f071206155e627d298b5f2862e6bcfb (patch) | |
tree | cceceeac117fe4310a9b4e952801ba2abc5a6ecb /resources | |
parent | 6a53d0644bb0abc1bcbc821dbd6f29e82d918cfa (diff) |
Add modal on close listener for clean-up; use ng-model instead of .val() for new user form
Diffstat (limited to 'resources')
-rw-r--r-- | resources/views/admin.blade.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/views/admin.blade.php b/resources/views/admin.blade.php index 3850724..6f1b4e5 100644 --- a/resources/views/admin.blade.php +++ b/resources/views/admin.blade.php @@ -65,11 +65,11 @@ <th></th> </tr> <tr id="new-user-form"> - <td><input type="text" class="form-control" id="new-username"></td> - <td><input type="password" class="form-control" id="new-user-password"></td> - <td><input type="email" class="form-control" id="new-user-email"></td> + <td><input type="text" class="form-control" ng-model="newUserParams.username"></td> + <td><input type="password" class="form-control" ng-model="newUserParams.userPassword"></td> + <td><input type="email" class="form-control" ng-model="newUserParams.userEmail"></td> <td> - <select class="form-control new-user-role" id="new-user-role"> + <select class="form-control new-user-role" ng-model="newUserParams.userRole"> @foreach ($user_roles as $role_text => $role_val) <option value="{{$role_val}}">{{$role_text}}</option> @endforeach @@ -125,7 +125,7 @@ </div> <div class="angular-modals"> - <edit-long-link-modal ng-repeat="modal in editLongLinkModals" link-ending="modal.linkEnding" + <edit-long-link-modal ng-repeat="modal in modals.editLongLink" link-ending="modal.linkEnding" old-long-link="modal.oldLongLink" clean-modals="cleanModals"></edit-long-link-modal> </div> </div> |