AccompanyingCourse: improve design of CourseLocation block

This commit is contained in:
Mathieu Jaumotte 2021-08-20 23:04:51 +02:00
parent 4d65c54996
commit 14cbb1dd28
2 changed files with 26 additions and 12 deletions

View File

@ -8,7 +8,7 @@ div.list-with-period {
flex-wrap: nowrap;
div.wl-col {
&.title {
width: 36%;
width: 34%;
@include media-breakpoint-up(md) {
margin-left: 0;
}

View File

@ -15,19 +15,22 @@
</label>
</div>
<div v-if="isPersonLocation">
<label class="col-form-label">
{{ $t('courselocation.person_locator', [ accompanyingCourse.personLocation.text ]) }}
</label>
</div>
<div class="flex-table" v-if="accompanyingCourse.location">
<div class="item-bloc">
<show-address
:address="accompanyingCourse.location">
</show-address>
<show-address
v-if="accompanyingCourse.location"
:address="accompanyingCourse.location">
</show-address>
<div v-if="isPersonLocation" class="alert alert-secondary separator">
<label class="col-form-label">
{{ $t('courselocation.person_locator', [ accompanyingCourse.personLocation.text ]) }}
</label>
</div>
<div v-if="isTemporaryAddress" class="alert alert-warning">
<p>{{ $t('courselocation.temporary_address_must_be_changed') }}</p>
<div v-if="isTemporaryAddress" class="alert alert-warning separator">
<p>{{ $t('courselocation.temporary_address_must_be_changed') }}</p>
</div>
</div>
</div>
<div>
@ -156,3 +159,14 @@ export default {
}
}
</script>
<style lang="scss" scoped>
div.flex-table {
div.item-bloc {
div.alert {
margin: 0 -0.9em -1em;
}
}
}
</style>