From c8530cfbc0e80fd80c8f1f1b9d07557ab2bad4f6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 11 Sep 2018 13:01:38 +0200 Subject: [PATCH] Update Form with descriptions --- client/src/components/UserUpdate.js | 54 +++++++++++++++++++---------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/client/src/components/UserUpdate.js b/client/src/components/UserUpdate.js index 8c4d4f454..3560cd6aa 100644 --- a/client/src/components/UserUpdate.js +++ b/client/src/components/UserUpdate.js @@ -161,6 +161,7 @@ console.log("component will UNmount"); /* Now we can set the default values for the form fields. */ + this.refs.alias.value = user.alias; this.refs.firstName.value = user.firstName; this.refs.middleName.value = user.middleName; this.refs.lastName.value = user.lastName; @@ -170,6 +171,9 @@ console.log("component will UNmount"); this.refs.isTrader.checked = user.isTrader; this.refs.isDataAnalyst.checked = user.isDataAnalyst; this.refs.select.value = user.role.id; + console.log("select value ", this.refs.select.value); + console.log("select ", this.refs.select); + this.setState({ id: user.id, @@ -191,9 +195,36 @@ console.log("render"); return(
- +

This is your basic information we got from the social identity provider you used to sign up. This information can not be changed.

+
+
+ + + +
+
+
+
+ + + +
+
+
+
+ + +
+

Complete your profile with the following optional information. Providing your real name might help other users trust you more.

-
Last Name
-
-
- - - -
-
-
-
- - -
-
+

Check the following options to enable specialized tools designed for each role. You can allways come back and change these settings later.

@@ -262,6 +277,7 @@ console.log("render");
+

Select the role you would like to play now.