1
1
<template >
2
- <NcContent app-name =" libresign" class =" jumbotron with-sidebar--full" >
3
- <div class =" container" >
4
- <div class =" image" >
5
- <img :src =" image" draggable =" false" >
6
- </div >
7
- <div id =" dataUUID" >
8
- <form v-show =" !hasInfo" @submit =" (e) => e.preventDefault()" >
9
- <h1 >{{ title }}</h1 >
10
- <NcTextField :value.sync =" myUuid" :label =" legend" />
11
- <NcButton type =" primary"
12
- @click.prevent =" validate(myUuid)" >
13
- <template #icon >
14
- <NcLoadingIcon v-if =" hasLoading" :size =" 20" />
15
- </template >
16
- {{ buttonTitle }}
17
- </NcButton >
18
- </form >
19
- <div v-if =" hasInfo" class =" infor-container" >
20
- <div class =" infor-bg" >
21
- <div class =" infor" >
22
- <div class =" header" >
23
- <img class =" icon" :src =" infoIcon" >
24
- <h1 >{{ infoDocument }}</h1 >
25
- </div >
26
- <div class =" info-document" >
27
- <NcNoteCard v-if =" isAfterSigned" type =" success" >
28
- {{ t('libresign', 'Congratulations you have digitally signed a document using LibreSign') }}
29
- </NcNoteCard >
30
- <p >
31
- <b >{{ document.name }}</b >
32
- </p >
33
- <NcRichText class =" legal-information"
34
- :text =" legalInformation"
35
- :use-markdown =" true" />
2
+ <div class =" container" >
3
+ <div class =" image" >
4
+ <img :src =" image" draggable =" false" >
5
+ </div >
6
+ <div id =" dataUUID" >
7
+ <form v-show =" !hasInfo" @submit =" (e) => e.preventDefault()" >
8
+ <h1 >{{ title }}</h1 >
9
+ <NcTextField :value.sync =" myUuid" :label =" legend" />
10
+ <NcButton type =" primary"
11
+ @click.prevent =" validate(myUuid)" >
12
+ <template #icon >
13
+ <NcLoadingIcon v-if =" hasLoading" :size =" 20" />
14
+ </template >
15
+ {{ buttonTitle }}
16
+ </NcButton >
17
+ </form >
18
+ <div v-if =" hasInfo" class =" infor-container" >
19
+ <div class =" infor-bg" >
20
+ <div class =" infor" >
21
+ <div class =" header" >
22
+ <img class =" icon" :src =" infoIcon" >
23
+ <h1 >{{ infoDocument }}</h1 >
24
+ </div >
25
+ <div class =" info-document" >
26
+ <NcNoteCard v-if =" isAfterSigned" type =" success" >
27
+ {{ t('libresign', 'Congratulations you have digitally signed a document using LibreSign') }}
28
+ </NcNoteCard >
29
+ <p >
30
+ <b >{{ document.name }}</b >
31
+ </p >
32
+ <NcRichText class =" legal-information"
33
+ :text =" legalInformation"
34
+ :use-markdown =" true" />
36
35
37
- <NcButton type =" primary"
38
- @click =" viewDocument(document.file)" >
39
- <template #icon >
40
- <NcLoadingIcon v-if =" hasLoading" :size =" 20" />
41
- </template >
42
- {{ t('libresign', 'View') }}
43
- </NcButton >
44
- </div >
36
+ <NcButton type =" primary"
37
+ @click =" viewDocument(document.file)" >
38
+ <template #icon >
39
+ <NcLoadingIcon v-if =" hasLoading" :size =" 20" />
40
+ </template >
41
+ {{ t('libresign', 'View') }}
42
+ </NcButton >
45
43
</div >
46
44
</div >
47
- < div class = " infor-bg signed " >
48
- <div class =" header " >
49
- < img class =" icon " :src = " signatureIcon " >
50
- < h1 >{{ t('libresign', 'Signatories:') }}</ h1 >
51
- </ div >
52
- < div class = " infor-content " >
53
- <div v-for = " item in document.signers "
54
- id = " sign "
55
- :key = " item.displayName "
56
- class = " scroll " >
57
- < div class =" subscriber " >
58
- < span >< b >{{ getName(item) }}</ b ></ span >
59
- <span v-if = " item.signed " class = " data-signed " >
60
- {{ item.signed }}
61
- </ span >
62
- < span v-else >{{ noDateMessage }} </span >
63
- </ div >
45
+ </ div >
46
+ <div class =" infor-bg signed " >
47
+ < div class =" header " >
48
+ < img class = " icon " :src = " signatureIcon " >
49
+ <h1 >{{ t('libresign', 'Signatories:') }}</ h1 >
50
+ </ div >
51
+ <div class = " infor-content " >
52
+ < div v-for = " item in document.signers "
53
+ id = " sign "
54
+ :key = " item.displayName "
55
+ class =" scroll " >
56
+ < div class = " subscriber " >
57
+ <span >< b >{{ getName( item) }}</ b ></ span >
58
+ < span v-if = " item.signed" class = " data-signed " >
59
+ {{ item.signed }}
60
+ </span >
61
+ <span v-else >{{ noDateMessage }}</ span >
64
62
</div >
65
63
</div >
66
64
</div >
67
- <NcButton type =" primary"
68
- @click.prevent =" goBack" >
69
- {{ t('libresign', 'Return') }}
70
- </NcButton >
71
65
</div >
66
+ <NcButton type =" primary"
67
+ @click.prevent =" goBack" >
68
+ {{ t('libresign', 'Return') }}
69
+ </NcButton >
72
70
</div >
73
71
</div >
74
- </NcContent >
72
+ </div >
75
73
</template >
76
74
77
75
<script >
78
76
import axios from ' @nextcloud/axios'
79
- import NcContent from ' @nextcloud/vue/dist/Components/NcContent.js'
80
77
import NcTextField from ' @nextcloud/vue/dist/Components/NcTextField.js'
81
78
import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
82
79
import NcLoadingIcon from ' @nextcloud/vue/dist/Components/NcLoadingIcon.js'
@@ -98,7 +95,6 @@ export default {
98
95
components: {
99
96
NcTextField,
100
97
NcRichText,
101
- NcContent,
102
98
NcButton,
103
99
NcLoadingIcon,
104
100
NcNoteCard,
@@ -240,6 +236,7 @@ $date-signed-font: .7rem;
240
236
justify- content: center;
241
237
overflow- y: auto;
242
238
width: 100 % ;
239
+ height: 100 % ;
243
240
244
241
.image {
245
242
width: 100 % ;
@@ -357,7 +354,6 @@ button{
357
354
}
358
355
359
356
.signed {
360
- width: 100 % ;
361
357
margin- top: 10px ;
362
358
padding- right: 2px ;
363
359
strong {
0 commit comments