11<template >
2- <Stepper />
3- <div
4- id =" form"
5- class =" col-12 col-lg-5 col-sm-10"
6- >
7- <div id =" form-title" >
8- <h1 class =" page-title" >
9- Authors
10- </h1 >
11- </div >
12-
13- <div id =" form-content" >
14- <h2 class =" question" >
15- Who are the author(s) of the work?
16- <SchemaGuideLink anchor="#authors " />
17- </h2 >
18- <div class =" scroll-to-bottom-container" >
19- <span class =" bottom" />
20- <div >
21- <div
22- class =" q-mb-md q-mr-lg"
23- v-bind:key =" index"
24- v-for =" (author, index) in authors"
25- >
26- <AuthorCardViewing
27- v-if =" editingId !== index "
28- v-bind :index =" index "
29- v-bind :author =" author "
30- v-bind :num-authors =" authors .length "
31- v-on :editPressed =" () => (editingId = index ) "
32- v-on :moveDown =" moveAuthorDown (index )"
33- v-on :moveUp =" moveAuthorUp (index )"
34- />
35- <AuthorCardEditing
36- v-else
37- v-bind :index =" index "
38- v-bind =" author "
39- v-on :update =" setAuthorField "
40- v-on :closePressed =" () => (editingId = - 1 ) "
41- v-on :removePressed =" removeAuthor "
42- />
43- </div >
44- </div >
45- </div >
46-
47- <q-btn
48- class =" q-mt-md q-mb-md"
49- color =" primary"
50- no-caps
51- v-on:click =" addAuthor"
52- >
53- Add author
54- </q-btn >
2+ <div id =" form-title" >
3+ <h1 class =" page-title" >
4+ Authors
5+ </h1 >
6+ </div >
557
56- <q-banner
57- v-if =" authorsErrors.length > 0"
58- v-bind:class =" ['bg-warning', 'text-negative', authorsErrors.length > 0 ? 'has-error' : '']"
59- >
8+ <div id =" form-content" >
9+ <h2 class =" question" >
10+ Who are the author(s) of the work?
11+ <SchemaGuideLink anchor="#authors " />
12+ </h2 >
13+ <div class =" scroll-to-bottom-container" >
14+ <span class =" bottom" />
15+ <div >
6016 <div
17+ class =" q-mb-md q-mr-lg"
6118 v-bind:key =" index"
62- v-for =" (screenMessage , index) in authorsErrors "
19+ v-for =" (author , index) in authors "
6320 >
64- {{ screenMessage }}
21+ <AuthorCardViewing
22+ v-if =" editingId !== index "
23+ v-bind :index =" index "
24+ v-bind :author =" author "
25+ v-bind :num-authors =" authors .length "
26+ v-on :editPressed =" () => (editingId = index ) "
27+ v-on :moveDown =" moveAuthorDown (index )"
28+ v-on :moveUp =" moveAuthorUp (index )"
29+ />
30+ <AuthorCardEditing
31+ v-else
32+ v-bind :index =" index "
33+ v-bind =" author "
34+ v-on :update =" setAuthorField "
35+ v-on :closePressed =" () => (editingId = - 1 ) "
36+ v-on :removePressed =" removeAuthor "
37+ />
6538 </div >
66- </q-banner >
39+ </div >
6740 </div >
6841
69- <div id =" form-button-bar" >
70- <StepperActions />
71- </div >
42+ <q-btn
43+ class =" q-mt-md q-mb-md"
44+ color =" primary"
45+ no-caps
46+ v-on:click =" addAuthor"
47+ >
48+ Add author
49+ </q-btn >
50+
51+ <q-banner
52+ v-if =" authorsErrors.length > 0"
53+ v-bind:class =" ['bg-warning', 'text-negative', authorsErrors.length > 0 ? 'has-error' : '']"
54+ >
55+ <div
56+ v-bind:key =" index"
57+ v-for =" (screenMessage, index) in authorsErrors"
58+ >
59+ {{ screenMessage }}
60+ </div >
61+ </q-banner >
7262 </div >
7363</template >
7464
@@ -80,8 +70,6 @@ import AuthorCardEditing from 'components/AuthorCardEditing.vue'
8070import AuthorCardViewing from ' components/AuthorCardViewing.vue'
8171import { AuthorType } from ' src/types'
8272import SchemaGuideLink from ' components/SchemaGuideLink.vue'
83- import Stepper from ' components/Stepper.vue'
84- import StepperActions from ' components/StepperActions.vue'
8573import { scrollToBottom } from ' src/scroll-to-bottom'
8674import { useCff } from ' src/store/cff'
8775import { useStepperErrors } from ' src/store/stepper-errors'
@@ -91,8 +79,6 @@ export default defineComponent({
9179 name: ' ScreenAuthors' ,
9280 components: {
9381 SchemaGuideLink ,
94- Stepper ,
95- StepperActions ,
9682 AuthorCardEditing ,
9783 AuthorCardViewing
9884 },
0 commit comments