UX Improvements for Home page and Accessibility Statement page
This commit is contained in:
29
templates/_block_overlay_error.html
Normal file
29
templates/_block_overlay_error.html
Normal 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>
|
||||
Reference in New Issue
Block a user