diff --git a/src/router.js b/src/router.js
index c898c05b1214f7a790f1eb5a05f87cdad75d8495..52ab5fe6af4095126844ddc7e6b6c1813a1cc9c4 100644
--- a/src/router.js
+++ b/src/router.js
@@ -15,7 +15,7 @@ Vue.use(Router)
export default new Router({
-
+ // https://alligator.io/vuejs/vue-router-modify-head/ to change title and metadata
routes: [
{
path: '/',
diff --git a/src/store/modules/situation.js b/src/store/modules/situation.js
index 7f86d907968a5c4ec3959666a03090e7c265826f..a8a7eff7d0c1006cffa63f4b776869aaf729f3f2 100644
--- a/src/store/modules/situation.js
+++ b/src/store/modules/situation.js
@@ -5,6 +5,7 @@ export default {
changed: false,
disabled: false,
spectacle: false,
+ manager: false,
diploma: "",
inscription_period: "",
allocation_type: "",
@@ -25,6 +26,9 @@ export default {
updateSpectacle(state, spectacle) {
state.spectacle = spectacle
},
+ updateManager(state, manager) {
+ state.manager = manager
+ },
updateDiploma(state, diploma) {
state.diploma = diploma
},
@@ -145,6 +149,20 @@ export default {
//dispatch('getUncertain') ???
//this.$router.push('results')
},
+ submitManager({ commit, state }, manager) {
+ if (manager != state.manager) {
+ commit('updateManager', manager)
+ commit('updateChanged', true)
+ }
+ //if (state.filters.length == 0) { put those actions in the result component when loaded.
+ // dispatch('getFilters')
+ // //}
+ // dispatch('getResults')
+ // dispatch('getEligible')
+ // dispatch('getNonEligible')
+ //dispatch('getUncertain') ???
+ //this.$router.push('results')
+ },
},
getters: {
@@ -152,6 +170,7 @@ export default {
changed: state => state.changed,
disabled: state => state.disabled,
spectacle: state => state.spectacle,
+ manager: state => state.manager,
diploma: state => state.diploma,
inscription_period: state => state.inscription_period,
allocation_type: state => state.allocation_type,
diff --git a/src/views/Questions.vue b/src/views/Questions.vue
index 62a9ebbb97294ab505ebd2575ffcc8fc05d4285a..24e50dd9d5f25fba325ef22d56791e53c13f2258 100644
--- a/src/views/Questions.vue
+++ b/src/views/Questions.vue
@@ -11,4 +11,17 @@ export default {
\ No newline at end of file
diff --git a/src/views/questions/ARE.vue b/src/views/questions/ARE.vue
index 0b0db8f52b362f46eef4e96bbe568bb1a66e1fac..585e3708aca47da1cedbac1cf30048d1ee522119 100644
--- a/src/views/questions/ARE.vue
+++ b/src/views/questions/ARE.vue
@@ -1,18 +1,26 @@
-
- Quel est le montant de cette allocation ?
-
- Revenir
- Continuer
-
+
+
+ Quel est le montant de cette allocation ?
+
+ Revenir
+ Continuer
+
+
\ No newline at end of file
diff --git a/src/views/questions/Grade.vue b/src/views/questions/Grade.vue
index e4cf49593898bd6c0342707fd5afaf362ce2fe16..5a5d1eeb97035fc40d5314fa81fcbb6670a9a3c6 100644
--- a/src/views/questions/Grade.vue
+++ b/src/views/questions/Grade.vue
@@ -1,17 +1,25 @@
-
- Quel est le diplôme le plus élevé que vous ayez obtenu ?
-
-
-
-
-
-
-
-
- Revenir
- Continuer
-
+
+
+ Quel est le diplôme le plus élevé que vous ayez obtenu ?
+
+
+
+
+
+
+
+
+ Revenir
+ Continuer
+
+