form : don't force a <br/> at the end of the help messages

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3055 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-09-21 08:58:42 +00:00
parent 7062d307a9
commit 230dcf9409

View File

@@ -502,7 +502,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -586,7 +588,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -661,7 +665,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -763,7 +769,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -867,7 +875,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -932,7 +942,9 @@ class formfield
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
$res .= "<span class='text-muted'>".$this->help."</span>";
if (isset ($this->help) && isset ($this->errors))
$res .= "<br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}