This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit a5700ffd83d912bcb8894e266c3c139eb3273560 Author: jcouteau <couteau@codelutin.com> Date: Mon Oct 7 14:09:02 2019 +0200 Use toggle instead of classic checkbox --- .../src/main/web/tag/poll/Description.tag.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag.html index ebdc283b..a65414d8 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag.html @@ -89,15 +89,12 @@ <option each={emailAddress in session.getUser().emailAddresses} value={emailAddress.emailAddress}> </datalist> </div> + <div class="o-form-element"> - <input type="checkbox" - ref="multi" - id="multi" - tabindex="1" - name="multi" - checked="{form.multi}" - disabled={opts.form.model.closed}/> - <label class="c-label" for="multi">{_t.multiQuestion}</label> + <Checkbox label="{_t.multiQuestion}" + disabled={form.model.closed} + checkboxchecked={form.multi} + ontogglecheckbox={toggleMulti}/> </div> </div> @@ -107,12 +104,19 @@ this.session = session; this.installBundle(this.session, "poll_description", this.opts.emitter); this.form = this.opts.form; + + this.multi = this.form.multi; + + this.toggleMulti = () => { + this.multi = this.form.multi = !this.multi; + this.update(); + }; + this.submit = () => { this.form.model.title = this.refs.title.value; this.form.model.description = this.refs.description.value; this.form.model.creatorName = this.refs.name.value; this.form.model.creatorEmail = this.refs.email.value; - this.form.multi = this.refs.multi.checked; }; </script> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.