slapos_jio: Introduce annotated helper gadget
This gadget aims to centralise entire "helper" test on various contexts, in this way translate becomes easy and update information is quite simple. In order to use the gadget, you should include a template on rjs_gadget_slapos_annotated_helper_html: <script id="add-new-example-header-text" type="text/x-handlebars-template"> Some text or <details> <summary>Some test<summary> <p>Content...</p></details> </script> and include the gadget on the target HTML: <div data-gadget-url="gadget_slapos_annotated_helper.html" data-gadget-scope="annotated_helper" data-template-id="add-new-example-header-text" data-gadget-sandbox="public"> </div> This is also supposed to be compatible with GadgetField or usable from getDeclaredGadget(...)
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
-
Maintainer
I introduced a way to centralize the "helper" text into a single gadget, which prevent us duplicate html to translate texts.
For now it is CSS-less and only contains password policy text (which is what I need for now).
-
Thank you.
Shall I drop my experiments and adapt to your way? Also does it make nexedi/erp5!1131 obsolete?
-
Maintainer
This is just to centralize the content, so this can replace your experiments but nexedi/erp5!1131 is something else.
"Annotated helper" is just a way to centralize messages, to make translation easy, and a simple API to select the message, on erp5js/renderjs is an API/standard for display the help itself which seems interesting to be finished from erp5js point of view.
/cc @romain
Please register or sign in to comment