mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Added quick links to visit webpage, send emails, etc. to company admin page.
This commit is contained in:
parent
6ecc32b228
commit
915287de48
3 changed files with 63 additions and 18 deletions
|
@ -19,5 +19,19 @@
|
|||
<div class="tab-pane" id="home_advanced">
|
||||
{{ form_row(form.comment) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block quick_links %}
|
||||
{% if entity.website is not empty %}
|
||||
<a href="{{ entity.website }}" title="{% trans %}company.edit.quick.website{% endtrans %}" data-no-ajax><i class="fas fa-globe fa-fw fa-lg"></i></a>
|
||||
{% endif %}
|
||||
{% if entity.emailAddress is not empty %}
|
||||
<a href="mailto:{{ entity.emailAddress }}" title="{% trans %}company.edit.quick.email{% endtrans %}" data-no-ajax><i class="fas fa-envelope-open-text fa-lg"></i></a>
|
||||
{% endif %}
|
||||
{% if entity.phoneNumber is not empty %}
|
||||
<a href="tel:{{ entity.phoneNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.phone{% endtrans %}" data-no-ajax><i class="fas fa-phone fa-lg"></i></a>
|
||||
{% endif %}
|
||||
{% if entity.faxNumber is not empty %}
|
||||
<a href="tel:{{ entity.faxNumber | replace({' ': ''}) }}" title="{% trans %}company.edit.quick.fax{% endtrans %}" data-no-ajax><i class="fas fa-fax fa-lg"></i></a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -46,6 +46,7 @@
|
|||
{% if timeTravel is defined and timeTravel is not null %}
|
||||
({{ timeTravel|format_datetime('short') }})
|
||||
{% endif %}
|
||||
<span class="float-right">{% block quick_links %}{% endblock %}</span>
|
||||
{% else %}
|
||||
<strong>{% block new_title %}{% trans %}new.caption{% endtrans %}{% endblock %}</strong>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue