get DIDs from globalpops
[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                                'pin',
10                              ],
11                'labels'   => {
12                                'countrycode' => 'Country code',
13                                'phonenum'    => 'Phone number',
14                                'pin'         => 'PIN',
15                              },
16            )
17 %>
18 <%init>
19
20 die "access denied"
21   unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
22
23 </%init>