From c24f1f14eccee2eecc67fc8d4df1db6d3e20b679 Mon Sep 17 00:00:00 2001 From: Barnabas Lovas Date: Wed, 10 Aug 2022 13:22:58 +0200 Subject: [PATCH] Closes #9625: Add Contact Phone/Email to quick view panes to save time --- netbox/templates/inc/panels/contacts.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/netbox/templates/inc/panels/contacts.html b/netbox/templates/inc/panels/contacts.html index 26961f04a..359ad8d7e 100644 --- a/netbox/templates/inc/panels/contacts.html +++ b/netbox/templates/inc/panels/contacts.html @@ -10,6 +10,8 @@ Name Role Priority + Phone + Email {% for contact in contacts %} @@ -17,6 +19,20 @@ {{ contact.contact|linkify }} {{ contact.role|placeholder }} {{ contact.get_priority_display|placeholder }} + + {% if contact.contact.phone %} + {{ contact.contact.phone }} + {% else %} + {{ ''|placeholder }} + {% endif %} + + + {% if contact.contact.email %} + {{ contact.contact.email }} + {% else %} + {{ ''|placeholder }} + {% endif %} + {% if perms.tenancy.change_contactassignment %}