diff --git a/lib/admin/Controller/domain.pm b/lib/admin/Controller/domain.pm index ff98e0e..76bf3ae 100644 --- a/lib/admin/Controller/domain.pm +++ b/lib/admin/Controller/domain.pm @@ -196,6 +196,7 @@ sub detail : Local { $c->stash->{audio_files} = $$audio_files{result} if eval { @{$$audio_files{result}} }; $c->stash->{edit_audio} = $c->request->params->{edit_audio}; + $c->stash->{delete_audio} = $c->request->params->{daf}; if(exists $c->session->{acrefill}) { $c->stash->{acrefill} = $c->session->{acrefill}; @@ -445,17 +446,13 @@ sub do_update_audio : Local { my $upload = $c->req->upload('eupload_audio'); $settings{data}{audio} = eval { $upload->slurp } if defined $upload; - unless(keys %messages) { - if($c->model('Provisioning')->call_prov( $c, 'voip', 'update_audio_file', - \%settings, - undef)) - { - $messages{audiomsg} = 'Web.AudioFile.Updated'; - $c->session->{messages} = \%messages; - $c->response->redirect("/domain/detail?domain=$settings{domain}#audio"); - return; - } - $c->response->redirect("/domain/detail?domain=$settings{domain}&edit_audio=$settings{handle}#audio"); + if($c->model('Provisioning')->call_prov( $c, 'voip', 'update_audio_file', + \%settings, + undef)) + { + $messages{audiomsg} = 'Web.AudioFile.Updated'; + $c->session->{messages} = \%messages; + $c->response->redirect("/domain/detail?domain=$settings{domain}#audio"); return; } @@ -492,12 +489,12 @@ sub do_delete_audio : Local { \%settings, undef)) { - $c->session->{messages} = { provmsg => 'Web.AudioFile.Deleted' }; + $c->session->{messages} = { audiomsg => 'Web.AudioFile.Deleted' }; $c->response->redirect("/domain/detail?domain=$settings{domain}#audio"); return; } - $c->response->redirect("/domain/detail?domain=$settings{domain}#audio"); + $c->response->redirect("/domain/detail?domain=$settings{domain}&daf=$settings{handle}#audio"); return; } diff --git a/lib/admin/Controller/ncos.pm b/lib/admin/Controller/ncos.pm index bdefc8d..e009301 100644 --- a/lib/admin/Controller/ncos.pm +++ b/lib/admin/Controller/ncos.pm @@ -117,7 +117,7 @@ sub do_update_level : Local { \%settings, undef)) { - $messages{provmsg} = 'Web.NCOSLevel.Updated'; + $messages{elvlmsg} = 'Web.NCOSLevel.Updated'; $c->session->{messages} = \%messages; $c->response->redirect("/ncos"); return; @@ -153,7 +153,7 @@ sub do_delete_level : Local { \%settings, undef)) { - $c->session->{messages} = { provmsg => 'Web.NCOSLevel.Deleted' }; + $c->session->{messages} = { elvlmsg => 'Web.NCOSLevel.Deleted' }; $c->response->redirect("/ncos"); return; } diff --git a/root/css/admin.css b/root/css/admin.css index ff8f479..331eb47 100644 --- a/root/css/admin.css +++ b/root/css/admin.css @@ -370,6 +370,10 @@ h3 { #contentplace .search_subscriber input { margin: 3px 0; } +#contentplace .search_subscriber select { + min-width: 50px; + margin: 3px 0; +} /* increase spacing around list explanation text */ #contentplace .list_explanation { diff --git a/root/tt/domain_detail.tt b/root/tt/domain_detail.tt index 853922e..c40df52 100644 --- a/root/tt/domain_detail.tt +++ b/root/tt/domain_detail.tt @@ -165,6 +165,9 @@ + [% IF audio.handle == delete_audio && prov_error %] +
[% prov_error %]
+ [% END %] [% END %] [% END %] @@ -274,46 +277,50 @@ [% END %] [% END %] - -
- - - - - - - - - - - - - - - - -
- - + [% IF vsc_actions %] + +
+ + + + + + + + + + + + + + + + +
+ + + [% ELSE %] + No undefined VSC actions found. + [% END %] [% IF vcrefill && prov_error %]
[% prov_error %]
[% END %] diff --git a/root/tt/lnp.tt b/root/tt/lnp.tt index 102b7c7..2290595 100644 --- a/root/tt/lnp.tt +++ b/root/tt/lnp.tt @@ -80,7 +80,7 @@ [% IF messages.paddidmsg %]
[% messages.paddidmsg %]
[% END %] [% IF messages.paddnamsg %]
[% messages.paddnamsg %]
[% END %] - + [% UNLESS Catalyst.session.admin.read_only %]

Add Ported Number

@@ -88,39 +88,24 @@
[% IF messages.cnumsg %]
[% messages.cnumsg %]
[% END %] [% IF narefill && prov_error %]
[% prov_error %]
[% END %] -
- - - - - - - - - - - - - - - - - -
number -
provider - -
start -
end -
+ + +
+ +
+ +
+ +
@@ -132,17 +117,16 @@

+
+ value="[% searched_numbers.number %]" />
@@ -177,7 +161,7 @@ [% END %] + title="E.164 phone number with country code" />