1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

Remove unnecessary roles parameter and add comment re: Angular for user creation

This commit is contained in:
Chaoyi Zha 2016-12-02 20:16:07 -05:00
parent 7a381632d0
commit 0f0c0328ce
2 changed files with 3 additions and 2 deletions

View File

@ -127,6 +127,8 @@ polr.controller('AdminCtrl', function($scope, $compile) {
$scope.addNewUser = function($event) {
// Create a new user
// FIXME could use Angular models in the future
// instead of relying on .val()
var username = $('#new-username').val();
var user_password = $('#new-user-password').val();

View File

@ -83,8 +83,7 @@
</div>
@include('snippets.user_table', [
'table_id' => 'admin_users_table',
'roles' => $user_roles
'table_id' => 'admin_users_table'
])
</div>