From: aditya-nambiar Date: Mon, 16 Jun 2014 17:36:14 +0000 (-0400) Subject: Form validation X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1c83d259d20e7b321d9eb25bcad9bb38e49f1ffe;p=civicrm-core.git Form validation --- diff --git a/js/angular-crmMailingAB.js b/js/angular-crmMailingAB.js index b73c274000..609f3100c9 100644 --- a/js/angular-crmMailingAB.js +++ b/js/angular-crmMailingAB.js @@ -33,7 +33,11 @@ resolve: { mailingList: function($route, crmApi) { return crmApi('Mailing', 'get', {}); + }, + allgroups: function($route,crmApi){ + return crmApi('Group','get',{}); } + } @@ -92,6 +96,7 @@ $scope.send_date ="10/4/2004"; + }); crmMailingAB.directive('nexttab', function() { @@ -144,7 +149,7 @@ link: function(scope,element, attrs){ - $(element).slider(); + $(element).slider({min:1}); $(element).slider({ slide: function( event, ui ) { scope.slide_value = ui.value; diff --git a/partials/abtesting/helloworld.html b/partials/abtesting/helloworld.html index f78c3fb459..3da00ae097 100644 --- a/partials/abtesting/helloworld.html +++ b/partials/abtesting/helloworld.html @@ -4,6 +4,10 @@
+ +
    @@ -46,17 +50,18 @@
    -
    +

    Select the groups you would like to add


    -  

    +

    You name is required.

    Select the size of your test group


    @@ -65,38 +70,41 @@

    How will the winner be decided


    -   Open

    -   Total Unique Clicks

    -   Total Clicks on a particular link

    +   Open

    +   Total Unique Clicks

    +   Total Clicks on a particular link

    + +

    Do you want the A/B test to be automated

    -  Yes   -   No

    +  Yes   +   No

    Please enter the confidence level at which a decision can be made

    -    

    - +    

    +
      Please Enter a Valid Number

    If the confidence level is not reached what do you want us to do?

    -   Inform me

    -   Send Version A

    -   Send Version B

    +   Inform me

    +   Send Version A

    +   Send Version B

    Declare the winner in how much time?


    -   Days -   Hours -   Minutes +   Days +   Hours +   Minutes +
      Please a Valid Time


    -
    +
    @@ -154,7 +162,7 @@    
- +