tpa recal modal
This commit is contained in:
parent
92d72d482c
commit
c2d316d0cb
2 changed files with 50 additions and 4 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
:innerHTML="headerText">
|
:innerHTML="headerText">
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
|
v-if="displayCloseButton"
|
||||||
ref="closeButton"
|
ref="closeButton"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn-close"
|
class="btn-close"
|
||||||
|
|
@ -49,6 +50,13 @@
|
||||||
'form-test-invalid'
|
'form-test-invalid'
|
||||||
]"
|
]"
|
||||||
@clickEvent="validateAndEmit" />
|
@clickEvent="validateAndEmit" />
|
||||||
|
<textLink
|
||||||
|
v-if="displayCloseLink"
|
||||||
|
class="mt-4 mb-0"
|
||||||
|
linkType="text"
|
||||||
|
text="Close window"
|
||||||
|
href="#"
|
||||||
|
@click="closeModal" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -60,11 +68,13 @@ import ButtonMain from '@/ux-components/button-main/button-main.vue';
|
||||||
import { Modal } from 'bootstrap';
|
import { Modal } from 'bootstrap';
|
||||||
import { useForm } from 'vee-validate';
|
import { useForm } from 'vee-validate';
|
||||||
import { modalPositions } from '@/constants/component-variants';
|
import { modalPositions } from '@/constants/component-variants';
|
||||||
|
import textLink from '@/ux-components/text-link/text-link.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'modal',
|
name: 'modal',
|
||||||
components: {
|
components: {
|
||||||
ButtonMain
|
ButtonMain,
|
||||||
|
textLink
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
modalId: String,
|
modalId: String,
|
||||||
|
|
@ -92,6 +102,14 @@ export default {
|
||||||
displayFooterButton: {
|
displayFooterButton: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
displayCloseButton: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
displayCloseLink: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['footer-button-event', 'isModalOpened'],
|
emits: ['footer-button-event', 'isModalOpened'],
|
||||||
|
|
@ -197,6 +215,7 @@ export default {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
> .navigation-link {
|
> .navigation-link {
|
||||||
color: $black;
|
color: $black;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@
|
||||||
:modalId="ModalName"
|
:modalId="ModalName"
|
||||||
:footerButtonText="ModalCloseButtonText"
|
:footerButtonText="ModalCloseButtonText"
|
||||||
:isButtonDisabled="isButtonDisabled"
|
:isButtonDisabled="isButtonDisabled"
|
||||||
@footerButtonEvent="footerButtonClick">
|
@footerButtonEvent="footerButtonClick"
|
||||||
|
:displayCloseButton="false"
|
||||||
|
:displayCloseLink="true">
|
||||||
<div class="form-test-invalid">
|
<div class="form-test-invalid">
|
||||||
<h5 class="text-center mb-4">
|
<h5 class="text-center mb-4">
|
||||||
{{ ModalHeadline }}
|
{{ ModalHeadline }}
|
||||||
|
|
@ -33,7 +35,7 @@
|
||||||
v-if="showAcknowledgementCheckbox"
|
v-if="showAcknowledgementCheckbox"
|
||||||
ref="tpaAcknowledgement"
|
ref="tpaAcknowledgement"
|
||||||
v-model="acknowledged"
|
v-model="acknowledged"
|
||||||
class="mb-2"
|
class="mb-2 mt-4"
|
||||||
:class="showAcknowledgementError && ' has-error'"
|
:class="showAcknowledgementError && ' has-error'"
|
||||||
:validationRules="rules.optionRequired"
|
:validationRules="rules.optionRequired"
|
||||||
checkboxName="tpaAcknowledgement"
|
checkboxName="tpaAcknowledgement"
|
||||||
|
|
@ -160,14 +162,39 @@ export default {
|
||||||
color: #4d4e53;
|
color: #4d4e53;
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
padding-top: 20px;
|
padding-top: 22px;
|
||||||
button {
|
button {
|
||||||
background-color: $green;
|
background-color: $green;
|
||||||
color: $white;
|
color: $white;
|
||||||
|
font-weight: $font-weight-bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tpa-recal-question > div:first-of-type {
|
.tpa-recal-question > div:first-of-type {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
.button-question {
|
||||||
|
fieldset {
|
||||||
|
box-shadow: 0px 2px 5px -5px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.list-button-horizontal {
|
||||||
|
&.selected {
|
||||||
|
input {
|
||||||
|
background-color: $background-color-selected;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.form-check {
|
||||||
|
p {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.form-check-input:checked {
|
||||||
|
+ label p {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #4d4e53;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue