From garandel@users.chorem.org Fri May 16 14:11:00 2014 From: garandel@users.chorem.org To: pollen-commits@list.chorem.org Subject: [Pollen-commits] r3956 - in trunk/pollen-ui-angular/src/main/webapp: . js js/controllers partials Date: Fri, 16 May 2014 14:11:00 +0200 Message-ID: <20140516121100.A5D98181DA7@goh.codelutin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3771980766761545104==" --===============3771980766761545104== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: garandel Date: 2014-05-16 14:11:00 +0200 (Fri, 16 May 2014) New Revision: 3956 Url: http://forge.chorem.org/projects/pollen/repository/revisions/3956 Log: debug ui and translate to french all element Modified: trunk/pollen-ui-angular/src/main/webapp/index.html trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js trunk/pollen-ui-angular/src/main/webapp/js/services.js trunk/pollen-ui-angular/src/main/webapp/partials/inline-poll.html trunk/pollen-ui-angular/src/main/webapp/partials/poll-list.html trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupChoice.html trunk/pollen-ui-angular/src/main/webapp/partials/poll-settings.html trunk/pollen-ui-angular/src/main/webapp/partials/poll.html Modified: trunk/pollen-ui-angular/src/main/webapp/index.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/index.html 2014-05-16 09:59:58 UT= C (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/index.html 2014-05-16 12:11:00 UT= C (rev 3956) @@ -53,34 +53,34 @@ Modified: trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js 2014-0= 5-16 09:59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js 2014-0= 5-16 12:11:00 UTC (rev 3956) @@ -92,13 +92,13 @@ if (angular.isDefined($scope.restError)) { delete $scope.restError.choice; } - popupChoice(choice, 'Add Choice', $scope.callBackAddChoice); + popupChoice(choice, 'Ajout d\'un Choix', $scope.callBackAddChoice); } =20 $scope.callBackAddChoice =3D function (choice) {} =20 $scope.editChoice =3D function (choice) { - popupChoice(choice, 'Edit Choice', $scope.callBackEditChoice); + popupChoice(choice, 'Edition du Choix', $scope.callBackEditChoice); } =20 $scope.callBackEditChoice =3D function (choice) {} @@ -186,7 +186,7 @@ poll.choice =3D angular.copy($scope.data.choices); Poll.add(poll, function (data) { $cookieStore.put('saved', true); - $location.url('/poll/edit/'+data.topiaId+'?token=3D'+data.permission); + $location.url('/poll/edit/'+data.id+'?token=3D'+data.permission); }, function (error) { $scope.globalVariables.restError =3D true; $scope.restError =3D error.data; @@ -220,7 +220,7 @@ } =20 $scope.callBackEditChoice =3D function (choice) { - PollChoice.update({permission:$routeParams.token, pollId:$routeParams.po= llId, choiceId:choice.topiaId}, choice, function() { + PollChoice.update({permission:$routeParams.token, pollId:$routeParams.po= llId}, choice, function() { delete choice.restError; $scope.globalVariables.saved =3D true; }, function (error) { @@ -229,7 +229,7 @@ } =20 $scope.deleteChoice =3D function (choice) { - PollChoice.delete({pollId:$routeParams.pollId, permission:$routeParams.t= oken, choiceId: choice.topiaId}, function () { + PollChoice.delete({pollId:$routeParams.pollId, permission:$routeParams.t= oken, choiceId: choice.id}, function () { $scope.globalVariables.saved =3D true; var index =3D $scope.data.choices.indexOf(choice); if (index > -1) { @@ -309,11 +309,11 @@ =20 var initVote =3D function () { $scope.data.vote =3D {}; - $scope.data.vote.voter =3D {name : ""}; + $scope.data.vote.voterName =3D ""; $scope.data.vote.anonymous =3D false; $scope.data.vote.choice =3D []; for (var i =3D 0; i < $scope.data.choices.length; ++i) { - $scope.data.vote.choice.push({choiceId:$scope.data.choices[i].topiaI= d, voteValue:false}); + $scope.data.vote.choice.push({choiceId:$scope.data.choices[i].id, vo= teValue:false}); } } =20 Modified: trunk/pollen-ui-angular/src/main/webapp/js/services.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/js/services.js 2014-05-16 09:59:5= 8 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/js/services.js 2014-05-16 12:11:0= 0 UTC (rev 3956) @@ -22,7 +22,7 @@ =20 .factory('Poll', ['$resource', function ($resource) { =20 - return $resource(conf.restURL+'/polls/:pollId/:cmd', {pollId:'@topiaId'}, { + return $resource(conf.restURL+'/polls/:pollId/:cmd', {pollId:'@id'}, { 'add' : { method : 'POST', transformRequest : function (data, headersGetter) { @@ -46,7 +46,7 @@ return 'choice=3D'+encodeURIComponent(JSON.stringify(data)); }; =20 - return $resource(conf.restURL+'/polls/:pollId/choices/:choiceId', {choiceI= d : '@topiaId'}, + return $resource(conf.restURL+'/polls/:pollId/choices/:choiceId', {choiceI= d : '@id'}, { 'add' : { method:'POST', @@ -70,7 +70,7 @@ return 'vote=3D'+encodeURIComponent(JSON.stringify(data)); }; =20 - return $resource(conf.restURL+'/polls/:pollId/votes/:voteId', {voteId : '@= topiaId'}, + return $resource(conf.restURL+'/polls/:pollId/votes/:voteId', {voteId : '@= id'}, { 'add' : { method:'POST', Modified: trunk/pollen-ui-angular/src/main/webapp/partials/inline-poll.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/partials/inline-poll.html 2014-05= -16 09:59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/partials/inline-poll.html 2014-05= -16 12:11:00 UTC (rev 3956) @@ -28,7 +28,7 @@
- {{choice.name || 'click for edit'}} + {{choice.name || 'click pour =C3=A9diter'}}
@@ -50,7 +50,7 @@ =20 - + @@ -62,7 +62,7 @@ =20 - {{vote.voter.name}} + {{vote.voterName}} Modified: trunk/pollen-ui-angular/src/main/webapp/partials/poll-list.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/partials/poll-list.html 2014-05-1= 6 09:59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll-list.html 2014-05-1= 6 12:11:00 UTC (rev 3956) @@ -1,6 +1,6 @@ =20
-

{{poll.title}}

+

{{poll.title}}


\ No newline at end of file Modified: trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupChoice.h= tml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupChoice.html 20= 14-05-16 09:59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupChoice.html 20= 14-05-16 12:11:00 UTC (rev 3956) @@ -62,8 +62,8 @@
- - - + + +
\ No newline at end of file Modified: trunk/pollen-ui-angular/src/main/webapp/partials/poll-settings.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/partials/poll-settings.html 2014-= 05-16 09:59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll-settings.html 2014-= 05-16 12:11:00 UTC (rev 3956) @@ -49,11 +49,18 @@ =20
+
+ + + +
+
=20
Modified: trunk/pollen-ui-angular/src/main/webapp/partials/poll.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/pollen-ui-angular/src/main/webapp/partials/poll.html 2014-05-16 09:= 59:58 UTC (rev 3955) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll.html 2014-05-16 12:= 11:00 UTC (rev 3956) @@ -30,11 +30,11 @@ Edition du sondage .. =20 - + =20

- {{data.poll.title || 'Click Me for Editing'}} + {{data.poll.title || 'Click pour =C3=A9diter'}}

=20 @@ -59,7 +59,7 @@
=20
- +
@@ -67,13 +67,13 @@

- +
=20

- +
=20 \ No newline at end of file --===============3771980766761545104==--