Explain empty enum value

This commit is contained in:
Jakub Vrana 2010-05-20 23:01:40 +02:00
parent bfff649905
commit 4b38e6c846
2 changed files with 2 additions and 1 deletions

View file

@ -423,7 +423,7 @@ document.getElementById('username').focus();
function editInput($table, $field, $attrs, $value) {
if ($field["type"] == "enum") {
return ($field["null"] ? "<label><input type='radio'$attrs value=''" . (isset($value) || isset($_GET["select"]) ? "" : " checked") . "><em>NULL</em></label> " : "")
. "<input type='radio'$attrs value='0'" . ($value === 0 ? " checked" : "") . ">"
. "<label><input type='radio'$attrs value='0'" . ($value === 0 ? " checked" : "") . "><em>" . lang('empty') . "</em></label>"
;
}
return "";

View file

@ -257,4 +257,5 @@ $translations = array(
'Alter type' => 'Pozměnit typ',
'Search data in tables' => 'Vyhledat data v tabulkách',
'From server' => 'Ze serveru',
'empty' => 'prázdné',
);