Update letsencrypt and take out spurious chars in html cxontrols
This commit is contained in:
@@ -159,15 +159,16 @@ sub do_update {
|
||||
}
|
||||
</tal:block>
|
||||
|
||||
if ($ret ne "ok") {
|
||||
${prefix}_data{'trt'} = $thispanel;
|
||||
$c->stash(error => $c->l($ret));
|
||||
$c->stash(
|
||||
title => $title,
|
||||
modul => $modul,
|
||||
${prefix}_data => \%${prefix}_data
|
||||
);
|
||||
$c->render( template => "${lcPackageName}" );
|
||||
if ($ret ne "ok"){
|
||||
# ${prefix}_data{'trt'} = $thispanel;
|
||||
# $c->stash(error => $c->l($ret));
|
||||
# $c->stash(
|
||||
# title => $title,
|
||||
# modul => $modul,
|
||||
# ${prefix}_data => \%${prefix}_data
|
||||
# );
|
||||
# $c->render( template => "${lcPackageName}" );
|
||||
$c->do_display($thispanel);
|
||||
} else {
|
||||
#Do whatever is needed, including writing values to the DB
|
||||
<tal:block tal:repeat="panel panels">
|
||||
@@ -217,11 +218,12 @@ sub do_display {
|
||||
#load up returned hash into prefix_data
|
||||
#render - to called panel
|
||||
|
||||
my $c = shift;
|
||||
my ($c,$trt) = @_;
|
||||
$c->app->log->info($c->log_req);
|
||||
|
||||
my %${prefix}_data = ();
|
||||
my $title = $c->l('${prefix}_${MenuDescription}');
|
||||
my $modul = "";
|
||||
|
||||
# Accessing all parameters
|
||||
my %params = $c->req->params->to_hash;
|
||||
@@ -237,15 +239,17 @@ sub do_display {
|
||||
# $$${prefix}_data{$key} = $value;
|
||||
#}
|
||||
|
||||
# the value of trt will tell you which panel has returned
|
||||
my $trt = $c->param('trt') || '${firstPanel}'; #Indicates where to go now
|
||||
# the value of trt will tell you which panel has returned
|
||||
if (! $trt){
|
||||
my $trt = $c->param('trt') || '${firstPanel}'; #Indicates where to go now
|
||||
}
|
||||
|
||||
# Now add in the params from the selected row from the table
|
||||
|
||||
my %selectedrow;
|
||||
<tal:block tal:repeat="panel panels">
|
||||
if ($trt eq '${panel}'){
|
||||
#Validate form parameters for panel ${panel}
|
||||
#Validate Get selected row (if applicable) ${panel}
|
||||
%selectedrow = $c->get_selected_${panel}($$${prefix}_data{'Selected'},$is_new_record);
|
||||
}
|
||||
</tal:block>
|
||||
@@ -278,6 +282,7 @@ sub do_display {
|
||||
# Data for panel
|
||||
$c->stash(
|
||||
title => $title,
|
||||
modul => $modul,
|
||||
${prefix}_data => \%${prefix}_data
|
||||
);
|
||||
$c->render(template => "${lcPackageName}");
|
||||
|
Reference in New Issue
Block a user