MT#8279 inflate/deflate subscriber speed-dial

agranig/8279-csc-normalize-number
Andreas Granig 11 years ago
parent faecaf913c
commit c2e116a825

@ -3335,12 +3335,14 @@ sub edit_speeddial :Chained('speeddial') :PathPart('edit') :Args(0) {
my $form = NGCP::Panel::Form::Subscriber::SpeedDial->new(ctx => $c);
my $params;
unless($posted) {
$params->{slot} = $c->stash->{speeddial}->slot;
$params->{destination} = $c->stash->{speeddial}->destination;
}
$params->{slot} = $c->stash->{speeddial}->slot;
$params->{destination} = $c->stash->{speeddial}->destination;
$form->process(params => $posted ? $c->req->params : $params);
$form->process(
posted => $posted,
params => $c->req->params,
item => $params,
);
NGCP::Panel::Utils::Navigation::check_form_buttons(
c => $c,
form => $form,

@ -3,6 +3,7 @@ package NGCP::Panel::Form::Subscriber::SpeedDial;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
use Moose::Util::TypeConstraints;
use NGCP::Panel::Field::URI;
use HTML::FormHandler::Widget::Block::Bootstrap;
@ -47,7 +48,7 @@ sub set_slots {
}
has_field 'destination' => (
type => 'Text',
type => '+NGCP::Panel::Field::URI',
label => 'Destination',
required => 1,
wrapper_class => [qw/hfh-rep-field/],

Loading…
Cancel
Save