summaryrefslogtreecommitdiff
path: root/app/views/tenants/_admin_area.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tenants/_admin_area.html.haml')
-rw-r--r--app/views/tenants/_admin_area.html.haml14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/views/tenants/_admin_area.html.haml b/app/views/tenants/_admin_area.html.haml
index 627f221..d634f73 100644
--- a/app/views/tenants/_admin_area.html.haml
+++ b/app/views/tenants/_admin_area.html.haml
@@ -1,4 +1,16 @@
-= render :partial => 'tenants/sip_accounts_and_phones', :locals => {:tenant => tenant}
+-# SIP accounts
+-#
+%h2= t('sip_accounts.index.page_title')
+- if tenant.sip_accounts.any?
+ = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
+= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+
+-# Phones
+-#
+%h2= t('phones.index.page_title')
+- if tenant.phones.any?
+ = render "phones/index_core", :phones => tenant.phones
+= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Phone}
= render :partial => 'users_table', :locals => {:tenant => tenant}