Magic Table-fication #41
Replies: 2 comments
-
Google Group Date: Sun, 11 May 2014 10:12:15 -0700 On Sunday, May 11, 2014 1:20:17 AM UTC-7, Dave Howell wrote:
A lot of this seems to suggest that you aren't actually looking at the Hidden inputs in general can't be collected into their own special bucket, I think having a :td wrapper and :tr inputs_wrapper makes sense if you want Thanks, |
Beta Was this translation helpful? Give feedback.
-
Google Group Date: Sun, 11 May 2014 15:38:48 -0700 On Sunday, May 11, 2014 10:12:15 AM UTC-7, Jeremy Evans wrote:
I wonder how long I would have been banging my head against the wall in
As long as they don't become a "thing" inside a table cell that would
|
Beta Was this translation helpful? Give feedback.
-
Google Group Post: https://groups.google.com/g/ruby-forme/c/eBwJafEdWN4
Google Group Date: Sun, 11 May 2014 01:20:17 -0700
Google Group Sender: [email protected]
Part of the form I currently have puts associated subfields in rows. The :trtd formatter puts each record vertically, so I was going to need a new formatter.
I added “:td” to the :wrapper code that already handles :div :span and the like. “Just the … pair. That’s it. Nothing else.”
But when I tried it, Kazam! It was magically boxed up into a table, with a row, and with the form. WTF? I have absolutely no idea what magical code is causing that to happen!
I went on to create an input wrapper that would do the . And, pleasingly, the fields I put inside an f.inputs block were indeed placed in separate cells within a row. And all the .input fields outside were placed in another row. Sadly, the .subform did not use the inputs wrapper the way the .inputs block did. The subform’s fields were just cells in the same ‘everything left over row.’ If it’s not going to use the :inputs_wrapper that I define, then why does it insist on dressing up in a
when I don’t define one?So I put the subform inside an .inputs. That did put it on a row of its own, but the hidden information got its own cell, so the subform had a big blank space at the beginning, since the other rows above it did not have hidden-only data stuck in a cell of its own.
I would suggest that all inputs shoudl be collected in their own special bucket, and dumped onto the form right after the
tag, entirely immune to all formatting commands &/or wrappers.Beta Was this translation helpful? Give feedback.
All reactions