From 8de0e8215c9a2f5f8ce2dce71bf9cdca367ee94e Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Tue, 22 Jan 2013 23:59:11 +0100 Subject: Use the same sip_account and phone structure for tenant as for user. --- app/views/tenants/_admin_area.html.haml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/views/tenants/_admin_area.html.haml') 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} -- cgit v1.2.3