UX Improvements for Home page and Accessibility Statement page

This commit is contained in:
2024-07-31 16:52:05 +01:00
parent 6f4e329258
commit 0201b85836
2341 changed files with 11763 additions and 296638 deletions

View File

@@ -0,0 +1,29 @@
<div class="{{ model.FLAG_OVERLAY }} {{ model.FLAG_COLLAPSED }} {{ model.FLAG_CARD }}" id="{{ model.ID_OVERLAY_CONFIRM }}" style="visibility: hidden;" z-index="2">
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
<h2>Error:</h2>
<div id="{{ model.ID_LABEL_ERROR }}"></div>
</div>
<div class="{{ model.FLAG_CONTAINER }} {{ model.FLAG_ROW }}">
{% set block_id = 'button_cancel' %}
{% include '_blocks_button_save_cancel.html' %}
</div>
</div>
<script>
function hookupOverlayConfirm() {
let overlay = $("#{{ model.ID_OVERLAY_CONFIRM }}");
let buttonCancel = overlay.find('#{{ model.ID_BUTTON_CANCEL }}');
buttonCancel.onclick = function() {
overlay.style.visibility = 'hidden';
};
}
hookupOverlayConfirm();
function showOverlayError(msgError) {
let overlay = $("#{{ model.ID_OVERLAY_CONFIRM }}");
let labelError = overlay.find('#{{ model.ID_LABEL_ERROR }}');
labelError.text(msgError);
overlay.style.visibility = 'visible';
}
</script>