From garandel@users.chorem.org Mon May 5 17:39:11 2014 From: garandel@users.chorem.org To: pollen-commits@list.chorem.org Subject: [Pollen-commits] r3914 - in trunk/pollen-ui-angular/src/main/webapp: . js/controllers partials Date: Mon, 05 May 2014 17:39:11 +0200 Message-ID: <20140505153911.5BA4118112F@goh.codelutin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3426562062329044818==" --===============3426562062329044818== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: garandel Date: 2014-05-05 17:39:10 +0200 (Mon, 05 May 2014) New Revision: 3914 Url: http://forge.chorem.org/projects/pollen/repository/revisions/3914 Log: Add popup setting Added: trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupSettings.html 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/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-05 12:36:59 UT= C (rev 3913) +++ trunk/pollen-ui-angular/src/main/webapp/index.html 2014-05-05 15:39:10 UT= C (rev 3914) @@ -29,7 +29,7 @@ - + =20 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-05 12:36:59 UTC (rev 3913) +++ trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js 2014-0= 5-05 15:39:10 UTC (rev 3914) @@ -122,6 +122,18 @@ }); } =20 + $scope.popupSettings =3D function () { + var modalInstance =3D $modal.open({ + templateUrl : 'partials/poll-popupSettings.html', + controller : PollPopupSettingsCtrl, + size : 'lg', + resolve : { poll: function () { + return $scope.poll; + } + } + }); + } + $scope.reset =3D function () { $scope.poll =3D initPoll(); $scope.voteChoice =3D $scope.poll.choice; @@ -158,8 +170,36 @@ =20 } =20 + var PollPopupSettingsCtrl =3D function ($scope, $filter, $modalInstance, p= oll) { + $scope.poll =3D poll; =20 + if (!angular.isDefined($scope.poll.continuousResults)) { + $scope.poll.continuousResults =3D false; + } =20 + if (!angular.isDefined($scope.poll.resultVisibility)) { + $scope.poll.resultVisibility =3D 'EVERYBODY'; + } + + if (!angular.isDefined($scope.poll.choiceAddAllowed)) { + $scope.poll.choiceAddAllowed =3D false; + } + + $scope.close =3D function () { + $modalInstance.dismiss(); + } + + $scope.printCheckbox=3D function (value) { + if (value) { + return 'Oui'; + } else { + return 'Non'; + } + } + + } + + }]) =20 .controller('PollCreateCtrl', ['$scope', '$controller', 'Restangular', '$htt= p', function ($scope, $controller, Restangular, $http) { Added: trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupSettings.ht= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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-popupSettings.html = (rev 0) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll-popupSettings.html = 2014-05-05 15:39:10 UTC (rev 3914) @@ -0,0 +1,156 @@ + + + + +
+
+

Configuration

+
+ +
+ +

Confiuration global

+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + + +
+
+ +
+ +
+ +
+
+ +

Configuration des Choix

+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +

Configuration des R=C3=A9ponses

+ +
+ +
+
+ + + + +
+
+ + + +
+

description type...

+
+
+
+ +
+ +
+ + + + +
+
+ + +
+
+ + +
+ +
+
\ No newline at end of file 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-05 12:= 36:59 UTC (rev 3913) +++ trunk/pollen-ui-angular/src/main/webapp/partials/poll.html 2014-05-05 15:= 39:10 UTC (rev 3914) @@ -54,6 +54,7 @@ +