|
4 | 4 | bordered |
5 | 5 | class="bg-formcard q-pa-md" |
6 | 6 | > |
| 7 | + <div class="row"> |
| 8 | + <q-label class="text-dark"> |
| 9 | + The person's given names |
| 10 | + <SchemaGuideLink anchor="#definitionspersongiven-names" /> |
| 11 | + </q-label> |
| 12 | + </div> |
7 | 13 | <div class="row"> |
8 | 14 | <q-input |
9 | 15 | bg-color="white" |
|
20 | 26 | ref="givenNamesRef" |
21 | 27 | /> |
22 | 28 | </div> |
| 29 | + <div class="row"> |
| 30 | + <q-label class="text-dark"> |
| 31 | + The person's last names, split into parts |
| 32 | + </q-label> |
| 33 | + </div> |
23 | 34 | <div class="row"> |
24 | 35 | <q-input |
25 | 36 | bg-color="white" |
|
33 | 44 | v-bind:error="nameParticleError.hasError" |
34 | 45 | v-bind:error-message="nameParticleError.messages.join(', ')" |
35 | 46 | v-on:update:modelValue="$emit('update', 'nameParticle', $event)" |
36 | | - /> |
| 47 | + > |
| 48 | + <SchemaGuideLink |
| 49 | + anchor="#definitionspersonname-particle" |
| 50 | + class="q-pt-sm" |
| 51 | + /> |
| 52 | + </q-input> |
37 | 53 | <q-input |
38 | 54 | bg-color="white" |
39 | 55 | class="col" |
|
46 | 62 | v-bind:error="familyNamesError.hasError" |
47 | 63 | v-bind:error-message="familyNamesError.messages.join(', ')" |
48 | 64 | v-on:update:modelValue="$emit('update', 'familyNames', $event)" |
49 | | - /> |
| 65 | + > |
| 66 | + <SchemaGuideLink |
| 67 | + anchor="#definitionspersonfamily-names" |
| 68 | + class="q-pt-sm" |
| 69 | + /> |
| 70 | + </q-input> |
50 | 71 | <q-input |
51 | 72 | bg-color="white" |
52 | 73 | class="col-3" |
|
59 | 80 | v-bind:error="nameSuffixError.hasError" |
60 | 81 | v-bind:error-message="nameSuffixError.messages.join(', ')" |
61 | 82 | v-on:update:modelValue="$emit('update', 'nameSuffix', $event)" |
62 | | - /> |
| 83 | + > |
| 84 | + <SchemaGuideLink |
| 85 | + anchor="#definitionspersonname-suffix" |
| 86 | + class="q-pt-sm" |
| 87 | + /> |
| 88 | + </q-input> |
| 89 | + </div> |
| 90 | + <div class="row"> |
| 91 | + <q-label class="text-dark"> |
| 92 | + The person's email address |
| 93 | + <SchemaGuideLink anchor="#definitionsperson-email" /> |
| 94 | + </q-label> |
63 | 95 | </div> |
64 | 96 | <div class="row"> |
65 | 97 | <q-input |
|
77 | 109 | v-on:update:modelValue="$emit('update', 'email', $event)" |
78 | 110 | /> |
79 | 111 | </div> |
| 112 | + <div class="row"> |
| 113 | + <q-label class="text-dark col"> |
| 114 | + The person's affiliation |
| 115 | + <SchemaGuideLink anchor="#definitionsperson-affiliation" /> |
| 116 | + </q-label> |
| 117 | + <q-label class="text-dark col"> |
| 118 | + The person's ORCID |
| 119 | + <SchemaGuideLink anchor="#definitionsperson-orcid" /> |
| 120 | + </q-label> |
| 121 | + </div> |
80 | 122 | <div class="row"> |
81 | 123 | <q-input |
82 | 124 | bg-color="white" |
|
158 | 200 | import { computed, defineComponent, onMounted, ref } from 'vue' |
159 | 201 | import { getMyErrors } from 'src/store/validator' |
160 | 202 | import { authorErrors } from 'src/author-errors' |
| 203 | +import SchemaGuideLink from './SchemaGuideLink.vue' |
161 | 204 |
|
162 | 205 | export default defineComponent({ |
163 | 206 | name: 'AuthorCardEditing', |
@@ -214,10 +257,10 @@ export default defineComponent({ |
214 | 257 | affiliationError: computed(() => getMyErrors(`/authors/${props.index}/affiliation`)), |
215 | 258 | orcidError: computed(() => getMyErrors(`/authors/${props.index}/orcid`)), |
216 | 259 | authorErrors: computed(() => authorErrors(props.index)) |
217 | | -
|
218 | 260 | } |
219 | 261 | }, |
220 | | - emits: ['closePressed', 'removePressed', 'update', 'moveUp', 'moveDown'] |
| 262 | + emits: ['closePressed', 'removePressed', 'update', 'moveUp', 'moveDown'], |
| 263 | + components: { SchemaGuideLink } |
221 | 264 | }) |
222 | 265 | </script> |
223 | 266 | <style scoped> |
|
0 commit comments