fix: always show rack photo card with hint when none found
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c888a65180
commit
cd4357f417
3 files changed
+7
-5
No files matched your search
@@ -5,7 +5,7 @@ class CustomerExportConfig(PluginConfig):
|
||||
name = "netbox_customer_export"
|
||||
verbose_name = "Kunden-Export"
|
||||
description = "Kundendokumentation als PDF oder Word exportieren"
|
||||
version = "0.12.0"
|
||||
version = "0.12.1"
|
||||
author = "Claude"
|
||||
base_url = "customer-export"
|
||||
min_version = "4.6.8"
|
||||
|
||||
@@ -138,10 +138,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if rack_photos %}
|
||||
<div class="card ce-card mt-3" data-ce-depends="racks">
|
||||
<div class="card ce-card mt-3" data-ce-depends="racks">
|
||||
<h2 class="card-header"><i class="mdi mdi-image-multiple-outline"></i> Rack-Fotos</h2>
|
||||
<div class="card-body">
|
||||
{% if not rack_photos %}
|
||||
<div class="text-secondary">Keine Bildanhänge an Racks in diesem Scope gefunden. Fotos lassen sich am Rack über <em>Bild anhängen</em> hochladen.</div>
|
||||
{% else %}
|
||||
<div class="form-text mt-0 mb-3">Ausgewählte Fotos erscheinen im Anhang am Dokumentende, unter der jeweiligen Rack-Ansicht steht ein Verweis darauf.</div>
|
||||
{% for rack, atts in rack_photos %}
|
||||
<div class="ce-photo-rack" data-ce-group>
|
||||
@@ -160,9 +162,9 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="card ce-card mt-3" data-ce-depends="topology">
|
||||
<h2 class="card-header d-flex justify-content-between align-items-center">
|
||||
<span><i class="mdi mdi-sitemap"></i> Topologie</span>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "netbox-customer-export"
|
||||
version = "0.12.0"
|
||||
version = "0.12.1"
|
||||
description = "NetBox-Plugin: Kundendokumentation (PDF/Word) für Standorte, Lokationen, Mandanten und Mandantengruppen"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in new issue
Block a user