From 008e95c9827a8cb3a725f7ff1d3de9874b56ba15 Mon Sep 17 00:00:00 2001 From: Vitor Date: Thu, 2 Oct 2014 14:10:18 +0100 Subject: [PATCH] abtesting - Fixes to several interface issues. --- css/angular-crmMailingAB.css | 7 +++ js/angular-crmMailingAB.js | 24 +++++---- partials/abtesting/from_name.html | 34 ++++++------ partials/abtesting/subject_lines.html | 34 ++++++------ partials/abtesting/tab1.html | 2 +- partials/abtesting/tab3.html | 26 ++++++---- partials/abtesting/tab4.html | 8 ++- partials/abtesting/two_emails.html | 74 +++++++++++++-------------- 8 files changed, 116 insertions(+), 93 deletions(-) diff --git a/css/angular-crmMailingAB.css b/css/angular-crmMailingAB.css index 0dc5927df3..f39411d14b 100644 --- a/css/angular-crmMailingAB.css +++ b/css/angular-crmMailingAB.css @@ -50,4 +50,11 @@ div#frag2 { height:600px; width:800px; overflow: auto; +} + +.abtesting-form-label { + width: 30%; +} +.abtesting-form-element *{ + width: 100%; } \ No newline at end of file diff --git a/js/angular-crmMailingAB.js b/js/angular-crmMailingAB.js index c377ad8d16..91bffd3f77 100755 --- a/js/angular-crmMailingAB.js +++ b/js/angular-crmMailingAB.js @@ -499,8 +499,8 @@ if ($scope.preview == true) { $('#prevmail').dialog({ title: 'Preview Mailing', - width: 1080, - height: 700, + width: 1000, + height: 500, closed: false, cache: false, modal: true, @@ -920,7 +920,11 @@ return { restrict: 'AE', link: function (scope, element, attrs) { - $(element).select2({width: "200px", data: CRM.crmMailing.mailTokens, placeholder: "Insert Token"}); + $(element).select2({ + width: "200px", + data: CRM.crmMailing.mailTokens, + placeholder: "Insert Token" + }); $(element).on('select2-selecting', function (e) { scope.$evalAsync('_resetSelection()'); @@ -1003,18 +1007,17 @@ "name": "from_email_address" }).done(function(result) { var emailGroupId = result.id; - console.log(result); CRM.api3('OptionValue', 'get', { "sequential": 1, "option_group_id": result.id }).done(function(orgEmails) { - console.log(orgEmails); //$sce.trustAsHtml( - $(element).select2({width:"200px", - data: orgEmails.values, - formatResult: format, + $(element).select2({ + class: "abtesting-form-element", + data: orgEmails.values, + formatResult: format, formatSelection: format, placeholder:"Select reply to address"}); @@ -1105,7 +1108,10 @@ return { restrict: 'AE', link: function (scope, element, attrs) { - $(element).timeEntry({show24Hours: true}); + $(element).timeEntry({ + show24Hours: true, + showSeconds: true, + }); } } }); diff --git a/partials/abtesting/from_name.html b/partials/abtesting/from_name.html index a398b13ad3..13bd32ac28 100755 --- a/partials/abtesting/from_name.html +++ b/partials/abtesting/from_name.html @@ -1,50 +1,50 @@ - - + - - + - - + - - + - - + - - - +
From E-mail Address A - From E-mail Address A +
From E-mail Address B - From E-mail Address B +
Reply to E-mail Address - +
Mailing Subject + Mailing Subject
Mailing Subject Token - + Mailing Subject Token +
+ Mailing subject required.
Use Template + Use Template - - + - - + - - + - - + - - + - - + - - - +
From E-mail Address - From E-mail Address +
Reply to E-mail Address + Reply to E-mail Address
Mailing Subject A + Mailing Subject A
Mailing Subject Token - + Mailing Subject Token +
Mailing Subject B + Mailing Subject B
Mailing Subject Token + Mailing Subject Token
+ Mailing subject required.
Use Template + Use Template *This field is required
diff --git a/partials/abtesting/tab3.html b/partials/abtesting/tab3.html index 145ed874e3..c69218a030 100755 --- a/partials/abtesting/tab3.html +++ b/partials/abtesting/tab3.html @@ -1,6 +1,6 @@
-

Select the groups you would like to add


+

Select the groups you would like to add

 
-



- +

Select the size of your test group


  Percentage Selected - {{currentABTest.group_percentage}}%
-

How will the winner be decided


-   Open

-   - Total Unique Clicks

-   Total - Clicks on a particular link
+

How will the winner be decided (metric)


+ + +         -
+

Declare the winner by when?


diff --git a/partials/abtesting/tab4.html b/partials/abtesting/tab4.html index d0f7ea0206..0ba22dab0b 100755 --- a/partials/abtesting/tab4.html +++ b/partials/abtesting/tab4.html @@ -57,8 +57,12 @@

When to Start


- Now   - Later + +
        Time : diff --git a/partials/abtesting/two_emails.html b/partials/abtesting/two_emails.html index 630353b5df..615bdf04f9 100755 --- a/partials/abtesting/two_emails.html +++ b/partials/abtesting/two_emails.html @@ -9,33 +9,33 @@
- - + - - + - - + - - + @@ -45,8 +45,8 @@ - - +
From E-mail Address - +
Reply to E-mail Address - +
Mailing Subject + Mailing Subject
Mailing Subject Token - + Mailing Subject Token +
Use Template + Use Template +
- - + - - +
Mailing Header + Mailing Header
Mailing Footer + Mailing Footer @@ -130,43 +130,43 @@ - - + - - + - - + - - + - - - +
From E-mail Address - +
Reply to E-mail Address - +
Mailing Subject + Mailing Subject
Mailing Subject Token - + Mailing Subject Token +
+ Mailing subject required.
Use Template + Use Template +
- - + - - +
Mailing Header + Mailing Header
Mailing Footer + Mailing Footer -- 2.25.1