How to put zend radio in an extended table - zend-framework

I'm trying to build a form in the Zend Frameword in which there has to be a table like this:
So, it's a radiobutton followed by some descriptions about a subscription of some sorts. I have googled myself senseless, but can't make this happen. I have tried several form-decorators, but it seems that the radiobuttons stick together, and you can only wrap a whole group of radiobuttons in an html-tag...
The form will be rendered by a Smarty template, but I can't get the individual radio-buttons in the template. Maybe somebody has some experience with this.
Does anybody have an idea or a link to get me going with this?

This task is suited for View Script Decorator .
http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.viewScript

Related

Is a horizontal for possible with Grommet?

I would like to create a horizontal or inline form with the Grommet React library. I am loving it but either I am missing something, or some simple things like inline forms are not possible with it. Can anyone shed any light on how to achieve the following AirBNB form style with Grommet?
Note: I did try using columns but as soon as the Form element is added, it gets blocky and becomes vertical.
I set a box inside the form with direction='row' then inside it the FormFields.
Here a codepen (:

Struts 2 form customization

I use Struts 2 to create form in my application. I am struggling with a form customization.
I 've tried with theme simple, xhtml and css_xhtml but i am not able to find a solution.
Struts display the one input text by row, i want to display two or more input text by row. I join the image which explains want i'd like to do.
Thanks
With "simple" theme you can do whatever you want; there's nothing provided other than form value and input element. (You also don't get the automatic error reporting with the form element, but it looks like you wouldn't want that anyway.) If it's not working with "simple" then you're building your form wrong, or forgetting to include your own label, or something.
It might be easier to simply accept the layout Struts gives you and by assigning unique id's to your input fields take control the layout through a custom css file.
After many test, i've resolved my problem by using the simple theme. And adding custom css to format my form. Thanks –

need to style input from a form with css in real time

Ok im struggling to find anything on this as im probably searching the wrong keywords.
I have a backed form thats use to display content on a page. When entering the details i want to be able to use a basic text editor to style the text, like bold, bullets, underline.
On top of that i would also like to allow them to wrap section in paragraph tabs, apply a certain style i.e style id="x".
Its more for backend so it doesnt have to be really user friendly but if there was an uncomplicated way of showing the styles in the form as i apply them, basically a WYSIWYG view. If not i will settle for applying the styles without having to see all the hmtl and css tags in the editor but when the information is passed via the INSERT query it will show pass all the relevant code like My Style and so on.
Now im quite happy to spend the time learning how to do this if you point me in the right direction but i have no idea what keywords to search. Ideally if there is a script out there i can just edit to my needs would be great too rather than starting from scratch.
Finally since im learning php and mysql still keeping it dumbed down will help and also since my values im passing is going to be full of characters the code wont like what functions should i look up to pass the code and content into the database to avoid breaking the code
I'm not entirely sure what you mean, but it seems you can achieve what you want using an editor like for example TinyMCE in combination with JQuery?
With JQuery you can show/hide items and ander your css like
$("p").mouseover(function () {
$(this).css("color","red");
});

GWT implementing-- Sophistication of CellTable behavior, flexibility of CellList look

With a GWT CellTable its possible to add different columns that handle the click event in different ways.
For example lets say we have 3 columns:
an Avatar Image (ImageCell),
a name (TextCell),
checkbox (Checkbox
cell).
Then image adding these events:
When the ImageCell is clicked we can open a popup.
When the checkbox is clicked select the row.
When the name is clicked open the users profile.
With a CellTable it's straight forward to accomplish this.
However what if we wanted a view that doesn't look like a table. The CellTable is tied to a HTML Table for its implementation. Why not allow for a general HTML implementation of the CellTable (behavioral) API.
Using a CellList we can accomplish any view. But the API isn't as sophisticated as the CellTable. It would be cool if we could add something analogs to CellTable 'Columns' to a CellList.
Is there anyway to accomplish this with the current Cell Widgets? I might have over looked something.
Thanks!
I think there are two solutions:
Use a CellTable and style it so that it looks like a CellList. This should be quite straightforward and possible. However you would have to play with the CSS styles a little bit. Best approach would be to use Firebug to change the styles on the fly and see the results instantly
Use a CellList and create a custom cell which renders and handles events for your use case (Avatar, Name and Checkbox). This is more involved but there is a tutorial on the GWT page.
I would probably try to go with solution 2 because it also teaches you how to create custom Cells which might come in handy later on.
Update:
As Thomas suggested in the comments you can use a CompositeCell which wraps 3 different cells. That's probably the easiest way to implement it.

Typo3: powermailer: one form on different places on the same page

I have a page where I need one form in the main content and one in the footer.
The problem is that these two forms should be connected.
The form in the main content have three input fields for name, email etc. and the one in the footer has two radio buttons.
The radiobuttons work as "I agree" so they have to, somehow, be connected to the other fields.
I use typo3 with powermailer.
I have a thougth of using css and just move those radiobuttons to the footer.
But I would like a more permanent sollution. Thanks.
I think that there is currently no better solution, but youre on the right way with CSS.
If i understood you correctly. You are trying to implement two plugins which are connected to each other. This is impossible with powermail.
Dirty, but useable is the CSS way or maybe a JavaScript solution for some fancy effects.