Skip to content

Commit

Permalink
information field collabsable
Browse files Browse the repository at this point in the history
  • Loading branch information
njakuschona committed Nov 23, 2023
1 parent d6bc93d commit f77dd85
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 26 deletions.
45 changes: 29 additions & 16 deletions src/main/js/bundles/dn_printingenhanced/LayoutWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,33 @@
v-if="visibleUiElements.printPreviewCheckbox"
md12
>
<v-checkbox
v-model="enablePrintPreviewValue"
:label="i18n.showPrintPreview"
:disabled="!scaleEnabled"
color="primary"
hide-details
class="pa-0 ma-0"
/>
<div class="pa-0 ma-0 infoContainer">
<v-checkbox
v-model="enablePrintPreviewValue"
:label="i18n.showPrintPreview"
:disabled="!scaleEnabled"
color="primary"
hide-details
class="pa-0 ma-0"
/>
<v-btn
v-if="!scaleEnabled"
icon
small
top
class="infoButton"
@click="showInfo=!showInfo"
>
<v-icon color="primary">info</v-icon>
</v-btn>
</div>
<div
v-if="showInfo && !scaleEnabled"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
</v-flex>
<v-flex
v-if="visibleUiElements.scaleEnabled"
Expand Down Expand Up @@ -169,13 +188,6 @@
class="pa-0 ma-0"
/>
</v-flex>
<div
v-if="!scaleEnabled"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
</v-layout>
</v-container>
</template>
Expand Down Expand Up @@ -255,7 +267,8 @@
},
data() {
return {
advancedOptions: [0]
advancedOptions: [0],
showInfo: false
};
},
computed: {
Expand Down
38 changes: 29 additions & 9 deletions src/main/js/bundles/dn_printingenhanced/MapOnlyWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,33 @@
v-if="visibleUiElements.printPreviewCheckbox"
md12
>
<v-checkbox
v-model="enablePrintPreviewValue"
disabled
:label="i18n.showPrintPreview"
color="primary"
hide-details
class="pa-0 ma-0"
/>
<div class="pa-0 ma-0 infoContainer">
<v-checkbox
v-model="enablePrintPreviewValue"
:label="i18n.showPrintPreview"
:disabled="!scaleEnabled"
color="primary"
hide-details
class="pa-0 ma-0"
/>
<v-btn
v-if="!scaleEnabled"
icon
small
top
class="infoButton"
@click="showInfo=!showInfo"
>
<v-icon color="primary">info</v-icon>
</v-btn>
</div>
<div
v-if="showInfo && !scaleEnabled"
aria-live="polite"
class="ct-message ct-message--info mt-2"
>
{{ i18n.helperTextScaleEnabled }}
</div>
</v-flex>
<v-flex
v-if="visibleUiElements.scaleEnabled"
Expand Down Expand Up @@ -253,7 +272,8 @@
},
data() {
return {
advancedOptions: [0]
advancedOptions: [0],
showInfo: false
};
},
computed: {
Expand Down
9 changes: 9 additions & 0 deletions src/main/js/bundles/dn_printingenhanced/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,13 @@
border: none;
}

.ctAppRoot .vue-base.printing-enhanced-widget .infoContainer {

display: inline-flex;
}

.ctAppRoot .vue-base.printing-enhanced-widget .infoButton {
margin: 0px;
top: 0px
}

2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_printingenhanced/nls/de/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ module.exports = {
medium: "Mittel",
high: "Hoch",
graphicsLayerTitle: "Druckvorschau",
helperTextScaleEnabled: "Druckrahmen kann nur angezeigt werden, wenn ein Maßstab festgelegt ist."
helperTextScaleEnabled: "Der Druckrahmen kann nur angezeigt werden, wenn ein Maßstab festgelegt ist."
}
};

0 comments on commit f77dd85

Please sign in to comment.