I’m still on it and expect it to be finished by sunday night (CET).
By now, most tables have been sent to retirement, and we have an abundance of formfields, legends, labels and definition lists (I thought about <ul> before, but decided later against them). All of them with nice id and class attributes derived from their fieldnames. I’m also setting up a basic stylesheet, but would really appreciate if somebody later would come up with something more colourful.
If anybody wants to lend a helping hand, please give some advice/input to the following problems:
tmplvars:
Have you ever noticed that function renderFormElement() returns some really nasty id and name attributes?
Example:
<textarea id="tvmy%5Fwonderful%5Ftv" name="tvppb%5Fvideo%5Flink" ...></textarea>
I would rather have something like id="tv_my_wonderful_tv".
Of course
str_replace(" ","_",urldecode($row['name']))*
Source: tmplvars.inc.php
*Just a quickfix for names including a blank. But what about other special characters?
will do the trick, but I don’t know enough about tmplvar’s ways to decide whether it is a good idea to mess arround with that part of the code.
Also, this would mean to start a new excavation site and I just don’t feel ready right now to do that.
To reduce the time we spend on the phone revealing to our customers the inner secrets and mysteries of a form field like "title", it is advisable to include help texts in a form. Something I noticed, is that in the upper part help is given by clicking on neat question mark icons. This is not true for TVs. Here "help" texts can be found below the field labels. If you need more than a few words to describe a form field, this can become quite ugly. Therefore I think that it would be a good idea to have those question marks down there as well.
Even better would be to have both. A brief caption text and a longer description in a popup box. Although this would mean to give tmplvars AS WELL AS the core responsible for the other variables some modofications, I think it would be worth it. Any volunteers?
Right now I would appreciate if somebody would come up with a few lines of code to move the caption text into one of those popups (just to keep you busy until I have finished my homeworks...)
Regards,
pepebe