diff --git a/lib/NGCP/Panel/Controller/Billing.pm b/lib/NGCP/Panel/Controller/Billing.pm index e40115e232..744b1f46e6 100644 --- a/lib/NGCP/Panel/Controller/Billing.pm +++ b/lib/NGCP/Panel/Controller/Billing.pm @@ -457,7 +457,7 @@ sub peaktime_weekdays_edit :Chained('peaktime_weekdays_base') :PathPart('edit') } $self->load_weekdays($c); $c->stash(weekday => $c->stash->{weekdays}->[$c->stash->{weekday_id}]); - $c->stash(form => $form); + $c->stash(form => NGCP::Panel::Form::BillingPeaktimeWeekdays->new); $c->stash(edit_flag => 1); } diff --git a/lib/NGCP/Panel/Form/BillingPeaktimeWeekdays.pm b/lib/NGCP/Panel/Form/BillingPeaktimeWeekdays.pm index 88f6df154b..95e70d207a 100644 --- a/lib/NGCP/Panel/Form/BillingPeaktimeWeekdays.pm +++ b/lib/NGCP/Panel/Form/BillingPeaktimeWeekdays.pm @@ -13,18 +13,29 @@ has_field 'start' => ( type => 'Text', do_label => 0, do_wrapper => 0, + element_attr => { + class => ['ngcp_time_range'], + rel => ['tooltip'], + title => ['The start time in format hh:mm:ss'] + }, + ); has_field 'end' => ( type => 'Text', do_label => 0, do_wrapper => 0, + element_attr => { + class => ['ngcp_time_range'], + rel => ['tooltip'], + title => ['The end time in format hh:mm:ss'] + }, ); has_field 'add' => ( type => 'Submit', value => 'Add', - element_class => [qw/btn btn-primary/], + element_class => [qw/btn btn-primary pull-right/], do_label => 0, do_wrapper => 0, ); diff --git a/share/static/css/main.css b/share/static/css/main.css index 4f0502a3df..019258ffbf 100644 --- a/share/static/css/main.css +++ b/share/static/css/main.css @@ -215,4 +215,8 @@ div.ngcp-modal .control-group.error .dataTables_wrapper input[type="text"] { .modal-body .control-group .controls input.ngcp_e164_sn { width: 67%; float: right; + width: 43%; +} +.modal-body .control-group .controls input.ngcp_time_range { + width: 43%; } diff --git a/share/templates/billing/peaktimes.tt b/share/templates/billing/peaktimes.tt index d834460502..053abf429d 100644 --- a/share/templates/billing/peaktimes.tt +++ b/share/templates/billing/peaktimes.tt @@ -83,16 +83,19 @@
[%