form : the submit text can be defined in the label too

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1874 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-11-20 20:02:43 +00:00
parent c333b251d6
commit a9295d0fe5

View File

@@ -455,6 +455,8 @@ die ("FORM/VERIFY : UNUSED and dirty\n");
if (isset ($field->defaults))
$res .= " value='".htmlspecialchars ($field->defaults, ENT_QUOTES).
"'";
elseif (isset ($field->label))
$res .= " value='".htmlspecialchars ($field->label, ENT_QUOTES)."'";
$res .= " class='form-control btn-primary'";
if (isset ($field->hidden) && $field->hidden !== FALSE)
$res .= " style='display:none'";