Add links to distributor and manufacturer website

This commit is contained in:
Mario Hüttel 2021-11-14 22:04:17 +01:00
parent 01124d9904
commit ef631acd6b
3 changed files with 9 additions and 4 deletions

View File

@ -15,7 +15,10 @@
{% endif %}
</div>
<div class="row">
<button class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#distri-delete-modal"><i class="bi bi-file-x"></i> Delete {{distributor.name}}</button>
<button class="btn btn-danger mb-2" data-bs-toggle="modal" data-bs-target="#distri-delete-modal"><i class="bi bi-file-x"></i> Delete {{distributor.name}}</button>
{% if distributor.website %}
<a class="btn btn-secondary mb-2" href="{{distributor.website}}"><i class="bi bi-globe"></i> Website</a>
{% endif %}
</div>
</div>
<div class="col m-1">

View File

@ -14,8 +14,7 @@
<button type="submit" class="btn btn-primary">
<i class="bi bi-search"></i>
</button>
<button class="btn btn-success" type="button" data-bs-toggle="modal" data-bs-target="#add-distri-modal"><i class="bi bi-plus-circle"></i> Add Distributor</button>
</div>
<button class="btn btn-success" type="button" data-bs-toggle="modal" data-bs-target="#add-distri-modal"><i class="bi bi-plus-circle"></i> Add Distributor</button> </div>
</form>
<div class="mb-3">
{% include 'paginator.html' with paginator=distributors get_param='page' aria_label='Distributor Page Navigation' %}

View File

@ -15,7 +15,10 @@
{% endif %}
</div>
<div class="row">
<button class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#manufacturer-delete-modal"><i class="bi bi-file-x"></i> Delete {{manufacturer.name}}</button>
<button class="btn btn-danger mb-2" data-bs-toggle="modal" data-bs-target="#manufacturer-delete-modal"><i class="bi bi-file-x"></i> Delete {{manufacturer.name}}</button>
{% if manufacturer.website %}
<a class="btn btn-secondary mb-2" href="{{manufacturer.website}}"><i class="bi bi-globe"></i> Website</a>
{% endif %}
</div>
</div>
<div class="col m-1">