This is an automated email from the git hooks/post-receive script. New commit to branch feature/pollen-riot-js in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 8b7730bef51d608415680a718b175bab97cafc3e Author: Kevin Morin <morin@codelutin.com> Date: Fri Feb 24 10:13:33 2017 +0100 refs #2 Create a basic poll : the creator info did not have the right names --- pollen-ui-riot-js/src/main/web/js/PollForm.js | 8 ++++---- pollen-ui-riot-js/src/main/web/tag/poll/Description.tag | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/PollForm.js b/pollen-ui-riot-js/src/main/web/js/PollForm.js index 3e1e226..90e3283 100644 --- a/pollen-ui-riot-js/src/main/web/js/PollForm.js +++ b/pollen-ui-riot-js/src/main/web/js/PollForm.js @@ -49,12 +49,12 @@ class PollForm { this.model.title = "Mon premier sondage"; this.model.description = "Premier sondage!"; - this.model.name = "Dick Laurent"; - this.model.email = "user@pollen.org"; + this.model.creatorName = "Dick Laurent"; + this.model.creatorEmail = "user@pollen.org"; this.mode = "create"; if (user) { - this.model.name = user.name; - this.model.email = user.email; + this.model.creatorName = user.name; + this.model.creatorEmail = user.email; } this.model.voteCountingType = "1"; this.model.participant = []; diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag b/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag index f950120..0cbc7ed 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Description.tag @@ -23,9 +23,9 @@ <label for="title">{__.title}</label> <input ref="title" type="text" required name="title" value="{model.title}" placeholder="{__.titlePlaceHolder}"> <label for="name">{__.name}</label> - <input ref="name" type="text" required name="name" value="{model.name}" placeholder="{__.namePlaceHolder}"> + <input ref="name" type="text" required name="name" value="{model.creatorName}" placeholder="{__.namePlaceHolder}"> <label for="email">{__.email}</label> - <input ref="email" type="email" required name="email" value="{model.email}" placeholder="{__.emailPlaceHolder}"> + <input ref="email" type="email" required name="email" value="{model.creatorEmail}" placeholder="{__.emailPlaceHolder}"> <br/> <div class="actions"> <a class="button" onclick="{cancel}">{__.cancel}</a> @@ -44,8 +44,8 @@ e.preventDefault(); e.stopPropagation(); this.model.title = this.refs.title.value; - this.model.name = this.refs.name.value; - this.model.email = this.refs.email.value; + this.model.creatorName = this.refs.name.value; + this.model.creatorEmail = this.refs.email.value; this.form.nextStep(); }; this.cancel = () => { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.