Hello!
I've used the db form wizard and found out, that this is not perfect for me, may be it is buggy...
The open issues:
1. table_actions.phpt line 203
the output of the table-header should depends to the visable-flag of the column
if ($fld[FLD_DISPLAY] && $fld[FLD_VISIBLE]) { |
2. the javascript-functions to test the form inputs seems wrong to me: see CheckRequiredFields(theForm) - standard.phpt line 248
I think it should be
var el = theForm.elements[arguments[i]-1]; |
see the decremented index of the elements, because the DOM-items startet with 0 to count.
My add-on:
Insert in standard.phpt line 309 the title-tag with the FLD_DISPLAY-value
echo "<td><input name=\"$fkey\" title=\"$fld[FLD_DISPLAY]\" type=\"$fld[FLD_INPUT_TYPE]\" size=\"$fld[FLD_INPUT_SZ]\" maxlength=\"$fld[FLD_INPUT_MAXLEN]\" value=\"$val\" /></td></tr>"; |
so you can give a better error-message in line 252
alert("This field may not be empty " + el.title); |
May be it seems necessary to improve the other javascript-functions.
And then even a point for the wishlist:
The dialog of the wizard should have a column for the display-flag for the overview-list.
Greeting from Berlin, Germany,
Thorsten