mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 05:56:27 +02:00
Kundendaten Formular failure messages
This commit is contained in:
parent
6b7a616b44
commit
eafd393458
4 changed files with 33 additions and 30 deletions
|
@ -487,15 +487,17 @@ Nach Abschluss der Registrierung erhalten Sie sowohl auf die von Ihnen hinterleg
|
|||
print $q->label({-for=>"$key",-style=>'padding-top:15px;'},"$label_des"),"\n";
|
||||
print $but->selector_class("$key","form-control","","$ctrel->{$key}",@_valxx);
|
||||
|
||||
}elsif($key =~ /txt/ && !$R::confirm_success){
|
||||
#}elsif($key =~ /txt/ && !$R::confirm_success){
|
||||
}elsif($key =~ /txt/){
|
||||
my $required="required";
|
||||
|
||||
#start failure messages
|
||||
#Gutschein
|
||||
if($key =~ /txt16/ && $ctrel->{c_id}){
|
||||
$required="";
|
||||
$label_des = "<span style='font-weight:normal;'>$des</span>";
|
||||
}
|
||||
if($key eq "txt07" && $R::failure && $R::failure =~ /conflict_txt07/){
|
||||
elsif($key eq "txt07" && $R::failure && $R::failure =~ /conflict_txt07/){
|
||||
$autofocus = "autofocus";
|
||||
my ($failkey,$failval) = split(/=/,$R::failure);
|
||||
$label_des = "<span style=color:$red>Achtung, es existiert bereits ein Account mit der Telefon Nr.: $failval</span>";
|
||||
|
@ -507,13 +509,15 @@ Nach Abschluss der Registrierung erhalten Sie sowohl auf die von Ihnen hinterleg
|
|||
$label_des = "<span style=color:$red>Achtung, es existiert bereits ein Account mit der e-Mail Adresse: $failval</span>";
|
||||
$ctrel->{$key} = $R::conflict_txt08;
|
||||
}
|
||||
#elsif($key eq "txt04" && $R::failure && $R::failure =~ /pwlazy_txt04/){
|
||||
# $autofocus = "autofocus";
|
||||
# $label_des = "<span style=color:$red>Das Passwort ist zu kurz.</span>";
|
||||
#}
|
||||
elsif(($R::failure && $R::failure =~ /^$key/) || ($ctrel->{txt31} && $ctrel->{txt31} =~ /$key/)){
|
||||
$autofocus = "autofocus";
|
||||
$label_des = "<span style=color:$red>Bitte \"$des\" Angabe korrigieren</span>";
|
||||
$label_des = "<span style=color:$red>Für das \"$des\" liegt ein Fehler vor.</span>" if($key eq "txt04");
|
||||
$label_des = "<span style=color:$red>Bitte mobile Telefon Nr. mit Ländervorwahl, Beispiel: +49 170 12345678</span>" if($key eq "txt07");
|
||||
}#end failure messages
|
||||
|
||||
elsif($key eq "txt15"){
|
||||
if($R::failure){
|
||||
if($key eq "txt15"){
|
||||
if($R::failure =~ /^txt15/){
|
||||
$autofocus = "autofocus";
|
||||
$label_des = "<span style=color:$red>Die Bonusnummer ist leider nicht vorhanden. Bei nicht vorhandener Nummer das Feld bitte leer lassen.</span>";
|
||||
}
|
||||
|
@ -534,22 +538,11 @@ Weitere Personen aus Ihrem Haushalt profitieren jedoch ebenfalls, falls Sie weit
|
|||
}
|
||||
|
||||
}
|
||||
elsif($key eq "txt04" && $R::failure && $R::failure =~ /confirm_txt04/){
|
||||
$autofocus = "autofocus";
|
||||
$label_des = "<span style=color:$red>Die Passwort Wiederholung ist fehlerhaft. Bitte korrigieren Sie Ihre Eingabe.</span>";
|
||||
}
|
||||
elsif(($R::failure && $R::failure =~ /^$key/) || ($ctrel->{txt31} && $ctrel->{txt31} =~ /$key/)){
|
||||
$autofocus = "autofocus";
|
||||
$label_des = "<span style=color:$red>Bitte \"$des\" Angabe korrigieren</span>";
|
||||
$label_des = "<span style=color:$red>Für das \"$des\" liegt ein Fehler vor.</span>" if($key eq "txt04");
|
||||
$label_des = "<span style=color:$red>Bitte mobile Telefon Nr. mit Ländervorwahl, Beispiel: +49 170 12345678</span>" if($key eq "txt07");
|
||||
}
|
||||
#if($R::success eq $key){
|
||||
# $label_des = "<span>Das hat geklappt. Der \"$des\" wurde erfolgreich hinzugefügt, s.u..</span>";
|
||||
#}
|
||||
|
||||
|
||||
elsif($key eq "txt04"){
|
||||
if($R::failure && $R::failure =~ /confirm_txt04/){
|
||||
$autofocus = "autofocus";
|
||||
$label_des = "<span style=color:$red>Die Passwort Wiederholung ist fehlerhaft. Bitte korrigieren Sie Ihre Eingabe.</span>";
|
||||
}
|
||||
my $pw = "xxxxxxxx";
|
||||
$pw = "" if(!$ctrel->{c_id});
|
||||
print $q->label({-for=>"$key", -style=>'padding-top:1.5em;'},"$label_des"),"\n";
|
||||
|
@ -562,7 +555,7 @@ Weitere Personen aus Ihrem Haushalt profitieren jedoch ebenfalls, falls Sie weit
|
|||
$required = "";# if($key =~ /txt09|txt16/);
|
||||
print $q->label({-for=>"$key", -style=>'padding-top:1.5em;'},"$label_des"),"\n";
|
||||
print "<input id='$key' type='text' class='form-control' name='$key' value='$ctrel->{$key}' override placeholder='$des' $required $autofocus />\n";
|
||||
}
|
||||
}#end $key =~ /txt/
|
||||
|
||||
#all int checkboxes disabled because of AGB downunder
|
||||
}elsif($key =~ /int/ && $size eq "checkbox"){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue