diff --git a/www/html/_profile.html b/www/html/_profile.html index 96a4714..8e47a54 100644 --- a/www/html/_profile.html +++ b/www/html/_profile.html @@ -46,6 +46,9 @@

Etnia

{{profile.etnia | etniaFilter}}

+

É membro de conselho municipal ou estadual da juventude?

+

{{profile.membro_conselho | membroConselhoFilter}}

+

Não Sou Transgênero

diff --git a/www/html/_signup_person_fields.html b/www/html/_signup_person_fields.html index 2c07587..434e6ec 100644 --- a/www/html/_signup_person_fields.html +++ b/www/html/_signup_person_fields.html @@ -53,4 +53,17 @@ + +
+ +
diff --git a/www/js/controllers.js b/www/js/controllers.js index e62a6e3..3df406b 100644 --- a/www/js/controllers.js +++ b/www/js/controllers.js @@ -229,6 +229,7 @@ angular.module('confjuvapp.controllers', []) 'password_confirmation': data.password_confirmation, 'tipo': $scope.registerFormType, 'orientacao_sexual': data.orientacao_sexual, + 'membro_conselho': data.membro_conselho, 'identidade_genero': data.identidade_genero, 'transgenero': data.transgenero, 'etnia': data.etnia, @@ -1472,6 +1473,7 @@ angular.module('confjuvapp.controllers', []) 'private_token': $scope.token, 'person[name]': profile.name, 'person[orientacao_sexual]': profile.orientacao_sexual, + 'person[membro_conselho]': profile.membro_conselho, 'person[identidade_genero]': profile.identidade_genero, 'person[transgenero]': profile.transgenero, 'person[etnia]': profile.etnia @@ -1500,7 +1502,7 @@ angular.module('confjuvapp.controllers', []) $scope.profileComplete = true; $scope.hideProfileWarning = !!window.localStorage['hide_profile_warning']; $scope.checkCompleteness = function(p) { - if (!!!p.name || !!!p.orientacao_sexual || !!!p.identidade_genero || !!!p.etnia || !!!p.city) { + if (!!!p.name || !!!p.orientacao_sexual || !!!p.identidade_genero || !!!p.etnia || !!!p.city || !!!p.membro_conselho) { $scope.profileComplete = false; } }; diff --git a/www/js/filters.js b/www/js/filters.js index 98263b2..6961964 100644 --- a/www/js/filters.js +++ b/www/js/filters.js @@ -46,4 +46,12 @@ filter('generoFilter', function() { genero[2] = 'Feminino'; return genero[type]; }; +}). +filter('membroConselhoFilter', function() { + return function(type) { + var membro = {}; + membro[1] = 'Sim'; + membro[2] = 'Não'; + return membro[type]; + }; }); -- libgit2 0.21.2