form : the help are always in "text-muted" and not in error when there is a detected error

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2219 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-08-07 08:54:41 +00:00
parent 83175e10b1
commit b189725fa2

View File

@@ -363,7 +363,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -441,7 +442,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -514,7 +516,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -614,7 +617,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -711,7 +715,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}
@@ -770,7 +775,8 @@ class formfield
{
$res .= " <span class='help-block' id='$this->formName"."_";
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
if (isset ($this->help)) $res .= $this->help."<br/>";
if (isset ($this->help))
$res .= "<span class='text-muted'>".$this->help."</span><br/>";
if (isset ($this->errors)) $res .= $this->errors[1];
$res .= "</span>\n";
}