feat: implement unified asset index view with dynamic filtering modal and associated JavaScript logic
This commit is contained in:
parent
2b8cdfabb7
commit
d82dcde16d
2 changed files with 448 additions and 288 deletions
|
|
@ -991,7 +991,7 @@ $(document).ready(function () {
|
||||||
else window.location.reload();
|
else window.location.reload();
|
||||||
}, 800);
|
}, 800);
|
||||||
} else {
|
} else {
|
||||||
const errorMsg = (result && (result.error || result.message))
|
const errorMsg = (result && (result.error || result.message))
|
||||||
|| (response.status ? `${gettext('Erreur serveur')} (${response.status})` : gettext('Erreur lors de la création.'));
|
|| (response.status ? `${gettext('Erreur serveur')} (${response.status})` : gettext('Erreur lors de la création.'));
|
||||||
setModalAlert('unifiedAddAssetAlert', `<i class="bi bi-exclamation-triangle me-1"></i>${escapeHtml(errorMsg)}`, 'danger');
|
setModalAlert('unifiedAddAssetAlert', `<i class="bi bi-exclamation-triangle me-1"></i>${escapeHtml(errorMsg)}`, 'danger');
|
||||||
}
|
}
|
||||||
|
|
@ -1171,14 +1171,14 @@ $(document).ready(function () {
|
||||||
document.getElementById('col-table').className = 'col-md-6';
|
document.getElementById('col-table').className = 'col-md-6';
|
||||||
const colMap = document.getElementById('col-map');
|
const colMap = document.getElementById('col-map');
|
||||||
colMap.className = 'col-md-6';
|
colMap.className = 'col-md-6';
|
||||||
colMap.style.cssText = 'position: relative; margin-top: 44px;';
|
colMap.style.cssText = 'position: relative; margin-top: 50px;';
|
||||||
setLayoutActive('both');
|
setLayoutActive('both');
|
||||||
});
|
});
|
||||||
document.getElementById('layout-btn-map').addEventListener('click', function () {
|
document.getElementById('layout-btn-map').addEventListener('click', function () {
|
||||||
document.getElementById('col-table').classList.add('d-none');
|
document.getElementById('col-table').classList.add('d-none');
|
||||||
const colMap = document.getElementById('col-map');
|
const colMap = document.getElementById('col-map');
|
||||||
colMap.className = 'col-12';
|
colMap.className = 'col-12';
|
||||||
colMap.style.cssText = 'position: relative; margin-top: 44px;';
|
colMap.style.cssText = 'position: relative; margin-top: 50px;';
|
||||||
setLayoutActive('map');
|
setLayoutActive('map');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue