summaryrefslogtreecommitdiff
path: root/app/views/callthroughs/_form_core.html.haml
blob: cf05e0643709adf9c5917a9f32f1e664a214ef22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 GsParameter.get('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