[html-formfu] How to remove enclosing div for a text input element
abhishek jain
abhishek.netjain at gmail.com
Wed Apr 4 13:30:13 GMT 2012
Hi,
Thanks for the advice,
But it does half the work, i used:
container_tag: div
container_attributes:
class: row
and it produces:
<div class="row text label">
I dont want the default values: i just want <div class="row ">
If i do additionaly:
del_container_attributes:
class: label
then instead of deleting the class label it adds up so i get:
<div class="label row text label">
Please advice, i know i am missing some silly thing.
Thanks
Abhi
-----Original Message-----
From: Brian Cassidy [mailto:brian.cassidy at gmail.com]
Sent: 04 April 2012 17:20
To: HTML Form Creation, Rendering and Validation Framework
Subject: Re: [html-formfu] How to remove enclosing div for a text input
element
On Wed, Apr 4, 2012 at 7:10 AM, abhishek jain <abhishek.netjain at gmail.com>
wrote:
> hi,
> I in yml file have
> - type: Text
> name: one
> label: something
>
> it generates:
>
> <div class="text label">
> <input name="one">
> </div>
>
> I want to change the class of this div,
See the following sections of the docs:
The tag itself:
https://metacpan.org/module/HTML::FormFu::Role::Element::Field#container_tag
The tag's attributes:
https://metacpan.org/module/HTML::FormFu::Role::Element::Field#container_att
ributes
HTH,
--
Brian Cassidy (brian.cassidy at gmail.com)
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu at lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
More information about the HTML-FormFu
mailing list