Table Implemented
authoraditya-nambiar <aditya.nambiar007@gmail.com>
Sun, 15 Jun 2014 18:58:31 +0000 (14:58 -0400)
committeraditya-nambiar <aditya.nambiar007@gmail.com>
Sat, 26 Jul 2014 04:48:15 +0000 (10:18 +0530)
js/angular-crmMailingAB.js
partials/abtesting/helloworld.html

index e554ead476376e95c75b85d1f5782c143a9c29b6..a0b8d917a03f298ce164bdcdc1c65ebb1693ef87 100644 (file)
@@ -68,9 +68,9 @@
             }
         };
         $scope.templates =
-            [   { name: 'subjectlines', url: partialUrl('subject_lines.html')},
-                { name: 'fromname', url: partialUrl('from_name.html')},
-                {name:'2emails',url: partialUrl('two_emails.html')} ];
+            [   { name: 'Subject Lines', url: partialUrl('subject_lines.html')},
+                { name: 'From Name', url: partialUrl('from_name.html')},
+                {name:'Two different Emails',url: partialUrl('two_emails.html')} ];
         $scope.template = $scope.templates[0];
 
         $scope.slide_value = 0;
@@ -89,7 +89,7 @@
             $scope.ifyes=false;
         };
 
-        $scope.closebox="open";
+
 
     });
 
 
 
                 scope.$watch('automated', function(val) {
-                    if(val=="yes") {
+                    if(val=="Yes") {
                         console.log("yo");
 
                         $(element).dialog({
index 7f9deec478464ec14fd2be72c24adfee3081b42c..326e06a00b57962b831d802c7820fa262bfdd866 100644 (file)
                     &nbsp <input type="radio" ng-model="winner_criteria" value="Total Clicks on a particular link"> Total Clicks on a particular link <br/><br>
 
                     <h3 style="text-decoration: underline;">Do you want the A/B test to be automated </h3>
-                    &nbsp<input  type="radio" ng-model="automated" value="yes" ng-click="setifyes(1)" >Yes &nbsp
-                    &nbsp<input type="radio" ng-model="automated" value="no" ng-click="setifyes(2)"> No <br/><br>
+                    &nbsp<input  type="radio" ng-model="automated" value="Yes" ng-click="setifyes(1)" >Yes &nbsp
+                    &nbsp<input type="radio" ng-model="automated" value="No" ng-click="setifyes(2)"> No <br/><br>
 
                     <tpmax ng-show="ifyes">
 
                         <h3> Please enter the confidence level at which a decision can be made</h3>
-                        &nbsp &nbsp <input type="text" style="height: 20px; width: 25px;" ng-modal="confidence" numbar=99><br><br>
+                        &nbsp &nbsp <input type="text" style="height: 20px; width: 25px;" ng-model="conf" numbar=99><br><br>
 
 
                         <h3>If the confidence level is not reached what do you want us to do?</h3>
-                        &nbsp <input type="radio" ng-model="ifnot" value="Open"> Inform me  <br/><br>
-                        &nbsp <input type="radio" ng-model="ifnot" value="Total Unique Clicks"> Send Version A <br/><br>
-                        &nbsp <input type="radio" ng-model="ifnot" value="Total Clicks on a particular link"> Send Version B <br/><br>
+                        &nbsp <input type="radio" ng-model="ifnot" value="Inform me"> Inform me  <br/><br>
+                        &nbsp <input type="radio" ng-model="ifnot" value="Send Version A"> Send Version A <br/><br>
+                        &nbsp <input type="radio" ng-model="ifnot" value="Send Version B"> Send Version B <br/><br>
 
                         <button id="closebutton" style="position: relative;left:200px;">Save & Close</button>
 
                     </tpmax>
 
                     <h3 style="text-decoration: underline;">Declare the winner in how much time?</h3><br>
-                    &nbsp <input type="text" style="height: 20px; width: 15px;" numbar=7> Days
-                    &nbsp <input type="text" style="height: 20px; width: 15px;" numbar=23> Hours
-                    &nbsp <input type="text" style="height: 20px; width: 15px;" numbar=59> Minutes
+                    &nbsp <input type="text" style="height: 20px; width: 15px;" ng-model="days" numbar=7> Days
+                    &nbsp <input type="text" style="height: 20px; width: 15px;" ng-model="hours" numbar=23> Hours
+                    &nbsp <input type="text" style="height: 20px; width: 15px;" ng-model="minutes" numbar=59> Minutes
                     <br>
                     <br>
 
                 </form>
         </div>
 
-        <div id="tabs-4">dsfdfbdfg
-
-
+        <div id="tabs-4">
+
+            <h3 style="text-decoration: underline;">Details</h3><br>
+
+            <table>
+            <tr>
+                <td>Test Criteria</td>
+                <td>{{template.name}}</td>
+            </tr>
+             <tr>
+                 <td>Groups Selected</td>
+                 <td></td>
+             </tr>
+             <tr>
+                 <td>Size of Test Group</td>
+                 <td>{{slide_value}}</td>
+
+             </tr>
+                <tr>
+                    <td>Winner Criteria</td>
+                    <td>{{winner_criteria}}</td>
+                </tr>
+              <tr>
+                  <td>Automated</td>
+                  <td>{{automated}}</td>
+
+              </tr>
+               <tr ng-show="automated=='Yes'">
+                   <td>Minum Confidence Level</td>
+                <td>{{conf}}%</td>
+               </tr>
+                <tr ng-show="automated=='Yes'">
+                    <td>If Level not Achieved</td>
+                    <td>{{ifnot}}</td>
+                </tr>
+                <tr>
+                    <td>Declare Winner in</td>
+                    <td>{{days}} Days {{hours}} Hours {{minutes}} Minutes</td>
+
+                </tr>
+
+
+            </table>
+
+
+
+            <button  value=">> Compose"   id="campaignbutton" nexttab={{adi}} >Submit & Send</button> <br>
         </div>
     </div>