Commit ed260777 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes several html code problems

parent ed31696a
......@@ -4,7 +4,7 @@
<table>
{foreach from=$attributes item=attribute key=id}
<tr>
<td title="{$attribute.description}"><label for="{$attribute.htmlid}">{eval var=$attribute.label}</label></td>
<td title="{$attribute.description|escape}"><label for="{$attribute.htmlid}">{eval var=$attribute.label}</label></td>
<td>{eval var=$attribute.input}</td>
</tr>
{/foreach}
......
......@@ -576,7 +576,7 @@ class Attribute
'name="'.$name.'" id="'.$name.'"'.
($this->disabled? ' disabled="disabled"':'');
foreach ($attributes as $label => $value) {
$input .= $label.'="'.$value.'" ';
$input .= ' '.$label.'="'.$value.'"';
}
$input .= '/>';
return $input;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment