Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Simulateur Clara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
claravue
Simulateur Clara
Commits
0b12088b
Commit
0b12088b
authored
Dec 24, 2019
by
Rémy Marronnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling wip
parent
27584daa
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
255 additions
and
122 deletions
+255
-122
src/router.js
src/router.js
+1
-1
src/store/modules/situation.js
src/store/modules/situation.js
+19
-0
src/views/Questions.vue
src/views/Questions.vue
+13
-0
src/views/questions/ARE.vue
src/views/questions/ARE.vue
+22
-14
src/views/questions/Address.vue
src/views/questions/Address.vue
+1
-1
src/views/questions/Age.vue
src/views/questions/Age.vue
+27
-14
src/views/questions/Allocation.vue
src/views/questions/Allocation.vue
+49
-37
src/views/questions/Category.vue
src/views/questions/Category.vue
+35
-19
src/views/questions/Grade.vue
src/views/questions/Grade.vue
+21
-13
src/views/questions/Inscription.vue
src/views/questions/Inscription.vue
+18
-10
src/views/questions/Other.vue
src/views/questions/Other.vue
+49
-13
No files found.
src/router.js
View file @
0b12088b
...
...
@@ -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
:
'
/
'
,
...
...
src/store/modules/situation.js
View file @
0b12088b
...
...
@@ -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
,
...
...
src/views/Questions.vue
View file @
0b12088b
...
...
@@ -11,4 +11,17 @@ export default {
</
script
>
<
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
>
\ No newline at end of file
src/views/questions/ARE.vue
View file @
0b12088b
<
template
>
<v-form
@
submit.prevent=
"submitARE"
ref=
"formARE"
v-model=
"validity"
:lazy-validation=
"lazy"
>
Quel est le montant de cette allocation ?
<v-text-field
v-model.number=
"monthly_allocation_value"
autofocus
required
:rules=
"rules"
min=
"0"
type=
"number"
label=
"Montant par mois"
></v-text-field>
<v-btn
@
click=
"back"
>
Revenir
</v-btn>
<v-btn
v-bind:disabled=
"!validity"
type=
"submit"
>
Continuer
</v-btn>
</v-form>
<v-card
align=
"center"
>
<v-form
@
submit.prevent=
"submitARE"
ref=
"formARE"
v-model=
"validity"
:lazy-validation=
"lazy"
>
Quel est le montant de cette allocation ?
<v-text-field
v-model.number=
"monthly_allocation_value"
autofocus
required
:rules=
"rules"
min=
"0"
type=
"number"
label=
"Montant par mois"
></v-text-field>
<v-btn
x-large
class=
"ma-2"
color=
"#96a8b2"
@
click=
"back"
>
Revenir
</v-btn>
<v-btn
x-large
class=
"ma-2"
color=
"secondary"
v-bind:disabled=
"!validity"
type=
"submit"
>
Continuer
</v-btn>
</v-form>
</v-card>
</
template
>
<
script
>
...
...
src/views/questions/Address.vue
View file @
0b12088b
...
...
@@ -6,7 +6,7 @@
<v-row>
<v-col
cols=
"12"
md=
"8"
>
<v-autocomplete
max-
width=
"200px"
width=
"200px"
v-model=
"address"
:items=
"items"
:loading=
"isLoading"
...
...
src/views/questions/Age.vue
View file @
0b12088b
<
template
>
<v-form
@
submit.prevent=
"submitAge"
ref=
"formAge"
v-model=
"validity"
:lazy-validation=
"lazy"
>
Quel est votre âge ?
<v-text-field
required
autofocus
v-model.number=
"age"
type=
"number"
min=
"0"
:rules=
"[rules.min]"
></v-text-field>
<v-btn
@
click=
"back"
>
Revenir
</v-btn>
<v-btn
v-bind:disabled=
"!validity"
type=
"submit"
>
Continuer
</v-btn>
</v-form>
<v-card
align=
"center"
>
<v-card-title
class=
"display-1"
>
Quel est votre âge ?
</v-card-title>
<v-form
@
submit.prevent=
"submitAge"
ref=
"formAge"
v-model=
"validity"
:lazy-validation=
"lazy"
>
<v-text-field
required
autofocus
outlined
color=
"black"