diff --git a/src/main/java/cantine/controller/PsNext.java b/src/main/java/cantine/controller/PsNext.java
index 3bd1566..fa88f97 100644
--- a/src/main/java/cantine/controller/PsNext.java
+++ b/src/main/java/cantine/controller/PsNext.java
@@ -6,7 +6,6 @@
import org.springframework.web.bind.annotation.RestController;
import java.util.Calendar;
-import java.util.Date;
@RestController
public class PsNext {
@@ -26,4 +25,14 @@ public boolean getPsNext() throws Exception {
return false;
}
+ @RequestMapping(value = "/openPs", method = RequestMethod.GET)
+ @ResponseBody
+ public void openPsNext() throws Exception {
+ Runtime runtime = Runtime.getRuntime();
+ //runtime.exec(new String[] { "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe", "https://ressources.rh.recouv/index.php?module=1140"} );
+ //TODO a paramétrer
+ runtime.exec(new String[] { "C:\\Windows\\SysWOW64\\javaws.exe ", "-localfile", "-J-Djnlp.application.href=http://sciforma.altair.recouv/sciforma/128/WebStart_fr.jnlp",
+ "D:\\UTILISATEURS\\CER3100444\\AppData\\LocalLow\\Sun\\Java\\Deployment\\cache\\6.0\\42\\2e7526a-55dccc3d"} );
+ }
+
}
diff --git a/src/main/resources/static/accueil.html b/src/main/resources/static/accueil.html
index b344aca..d8d0393 100644
--- a/src/main/resources/static/accueil.html
+++ b/src/main/resources/static/accueil.html
@@ -17,12 +17,12 @@
Cool! T'as un café gratos!!!!
-
-
+
+
- C'est vendredi Fais ton PsNext!!!!
+ C'est vendredi, fais ton PsNext !!!
diff --git a/src/main/resources/static/css/cantine.css b/src/main/resources/static/css/cantine.css
index 0643cd9..f547391 100644
--- a/src/main/resources/static/css/cantine.css
+++ b/src/main/resources/static/css/cantine.css
@@ -17,4 +17,8 @@ table.table tr.odd td.cell_selected {
span.mvt {
margin-left: 15px;
+}
+
+.cursor {
+ cursor: pointer;
}
\ No newline at end of file
diff --git a/src/main/resources/static/js/controllers/accueil.js b/src/main/resources/static/js/controllers/accueil.js
index d8981ed..3c67d9b 100644
--- a/src/main/resources/static/js/controllers/accueil.js
+++ b/src/main/resources/static/js/controllers/accueil.js
@@ -2,7 +2,7 @@
var accueilControllers = angular.module('accueilControllers',['ui.bootstrap']);
//accueil Hello
-accueilControllers.controller('AccueilCtrl', ['$scope', 'userNameService', 'asTuBadgeService', 'menuDuJourService', 'psNextService' , function ($scope, userNameService, asTuBadgeService, menuDuJourService, psNextService) {
+accueilControllers.controller('AccueilCtrl', ['$scope', 'userNameService', 'asTuBadgeService', 'menuDuJourService', 'psNextService', 'openPsNextService' , function ($scope, userNameService, asTuBadgeService, menuDuJourService, psNextService, openPsNextService) {
var username;
@@ -39,6 +39,11 @@ accueilControllers.controller('AccueilCtrl', ['$scope', 'userNameService', 'asTu
});
+ $scope.openPsNext = function(nom) {
+ openPsNextService.openPsNext();
+ }
+
+
// TODO refactoriser avec la methode mail de cantine
// methode appeler lorsqu'on appuie sur le bouton mail
// 1. enregiste le choix du plat
diff --git a/src/main/resources/static/js/iLikeCirso.js b/src/main/resources/static/js/iLikeCirso.js
index a2a064f..266cc5f 100644
--- a/src/main/resources/static/js/iLikeCirso.js
+++ b/src/main/resources/static/js/iLikeCirso.js
@@ -1,4 +1,4 @@
-var myApp = angular.module('ILikeCirso', ['ngRoute', 'accueilControllers', 'menuControllers', 'badgeuseControllers','ui.bootstrap','iLikeCirsoAnimations']);
+var myApp = angular.module('ILikeCirso', ['ngRoute', 'accueilControllers', 'menuControllers', 'badgeuseControllers', 'ui.bootstrap','iLikeCirsoAnimations']);
diff --git a/src/main/resources/static/js/services/psNextService.js b/src/main/resources/static/js/services/psNextService.js
index d682201..d0bd082 100644
--- a/src/main/resources/static/js/services/psNextService.js
+++ b/src/main/resources/static/js/services/psNextService.js
@@ -11,3 +11,11 @@ myApp.factory('psNextService', function($http) {
}
});
+
+myApp.factory('openPsNextService', function($http) {
+ return {
+ openPsNext : function() {
+ return $http.get('/openPs');
+ }
+ }
+});