From b93dab8ed468dbfe9e2d247a24d43c2cdd301717 Mon Sep 17 00:00:00 2001 From: Julien BOURNONVILLE Date: Wed, 5 Aug 2020 16:52:40 +0200 Subject: [PATCH] add an empty controller that could be customize fix required field for user creation --- public/js/app.js | 2 ++ public/js/controllers-custom.js | 9 +++++++++ public/partials/utils/common/user/user-edit-head.html | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 public/js/controllers-custom.js diff --git a/public/js/app.js b/public/js/app.js index 45eab3f69..ed1a29cee 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -9,6 +9,7 @@ define([ 'directives', 'gettext', 'controllers', + 'controllers-custom', 'angularRoute', 'angularAuth', 'paginateAnything', @@ -27,6 +28,7 @@ define([ var gadael = angular.module('gadael', [ 'ngRoute', 'gadael.controllers', + 'gadael.controllers.custom', 'gadael.filters', 'gadael.services', 'gadael.directives', diff --git a/public/js/controllers-custom.js b/public/js/controllers-custom.js new file mode 100644 index 000000000..e23b5424e --- /dev/null +++ b/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']); +}); \ No newline at end of file diff --git a/public/partials/utils/common/user/user-edit-head.html b/public/partials/utils/common/user/user-edit-head.html index 204d0db15..6e5bf8727 100644 --- a/public/partials/utils/common/user/user-edit-head.html +++ b/public/partials/utils/common/user/user-edit-head.html @@ -23,7 +23,7 @@
- +