[% IF subscriber.provisioning_voip_subscriber.is_pbx_group; site_config.title = c.loc('PBX Group Preferences for [_1]@[_2]', subscriber.username, subscriber.domain.domain); ELSE; site_config.title = c.loc('Subscriber Preferences for [_1]@[_2]', subscriber.username, subscriber.domain.domain); END; -%] [% helper.name = c.loc('Subscriber'); helper.messages = messages; helper.edit_preference = edit_preference; helper.preference = preference; helper.preference_meta = preference_meta; helper.preference_values = preference_values; helper.pref_groups = pref_groups; helper.form = form; helper.base_uri = c.uri_for(subscriber.id,'preferences'); helper.rewrite_rule_sets = rwr_sets; helper.ncos_levels = ncos_levels; helper.sound_sets = sound_sets; helper.contract_sound_sets = contract_sound_sets; helper.aip_grp_rs = aip_grp_rs; helper.man_aip_grp_rs = man_aip_grp_rs; helper.skip_head = 1; PROCESS "helpers/modal.tt"; %]
[% back_created = 1 %] [% IF helper.messages -%]| [% c.loc('Type') %] | [% c.loc('Answer Timeout') %] | [% c.loc('Destinations') %] | [% c.loc('Timeset') %] | [% # one for actions -%]|
|---|---|---|---|---|
| [% cf.desc %] | [% cf_ringtimeout _ 's' IF cf.type == "cft" && cf_destinations.${cf.type}.size %] |
[% idx = 0 -%]
[% FOR maps IN cf_destinations.${cf.type} -%]
[% IF maps.dset_name.search('^quickset_') && maps.destinations.size == 1 %]
[% maps.destinations.0.as_string %] for [% maps.destinations.0.timeout %]s
[% ELSE %]
[% jdx = 0 -%]
[% maps.dset_name -%]
[% dset_unique_id = cf.type _ "dset" _ idx _ jdx _ maps.id -%]
[% modal_header_dynamic(m.header = c.loc('Destination Set "[_1]" Details', maps.dset_name), m.id=dset_unique_id) %]
[% FOR d IN maps.destinations -%]
[% d.as_string %] for [% d.timeout %]s
[% modal_footer() %]
[% idx = idx + 1 -%]
[% END %]
[% jdx = jdx + 1 -%] [% END -%] [% END -%] |
[% idx = 0 -%]
[% FOR maps IN cf_destinations.${cf.type} -%]
[% jdx = 0 -%]
[% UNLESS maps.tset_name.defined -%]
always
[% jdx = jdx + 1 %]
[% END -%]
[% maps.tset_name -%]
[% IF maps.tset_name.defined -%]
[% tset_unique_id = cf.type _ idx _ jdx _ maps.id -%]
[% modal_header_dynamic(m.header = c.loc('Timeset "[_1]" Details', maps.tset_name), m.id=tset_unique_id) %]
[% FOR p IN maps.periods -%]
[% p.as_string %]
[% modal_footer() %]
[% END %]
[% idx = idx + 1 -%]
[% END -%] [% END -%] |
[% UNLESS (c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only -%]
[% c.loc('Edit') %]
[% IF cf_destinations.${cf.type}.size -%]
[% c.loc('Delete') %]
[% END -%]
[% END -%]
|
| [% c.loc('Name') %] | [% c.loc('Value') %] | [% # one for actions -%]|
|---|---|---|
| [% c.loc('PIN') %] | [% subscriber.provisioning_voip_subscriber.voicemail_user.password %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Email') %] | [% subscriber.provisioning_voip_subscriber.voicemail_user.email %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Delete after sending Email') %] | [% subscriber.provisioning_voip_subscriber.voicemail_user.get_column('delete') %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Attach WAV in Email') %] | [% subscriber.provisioning_voip_subscriber.voicemail_user.attach %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Name') %] | [% c.loc('Value') %] | [% # one for actions -%]|
|---|---|---|
| [% c.loc('Name in Fax Header for Sendfax') %] | [% faxpref.name %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Password for Sendfax') %] | [% faxpref.password %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Active') %] | [% faxpref.active ? c.loc('yes') : c.loc('no') %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Send Reports') %] | [% faxpref.send_status ? c.loc('yes') : ('no') %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Send Copies') %] | [% faxpref.send_copy ? c.loc('yes') : c.loc('no') %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Destinations') %] |
[% FOR faxdest IN faxdests -%]
[% c.loc('[_1] as [_2]', faxdest.destination, faxdest.filetype) %] [% END -%] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Time') %] | [% c.loc('Recurrence') %] | [% # one for actions -%]|
|---|---|---|
| [% subscriber.provisioning_voip_subscriber.voip_reminder.get_column('time') %] | [% subscriber.provisioning_voip_subscriber.voip_reminder.recur %] |
[% IF c.user.roles == "subscriber" || c.user.roles == "subscriberadmin" || ((c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1) -%]
[% c.loc('Edit') %]
[% END -%]
|
| [% c.loc('Source IP') %] | [% c.loc('Protocol') %] | [% c.loc('From-Pattern') %] | [% # one for actions -%]|
|---|---|---|---|
| [% trusted.src_ip %] | [% trusted.protocol %] | [% trusted.from_pattern %] |
[% IF (c.user.roles == "admin" || c.user.roles == "reseller") && c.user.read_only != 1 -%]
[% c.loc('Edit') %]
[% c.loc('Delete') %]
[% END -%]
|
| [% c.loc('Name') %] | [% c.loc('Values') %] | |
|---|---|---|
| [% set.name %] |
[% FOREACH d IN set.destinations -%]
[% c.loc('[_1]for [_2]s', d.as_string, d.timeout) %] [% END -%] |
| [% c.loc('Name') %] | [% c.loc('Values') %] | |
|---|---|---|
| [% set.name %] |
[% FOREACH p IN set.periods -%]
[% p.as_string %] [% END -%] |