linking DIDs and users to PBXes, RT#7051
[freeside.git] / httemplate / edit / svc_phone.cgi
1 <% include( 'elements/svc_Common.html',
2                'name'     => 'Phone number',
3                'table'    => 'svc_phone',
4                'fields'   => [ 'countrycode',
5                                { field => 'phonenum',
6                                  type  => 'select-did',
7                                  label => 'Phone number',
8                                },
9                                { field => 'pbxsvc',
10                                  type  => 'select-svc_pbx',
11                                  label => 'PBX',
12                                },
13                                'sip_password',
14                                'pin',
15                                'phone_name',
16                              ],
17                'labels'   => {
18                                'countrycode'  => 'Country code',
19                                'phonenum'     => 'Phone number',
20                                'sip_password' => 'SIP password',
21                                'pin'          => 'Voicemail PIN',
22                                'phone_name'   => 'Name',
23                                'pbxsvc'       => 'PBX',
24                              },
25            )
26 %>
27 <%init>
28
29 die "access denied"
30   unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
31
32 </%init>