summaryrefslogtreecommitdiff
path: root/app/views/access_authorizations/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/access_authorizations/show.html.haml')
-rw-r--r--app/views/access_authorizations/show.html.haml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/access_authorizations/show.html.haml b/app/views/access_authorizations/show.html.haml
new file mode 100644
index 0000000..17d1d9b
--- /dev/null
+++ b/app/views/access_authorizations/show.html.haml
@@ -0,0 +1,22 @@
+- title t("access_authorizations.show.page_title")
+
+%p
+ %strong= t('access_authorizations.show.name') + ":"
+ = @access_authorization.name
+%p
+ %strong= t('access_authorizations.show.login') + ":"
+ = @access_authorization.login
+%p
+ %strong= t('access_authorizations.show.pin') + ":"
+ = @access_authorization.pin
+%p
+ %strong= t('access_authorizations.show.sip_account_id') + ":"
+ = @access_authorization.sip_account || t('access_authorizations.none')
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @parent, :child => @access_authorization }
+
+%h2= t('callthroughs.form.phone_numbers.label')
+- if @access_authorization.phone_numbers.count > 0
+ = render 'phone_numbers/index_core', :phone_numbers => @access_authorization.phone_numbers
+ %br
+= render :partial => 'shared/create_link', :locals => {:parent => @access_authorization, :child_class => PhoneNumber} \ No newline at end of file