allow device_details without placeholder

This commit is contained in:
Cayo Puigdefabregas 2022-07-18 12:56:33 +02:00
parent b039e491dc
commit 376021470c
1 changed files with 6 additions and 0 deletions

View File

@ -22,9 +22,15 @@
<!-- Bordered Tabs --> <!-- Bordered Tabs -->
<ul class="nav nav-tabs nav-tabs-bordered"> <ul class="nav nav-tabs nav-tabs-bordered">
{% if placeholder %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{{ url_for('inventory.device_details', id=placeholder.device.devicehub_id) }}">Placeholder device</a> <a class="nav-link" href="{{ url_for('inventory.device_details', id=placeholder.device.devicehub_id) }}">Placeholder device</a>
</li> </li>
{% else %}
<li class="nav-item">
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#type">General details</button>
</li>
{% endif %}
{% if placeholder.binding %} {% if placeholder.binding %}
<li class="nav-item"> <li class="nav-item">