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:
18
form.php
18
form.php
@@ -363,7 +363,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
@@ -441,7 +442,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
@@ -514,7 +516,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
@@ -614,7 +617,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
@@ -711,7 +715,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
@@ -770,7 +775,8 @@ class formfield
|
|||||||
{
|
{
|
||||||
$res .= " <span class='help-block' id='$this->formName"."_";
|
$res .= " <span class='help-block' id='$this->formName"."_";
|
||||||
$res .= htmlspecialchars ($this->name, ENT_QUOTES)."_help'>";
|
$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];
|
if (isset ($this->errors)) $res .= $this->errors[1];
|
||||||
$res .= "</span>\n";
|
$res .= "</span>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user