Added company quick links to supplier and manufactuerer parts lists

Also improved the styling.
This commit is contained in:
Jan Böhmer 2020-05-27 21:42:20 +02:00
parent 915287de48
commit 53dd0c4228
6 changed files with 36 additions and 14 deletions

View file

@ -0,0 +1,16 @@
<div class="btn-toolbar">
<div class="btn-group btn-block">
{% if entity.website is not empty %}
<a class="btn btn-outline-dark" href="{{ entity.website }}" title="{% trans %}company.edit.quick.website{% endtrans %}" data-no-ajax><i class="fas fa-globe fa-fw"></i></a>
{% endif %}
{% if entity.emailAddress is not empty %}
<a class="btn btn-outline-dark" href="mailto:{{ entity.emailAddress }}" title="{% trans %}company.edit.quick.email{% endtrans %}" data-no-ajax><i class="fas fa-envelope-open-text"></i></a>
{% endif %}
{% if entity.phoneNumber is not empty %}
<a class="btn btn-outline-dark" href="tel:{{ entity.phoneNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.phone{% endtrans %}" data-no-ajax><i class="fas fa-phone"></i></a>
{% endif %}
{% if entity.faxNumber is not empty %}
<a class="btn btn-outline-dark" href="tel:{{ entity.faxNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.fax{% endtrans %}" data-no-ajax><i class="fas fa-fax"></i></a>
{% endif %}
</div>
</div>