Re: i18n of mockup
Rok Garbas <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <20131209135315.17389.77473@oskar> |
Quoting Godefroid Chapelle (2013-12-09 14:14:48)
> Le 09/12/13 12:52, Rok Garbas a écrit :
> > you pass them via data attributes as options of pattern.
> >
> > for now nothing more fancy is needed.
> >
> >
> > --
> > Rok Garbas -http://www.garbas.si
>
> Thanks for the hint
>
> Answer with a bit more details :
>
> If I want to configure message of preventdoublesubmit
>
> I need to add
>
> data-pat-preventdoublesubmit="message: You already clicked the submit
> button. Do you really want to submit this form again?"
>
> attribute to the form element where the pattern is triggered.
>
you can actually put this into the body element. it will be then used by any
preventdoublesubmit pattern inside body.
also since i believe you will be generating this attribute using python you can
also pass json, eg.:
<body data-pat-preventdoublesubmit='{"message": "..."}'>
please read more on this at http://plone.github.io/mockup/dev/#hello-world
--
Rok Garbas - http://www.garbas.si
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Plone-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-developers