I have a template setup such that I am iterating over an array and generating rows of a table. Depending on the contents of the array, the cell in that row of the table will be either an input box, dropdown, or textarea.
This works fine: I have a
and then do a
and within the
are the different elements.
Ideally, however, I'd like the "natural" version of my template to look realistic as well. Right now when I look at the HTML I have a row with all of the different elements mushed together (i.e, a textbox, dropdown, and textarea all in one row together since that's how the HTML flows).
If this were <div> based then I could just wrap stuff in divs and be good to go, but I am trying to keep the HTML fairly clean and table-based. So it's kind of like I am trying to iterate over elements in the
but need the case statement to be "out a level" if that makes sense.
As I said, right now the template *works* but I'm trying to make it even better.