summaryrefslogtreecommitdiff
path: root/app/views/callthroughs/_form_core.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/callthroughs/_form_core.html.haml')
-rw-r--r--app/views/callthroughs/_form_core.html.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/callthroughs/_form_core.html.haml b/app/views/callthroughs/_form_core.html.haml
new file mode 100644
index 0000000..1f137d9
--- /dev/null
+++ b/app/views/callthroughs/_form_core.html.haml
@@ -0,0 +1,24 @@
+.inputs
+ = f.input :name, :label => t('callthroughs.form.name.label'), :hint => conditional_hint('callthroughs.form.name.hint')
+
+ %h2= t('callthroughs.form.phone_numbers.label')
+ - if !t('callthroughs.form.phone_numbers.hint').blank?
+ %p= t('callthroughs.form.phone_numbers.hint')
+ = f.simple_fields_for :phone_numbers do |phone_number|
+ = render "phone_numbers/form_core", :f => phone_number
+ %p
+
+ - if @callthrough && @callthrough.access_authorizations.size > 0
+ %h2= t('callthroughs.form.access_authorizations.label')
+ - if !t('callthroughs.form.access_authorizations.hint').blank?
+ %p= t('callthroughs.form.access_authorizations.hint')
+ = f.simple_fields_for :access_authorizations do |access_authorization|
+ = render "access_authorizations/form_core", :f => access_authorization
+
+ - if CALLTHROUGH_HAS_WHITELISTS == true
+ - if @callthrough && @callthrough.whitelists.size > 0
+ %h2= t('callthroughs.form.whitelists.label')
+ - if !t('callthroughs.form.whitelists.hint').blank?
+ %p= t('callthroughs.form.whitelists.hint')
+ = f.simple_fields_for :whitelists do |whitelist|
+ = render "whitelists/form_core", :f => whitelist