missing date/time customfield type

This commit is contained in:
Ralf Becker 2007-05-17 06:04:24 +00:00
parent 83e4306bce
commit c60811c353
3 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,8 @@
'select' => 'Selectbox', 'select' => 'Selectbox',
'radio' => 'Radiobutton', 'radio' => 'Radiobutton',
'checkbox' => 'Checkbox', 'checkbox' => 'Checkbox',
'date' => 'Date',
'date-time'=> 'Date+Time',
'link-entry' => 'Select entry', 'link-entry' => 'Select entry',
); );
/** /**

View File

@ -136,6 +136,12 @@
)); ));
} }
break; break;
case 'date':
case 'date-time':
$input = &$tpl->new_cell($n,$field['type'],'',$this->prefix.$name,array(
'size' => $field['len'] ? $field['len'] : ($field['type'] == 'date' ? 'Y-m-d' : 'Y-m-d H:i:s'),
));
break;
case 'link-entry': case 'link-entry':
default : // link-entry to given app default : // link-entry to given app
$input = &$tpl->new_cell($n,'link-entry','',$this->prefix.$name,array( $input = &$tpl->new_cell($n,'link-entry','',$this->prefix.$name,array(

View File

@ -29,6 +29,8 @@ class uicustomfields
'select' => 'Selectbox', 'select' => 'Selectbox',
'radio' => 'Radiobutton', 'radio' => 'Radiobutton',
'checkbox' => 'Checkbox', 'checkbox' => 'Checkbox',
'date' => 'Date',
'date-time'=> 'Date+Time',
'link-entry' => 'Select entry', 'link-entry' => 'Select entry',
); );
/** /**