-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathKnowledgeEquityCreateWikiWizardStep.vue
More file actions
102 lines (96 loc) · 3.22 KB
/
KnowledgeEquityCreateWikiWizardStep.vue
File metadata and controls
102 lines (96 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<template>
<v-card class="elevation-12">
<v-toolbar dark color="primary">
<v-toolbar-title>{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card-text>
<v-form ref="form">
<div class="text-body-1">
We want to
<a href="https://meta.wikimedia.org/wiki/Strategy/Wikimedia_movement/2017#Our_strategic_direction:_Service_and_Equity" target="_blank">
support knowledge equity</a>
in the Wikibase ecosystem and to understand who currently sees their Wikibase contributing towards it.
We welcome open responses and any additional feedback via our <a href="/contact" target="_blank">contact form</a>
in addition to the options provided below.
</div>
<v-radio-group
label="Do you believe that this Wikibase contributes positively to knowledge equity in the Wikibase ecosystem in any way?"
v-model="value.selectedOption"
:error-messages="error"
:rules="[() => !!value.selectedOption || 'Please select an option.']"
>
<template v-slot:label>
<h3>Do you believe that this Wikibase contributes positively to knowledge equity in the Wikibase ecosystem in any way?</h3>
</template>
<v-radio value="yes" label="Yes, I believe it does"/>
<v-radio value="no" label="No, I don't believe it does"/>
<v-radio value="unsure" label="I'm not sure"/>
<v-radio value="unsaid" label="I prefer not to say"/>
</v-radio-group>
<v-textarea
class="mb-2"
outlined
placeholder="If you’d like, please tell us in what way(s). For example, through the knowledge it contributes and/or the people holding and sharing it."
counter="3000"
v-model="value.freeTextResponse"
:rules="[() => value.freeTextResponse.length <= 3000 || 'Text must be 3000 characters or less.' ]"
/>
<v-alert
outlined
text
type="warning"
icon="mdi-alert-outline"
>
Please avoid sharing any personal or sensitive information. This information will be visible to WMDE employees and external members of the
<a href="https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud/Hosting_policy_draft_v0.1#4.7_Review_Committee" target="_blank">review committee</a>.
</v-alert>
</v-form>
</v-card-text>
<v-card-actions>
<v-btn
type="button"
:disabled="inFlight"
@click="previousStep"
>
< Previous
</v-btn>
<v-btn
type="button"
color="primary"
:disabled="inFlight"
@click="submitForm"
>
Create Wiki
</v-btn>
</v-card-actions>
</v-card>
</template>
<script>
export default {
name: 'KnowledgeEquityCreateWikiWizardStep',
props: {
title: String,
inFlight: Boolean,
value: Object,
error: Array
},
methods: {
previousStep () {
this.$emit('previous-step')
},
submitForm () {
if (this.$refs.form.validate() === false) {
return
}
this.$emit('submit')
}
}
}
</script>
<style lang="css" scoped>
.v-card__actions {
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
</style>