X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_phone.cgi;h=ab69c4f6ff692e8ecffe01834970e43344698a9a;hb=50b038e338455c5d20f48f99767767b70c515c31;hp=6e40fea54d0a3036a48a3e9b679bf9a879c6b7d9;hpb=ae9fe834eabeb6e0bf3d39b5f5ee1eb22203b345;p=freeside.git diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi index 6e40fea54..ab69c4f6f 100644 --- a/httemplate/view/svc_phone.cgi +++ b/httemplate/view/svc_phone.cgi @@ -1,10 +1,9 @@ -<% include('elements/svc_Common.html', +<& elements/svc_Common.html, 'table' => 'svc_phone', 'fields' => \@fields, - 'labels' => \%labels, + 'labels' => \%labels, 'html_foot' => $html_foot, - ) -%> +&> <%init> my $conf = new FS::Conf; @@ -17,21 +16,51 @@ my %labels = map { $_ => ( ref($fields->{$_}) ); } keys %$fields; -my @fields = qw( countrycode phonenum ); +my @fields = qw( countrycode phonenum sim_imsi ); push @fields, 'domain' if $conf->exists('svc_phone-domain'); -push @fields, qw( pbx_title sip_password pin phone_name forwarddst email ); +push @fields, qw( pbx_title ); +$labels{pbx_title} = 'PBX'; + +if ( $conf->exists('showpasswords') ) { + push @fields, qw( sip_password ); +} else { + push @fields, { 'field' => 'sip_password', #'_HIDDEN_sip_password', + 'type' => 'fixed', + 'value' => '('. mt('hidden') .')', + }; +} + +push @fields, qw( pin phone_name forwarddst email ); + +push @fields, { field => 'sms_carrierid', + #type=>'cdr_carrier', + value_callback => sub { + $_[0]->sms_carriername, + }, + }, + 'sms_account', + 'max_simultaneous', +; if ( $conf->exists('svc_phone-lnp') ) { -push @fields, 'lnp_status', - 'lnp_reject_reason', - { field => 'portable', type => 'checkbox', }, - 'lrn', - { field => 'lnp_desired_due_date', type => 'date', }, - { field => 'lnp_due_date', type => 'date', }, - 'lnp_other_provider', - 'lnp_other_provider_account'; + push @fields, 'lnp_status', + 'lnp_reject_reason', + { field => 'portable', type => 'checkbox', }, + 'lrn', + { field => 'lnp_desired_due_date', type => 'date', }, + { field => 'lnp_due_date', type => 'date', }, + 'lnp_other_provider', + 'lnp_other_provider_account', + ; } +$labels{circuit_label} = mt('Circuit'); +push @fields, { field => 'circuit_label', + link => [ $p.'view/svc_circuit.cgi?', 'circuit_svcnum' ] + }; + +push @fields, 'sip_server'; + my $html_foot = sub { my $svc_phone = shift; @@ -40,9 +69,9 @@ my $html_foot = sub { ### my $e911 = - 'E911 Information'. + emt('E911 Information'). &ntable("#cccccc"). '