summaryrefslogtreecommitdiff
path: root/app/views/tenants/_admin_area.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 23:59:11 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 23:59:11 +0100
commit8de0e8215c9a2f5f8ce2dce71bf9cdca367ee94e (patch)
tree77658b8f78b04675ea886309863b500059d509b4 /app/views/tenants/_admin_area.html.haml
parent7c842dd79b3ac4a8bd462ef80ee1e27f5e74e4d3 (diff)
Use the same sip_account and phone structure for tenant as for user.
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}