Skip to content

Inability to add arbitrary html snippet as button #119

Closed
dwt opened this Issue Sep 19, 2012 · 4 comments

3 participants

@dwt
dwt commented Sep 19, 2012

You can only have real form buttons. Either by specifying the tile, or by giving a deform.Button object.

What I need sometimes is to have some arbitrary html in the form where it has the buttons (for design reasons mostly).

Right now my workaround is to move that html next to the buttons with some jquery after the page has loaded - but what I really want is to have the controll to just render arbitrary html as one of the buttons.

@kiorky
Pylons Project member
kiorky commented Sep 21, 2012

You can make a new novalue field lied to an htmlwidget which renders what you defined, either a plain string or maybe even better the rendering of a chameleontemplate.

If you make a proper pullrequest, i would be happy to make it go into deform itself

@mcdonc
Pylons Project member
mcdonc commented Sep 25, 2012

FWIW, the deform master is growing features that should allow you to generate forms "from scratch" (aka it is growing a "retail" API), so it's likely that we'll ask people who need highly customized form output to use that rather than building more knobs into deform itself.

@mcdonc
Pylons Project member
mcdonc commented Jan 11, 2013

This feature is now documented (minimally and poorly) in the "retail.rst" document in the "docs" directory of the repository (and will be up on readthedocs soon).

@mcdonc mcdonc closed this Jan 11, 2013
@dwt
dwt commented Jan 15, 2013

Thanks!

Here's the full link to that documentation: https://deform.readthedocs.org/en/latest/retail.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.