diff --git a/ConfJuvApp/www/html/_login.html b/ConfJuvApp/www/html/_login.html
index 16bf166..d848970 100644
--- a/ConfJuvApp/www/html/_login.html
+++ b/ConfJuvApp/www/html/_login.html
@@ -73,6 +73,7 @@
+
diff --git a/ConfJuvApp/www/html/_signup_person_fields.html b/ConfJuvApp/www/html/_signup_person_fields.html
new file mode 100644
index 0000000..dfef142
--- /dev/null
+++ b/ConfJuvApp/www/html/_signup_person_fields.html
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ConfJuvApp/www/js/controllers.js b/ConfJuvApp/www/js/controllers.js
index c9d6d6a..f15dc46 100644
--- a/ConfJuvApp/www/js/controllers.js
+++ b/ConfJuvApp/www/js/controllers.js
@@ -116,6 +116,7 @@ angular.module('confjuvapp.controllers', [])
$scope.displayRegisterForm = function() {
$scope.loadStates();
+ $scope.loadSignupPersonFields();
$scope.registerFormDisplayed = true;
$scope.loginFormDisplayed = false;
$scope.loading = false;
@@ -164,6 +165,24 @@ angular.module('confjuvapp.controllers', [])
});
};
+ // Load Signup Person Fields
+ $scope.signupPersonFields = []
+ $scope.loadSignupPersonFields = function() {
+ $scope.loading = true;
+
+ var path = 'environment/signup_person_fields';
+
+ $http.get(ConfJuvAppUtils.pathTo(path))
+ .then(function(resp) {
+ $scope.signupPersonFields = resp.data;
+ $scope.loading = false;
+ }, function(err) {
+ $ionicPopup.alert({ title: 'Campos Customizados de Registro', template: 'Não foi possível carregar os campos customizados de cadastro' });
+ $scope.loading = false;
+ });
+ };
+
+
$scope.backToLoginHome = function() {
$scope.registerFormDisplayed = false;
$scope.loginFormDisplayed = false;
--
libgit2 0.21.2