feat: introduce unified asset and location management interface and logic
This commit is contained in:
parent
97edbde803
commit
0b3d00fdf5
3 changed files with 6 additions and 4 deletions
|
|
@ -1171,12 +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;';
|
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');
|
||||||
document.getElementById('col-map').className = 'col-12';
|
const colMap = document.getElementById('col-map');
|
||||||
|
colMap.className = 'col-12';
|
||||||
|
colMap.style.cssText = 'position: relative; margin-top: 50px;';
|
||||||
setLayoutActive('map');
|
setLayoutActive('map');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
<div id="col-map" class="{% if request.user.config.assets_list_layout == 'table_only' %}d-none{% elif request.user.config.assets_list_layout == 'map_only' %}col-12{% else %}col-md-6{% endif %}" style="position: relative;">
|
<div id="col-map" class="{% if request.user.config.assets_list_layout == 'table_only' %}d-none{% elif request.user.config.assets_list_layout == 'map_only' %}col-12{% else %}col-md-6{% endif %}" style="position: relative; margin-top: 50px;">
|
||||||
<!-- Panneau d'information pour les commentaires et assets -->
|
<!-- Panneau d'information pour les commentaires et assets -->
|
||||||
<div id="info-panel">
|
<div id="info-panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
|
|
|
||||||
|
|
@ -563,7 +563,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# ─── Map column ──────────────────────────────────────────────────── #}
|
{# ─── Map column ──────────────────────────────────────────────────── #}
|
||||||
<div id="col-map" class="col-md-6" style="position: relative; margin-top: 0;">
|
<div id="col-map" class="col-md-6" style="position: relative; margin-top: 50px;">
|
||||||
<div id="info-panel">
|
<div id="info-panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<button id="info-panel-back" class="btn btn-sm btn-outline-secondary me-2" style="display:none;">
|
<button id="info-panel-back" class="btn btn-sm btn-outline-secondary me-2" style="display:none;">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue