29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<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> |