Merge pull request #648 from hector-cortez/BUG-8510

BUG 8510 Hints are not displayed next to link fields. SOLVED
This commit is contained in:
julceslauhub
2012-10-03 09:03:41 -07:00
3 changed files with 3 additions and 2 deletions

View File

@@ -2264,6 +2264,7 @@ class XmlForm_Field_Link extends XmlForm_Field {
$html .= (($this->onclick) ? ' onclick="' . htmlentities ( $onclick, ENT_QUOTES, 'utf-8' ) . '"' : '') ;
$html .= (($this->target) ? ' target="' . htmlentities ( $target, ENT_QUOTES, 'utf-8' ) . '"' : '') . '>';
$html .= $this->htmlentities ( $this->value === '' ? $label : $value, ENT_QUOTES, 'utf-8' ) . '</a>';
$html .= $this->renderHint();
return $html;
}

View File

@@ -21,7 +21,7 @@
<tr>
<td> </td>
{foreach from=$form->fields item=field}
<td class='vFormTitle'>{if (isset($field->required)&&$field->required&&$field->mode==='edit')}<font color="red">* </font>{/if}{$field->label}</td>
<td class='vFormTitle'>{if (isset($field->required)&&$field->required&&$field->mode==='edit')}<font color="red">* </font>{/if}{$field->label}{$field->renderHint()}</td>
{/foreach}
</tr>
{literal}

View File

@@ -23,7 +23,7 @@
<td> </td>
{foreach from=$form->fields item=field}
<!--td class='vFormTitle'>{$field->label}</td-->
<td class='vFormTitle'>{if (isset($field->required)&&$field->required&&$field->mode==='edit')}<font color="red">* </font>{/if}{$field->label}</td>
<td class='vFormTitle'>{if (isset($field->required)&&$field->required&&$field->mode==='edit')}<font color="red">* </font>{/if}{$field->label}{$field->renderHint()}</td>
{/foreach}
</tr>
{literal}