Skip to content

Commit

Permalink
add an empty controller that could be customize
Browse files Browse the repository at this point in the history
fix required field for user creation
  • Loading branch information
Julien BOURNONVILLE committed Aug 5, 2020
1 parent 3e60daf commit b93dab8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions public/js/app.js
Expand Up @@ -9,6 +9,7 @@ define([
'directives',
'gettext',
'controllers',
'controllers-custom',
'angularRoute',
'angularAuth',
'paginateAnything',
Expand All @@ -27,6 +28,7 @@ define([
var gadael = angular.module('gadael', [
'ngRoute',
'gadael.controllers',
'gadael.controllers.custom',
'gadael.filters',
'gadael.services',
'gadael.directives',
Expand Down
9 changes: 9 additions & 0 deletions public/js/controllers-custom.js
@@ -0,0 +1,9 @@
define(['angular', 'services'], function (angular) {
'use strict';


// File only for custom controllers, will stay empty in futur gadael versions


return angular.module('gadael.controllers.custom', ['gadael.services']);
});
2 changes: 1 addition & 1 deletion public/partials/utils/common/user/user-edit-head.html
Expand Up @@ -23,7 +23,7 @@

<div class="form-group col-xs-12">
<label for="user_email" translate>Email</label>
<input type="text" class="form-control" id="user_email" ng-model="user.email" />
<input type="text" class="form-control" id="user_email" ng-model="user.email" ng-required="true" />
</div>
</div>
</div>
Expand Down

0 comments on commit b93dab8

Please sign in to comment.