Commits

Juan Carlos Picado Herrera committed c906e79

ENCUESTAME-49, widget progress

  • Participants
  • Parent commits 2f20afc

Comments (0)

Files changed (2)

encuestame-war/src/main/webapp/resource/js/encuestame/org/core/commons/social/SocialAccounts.js

 dojo.provide("encuestame.org.core.commons.social.SocialAccounts");
 
+dojo.require("dijit.form.ValidationTextBox");
+dojo.require("dijit.form.Textarea");
+dojo.require("dijit.form.Select");
+dojo.require("dijit.form.Button");
+dojo.require("dijit.form.Form");
+
 dojo.declare(
     "encuestame.org.core.commons.social.SocialAccounts",
     [dijit._Widget, dijit._Templated],{
         "encuestame.org.core.commons.social.SocialAccountRow",
         [dijit._Widget, dijit._Templated],{
 
-            templatePath: dojo.moduleUrl("encuestame.org.core.commons.social", "templates/socialAccountRow.inc")
+            templatePath: dojo.moduleUrl("encuestame.org.core.commons.social", "templates/socialAccountRow.inc"),
+
+            account : null,
+
+            postCreate : function(){
+              console.debug("account", this.account);
+            },
+
+            _disableSocialAccount : function(){
+
+            },
+
+            _removeSocialAccount : function(){
+
+            },
 
+            _testAccount : function(){
+
+
+            }
 });
 
 

encuestame-war/src/main/webapp/resource/js/encuestame/org/core/commons/social/templates/socialAccountRow.inc

 <div class="{type}WrapperRow">
-    <h3>social account row</h3>
+    <div dojoType="dijit.form.Form">
+        <div class="title">${account.account}</div>
+        <input type="text" name="secretToken" id="secretToken"
+                            dojoType="dijit.form.ValidationTextBox"
+                            required="true"
+                            invalidMessage="Consumer Secret is Required"
+                            value="${account.secretToken}"
+                            selectOnClick="true">
+                            <label for="consumer">
+                                Secret Token
+                            </label>
+         <input type="text" name="token" id="token"
+                            dojoType="dijit.form.ValidationTextBox"
+                            required="true"
+                            invalidMessage="Token is Required"
+                            value="${account.token}"
+                            selectOnClick="true">
+                            <label for="consumer">
+                                Token
+                            </label>
+    </div>
 </div>