Commit 0b12088b authored by Rémy Marronnier's avatar Rémy Marronnier

styling wip

parent 27584daa
...@@ -15,7 +15,7 @@ Vue.use(Router) ...@@ -15,7 +15,7 @@ Vue.use(Router)
export default new Router({ export default new Router({
// https://alligator.io/vuejs/vue-router-modify-head/ to change title and metadata
routes: [ routes: [
{ {
path: '/', path: '/',
......
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
changed: false, changed: false,
disabled: false, disabled: false,
spectacle: false, spectacle: false,
manager: false,
diploma: "", diploma: "",
inscription_period: "", inscription_period: "",
allocation_type: "", allocation_type: "",
...@@ -25,6 +26,9 @@ export default { ...@@ -25,6 +26,9 @@ export default {
updateSpectacle(state, spectacle) { updateSpectacle(state, spectacle) {
state.spectacle = spectacle state.spectacle = spectacle
}, },
updateManager(state, manager) {
state.manager = manager
},
updateDiploma(state, diploma) { updateDiploma(state, diploma) {
state.diploma = diploma state.diploma = diploma
}, },
...@@ -145,6 +149,20 @@ export default { ...@@ -145,6 +149,20 @@ export default {
//dispatch('getUncertain') ??? //dispatch('getUncertain') ???
//this.$router.push('results') //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: { getters: {
...@@ -152,6 +170,7 @@ export default { ...@@ -152,6 +170,7 @@ export default {
changed: state => state.changed, changed: state => state.changed,
disabled: state => state.disabled, disabled: state => state.disabled,
spectacle: state => state.spectacle, spectacle: state => state.spectacle,
manager: state => state.manager,
diploma: state => state.diploma, diploma: state => state.diploma,
inscription_period: state => state.inscription_period, inscription_period: state => state.inscription_period,
allocation_type: state => state.allocation_type, allocation_type: state => state.allocation_type,
......
...@@ -11,4 +11,17 @@ export default { ...@@ -11,4 +11,17 @@ export default {
</script> </script>
<style> <style>
.v-input--selection-controls.v-input .v-label {
color: black;
font-size: 24px;
margin-top: 15px;
margin-bottom: 15px;
}
.v-text-field {
font-size: 24px;
}
v-card-title {
justify-content: center;
}
</style> </style>
\ No newline at end of file
<template> <template>
<v-form @submit.prevent="submitARE" ref="formARE" v-model="validity" :lazy-validation="lazy"> <v-card align="center">
Quel est le montant de cette allocation ? <v-form @submit.prevent="submitARE" ref="formARE" v-model="validity" :lazy-validation="lazy">
<v-text-field Quel est le montant de cette allocation ?
v-model.number="monthly_allocation_value" <v-text-field
autofocus v-model.number="monthly_allocation_value"
required autofocus
:rules="rules" required
min="0"