Skip to content

Commit 029ca66

Browse files
committed
Progress on KnowledgeEquityCreateWikiWizardStep
1 parent 9ee52cb commit 029ca66

2 files changed

Lines changed: 72 additions & 1 deletion

File tree

src/components/Cards/CreateWiki.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export default {
8787
temporality: '',
8888
otherTemporality: ''
8989
},
90+
stepFour: {
91+
selectedOption: '',
92+
freeTextResponse: ''
93+
},
9094
hasError: false,
9195
error: [],
9296
inFlight: false,

src/components/Cards/KnowledgeEquityCreateWikiWizardStep.vue

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,74 @@
55
</v-toolbar>
66

77
<v-card-text>
8-
8+
<v-form ref="form">
9+
<div>
10+
We want to
11+
<a href="https://meta.wikimedia.org/wiki/Strategy/Wikimedia_movement/2017#Our_strategic_direction:_Service_and_Equity" target="_blank">
12+
support knowledge equity
13+
</a>
14+
in the Wikibase ecosystem and to understand who currently sees their Wikibase contributing towards it.
15+
We welcome open responses and any additional feedback via our <a href="/contact" target="_blank">contact form</a>
16+
in addition to the options provided below.
17+
</div>
18+
<v-radio-group
19+
label="Do you believe that this Wikibase contributes positively to knowledge equity in the Wikibase ecosystem in any way?"
20+
v-model="value.selectedOption"
21+
:error-messages="error"
22+
:rules="[() => !!value.selectedOption || 'Please select an option.']"
23+
>
24+
<template v-slot:label>
25+
<div>Do you believe that this Wikibase contributes positively to knowledge equity in the Wikibase ecosystem in any way?</div>
26+
</template>
27+
<v-radio value="yes" label="Yes, I believe it does"/>
28+
<v-radio value="no" label="No, I don't believe it does"/>
29+
<v-radio value="unsure" label="I'm not sure"/>
30+
<v-radio value="unsaid" label="I prefer not to say"/>
31+
</v-radio-group>
32+
</v-form>
933
</v-card-text>
34+
35+
<v-card-actions>
36+
<v-btn
37+
type="button"
38+
:disabled="inFlight"
39+
@click="previousStep"
40+
>
41+
&lt; Previous
42+
</v-btn>
43+
44+
<v-btn
45+
type="button"
46+
color="primary"
47+
:disabled="inFlight"
48+
@click="submitForm"
49+
>
50+
Create Wiki
51+
</v-btn>
52+
</v-card-actions>
1053
</v-card>
1154
</template>
55+
56+
<script>
57+
export default {
58+
name: 'KnowledgeEquityCreateWikiWizardStep',
59+
props: {
60+
title: String,
61+
inFlight: Boolean,
62+
value: Object,
63+
error: Array
64+
},
65+
methods: {
66+
previousStep () {
67+
this.$emit('previous-step')
68+
},
69+
submitForm () {
70+
if (this.$refs.form.validate() === false) {
71+
return
72+
}
73+
74+
this.$emit('submit')
75+
}
76+
}
77+
}
78+
</script>

0 commit comments

Comments
 (0)