Commit f9e08222 authored by aditya-nambiar's avatar aditya-nambiar

Content changes in compose tab

parent b88b7a13
......@@ -121,6 +121,8 @@
$scope.scheddate={};
$scope.scheddate.date = "6";
$scope.scheddate.time = "";
$scope.incGroup =[];
$scope.excGroup=[];
});
......@@ -212,6 +214,39 @@
formatSelection: format,
escapeMarkup: function(m) { return m; }
});
$(element).on('select2-selecting', function(e) {
var a = e.val.split(" ");
var l = a.length;
if(a[2]=="include")
{ var str="";
for(i=3; i< l; i++){
str+=a[i];
str+=" ";
}
scope.incGroup.push(str);scope.$apply();}
else
{ var str="";
for(i=3; i< l; i++){
str+=a[i];
str+=" ";
}
scope.excGroup.push(str);scope.$apply();}
});
$(element).on("select2-removed", function(e) {
if(e.val.split(" ")[2]=="exclude") {
var index = scope.excGroup.indexOf(e.val.split(" ")[3]);
scope.excGroup.splice(index, 1);
scope.$apply();
}
else{
var index = scope.incGroup.indexOf(e.val.split(" ")[3]);
scope.incGroup.splice(index, 1);scope.$apply();
}
});
}
};
......
......@@ -58,10 +58,8 @@
<br>
<div class="crm-accordion-wrapper collapsed" >
<div class="crm-accordion-header">Compose on Screen</div>
<div class="crm-accordion-body" >
<br>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">HTML Format</div>
<div class="crm-accordion-body">
......@@ -79,90 +77,24 @@
<br>
&nbsp &nbsp &nbsp &nbsp
<textarea ng-model="currentMailing.body_text" style="width: 600px; height: 300px;"></textarea>
<br> <br>
<br>
</div>
</div>
<table>
<tr ng-show= "false">
<td>
<input type="checkbox">&nbsp Save Template</input>
</tr>
</table>
</div>
</div>
<div class="crm-accordion-wrapper collapsed" ng-show='false'>
<div class="crm-accordion-header">Upload Content</div>
<div class="crm-accordion-body" >
<body>
<table>
<tr>
<td class="label">Upload TEXT Message</td>
<td>
<input type="file"/>
</td>
</tr>
<table ng-show= "false">
<tr>
<td class="label">Upload HTML Message</td>
<td>
<input type="file"/>
</td>
<input type="checkbox">&nbsp Save Template</input>
</tr>
</table>
</body>
</div>
</div>
<div class="crm-accordion-wrapper collapsed" >
<div class="crm-accordion-header">Attachments</div>
<div class="crm-accordion-body" >
<!-- will use Controller: browse -->
<body>
<table>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file"/>
</td>
<td>
<button ng-click="upload()" >Upload</button>
</td>
</tr>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file_2"/>
</td>
<td>
<button ng-click="upload_2()" >Upload</button>
</td>
</tr>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file_3"/>
</td>
<td>
<button ng-click="upload_3()" >Upload</button>
</td>
</tr>
</table>
</body>
</div>
</div>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">Header and Footer</div>
<div class="crm-accordion-body" >
<br>
<body>
<table>
<tr>
......
......@@ -21,7 +21,7 @@
&nbsp <input type="radio" ng-model="template" ng-value="templates[0]"> Subject Lines <br/><br>
&nbsp <input type="radio" ng-model="template" ng-value="templates[1]"> From Names <br/><br>
&nbsp <input type="radio" ng-model="template" ng-value="templates[2]"> Two different Emails <br/><br>
&nbsp <div style="position:relative; left:200px; top: 30px;" nextbutton></div> <div style="position:relative; left:300px;" cancelbutton></div>
&nbsp <div style="position:relative; left:220px; top: 30px;" nextbutton></div> <div style="position:relative; left:300px; top:-1px;" cancelbutton></div>
</form>
......@@ -32,9 +32,9 @@
<form>
<div ng-include="template.url">
</div>
<div style="position:relative; left:200px; top:60px;" prevbutton></div>
<div style="position:relative; left:295px; top: 30px;" nextbutton></div>
<div style="position:relative; left:375px;"cancelbutton></div>
<div style="position:relative; left:200px; top:61px;" prevbutton></div>
<div style="position:relative; left:300px; top: 30px;" nextbutton></div>
<div style="position:relative; left:375px; top:-1px;"cancelbutton></div>
</form>
</div>
......@@ -46,14 +46,14 @@
&nbsp<br>
<select multiple groupselect ng-model="incGroup">
<option id= "1" ng-repeat="grp in groups" value="{{grp.id}} group include" > {{grp.title}} </option>
<option ng-repeat="grp in groups" value="{{grp.id}} group exclude" > {{grp.title}} </option>
<option ng-repeat="ml in mailList" value="{{ml.id}} mail include" > {{ml.name}} </option>
<option ng-repeat="ml in mailList" value="{{ml.id}} mail exclude" > {{ml.name}} </option>
<select multiple groupselect >
<option id= "1" ng-repeat="grp in groups" value="{{grp.id}} group include {{grp.title}}" > {{grp.title}} </option>
<option ng-repeat="grp in groups" value="{{grp.id}} group exclude {{grp.title}}" > {{grp.title}} </option>
<option ng-repeat="ml in mailList" value="{{ml.id}} mail include {{ml.title}}" > {{ml.name}} </option>
<option ng-repeat="ml in mailList" value="{{ml.id}} mail exclude {{ml.title}}" > {{ml.name}} </option>
</select>
<br> <br><br><br>
{{incGroup}}<br>{{excGroup}}
<h3>Select the size of your test group</h3><br>
&nbsp Percentage Selected - {{slide_value}}%
......@@ -95,8 +95,8 @@
<div style="position:relative; left:200px; top:30px;" prevbutton></div>
<div style="position:relative; left:295px; top: 00px;" nextbutton></div>
<div style="position:relative; left:375px; top: -30px;" cancelbutton></div>
<div style="position:relative; left:300px; top: 00px;" nextbutton></div>
<div style="position:relative; left:375px; top: -31px;" cancelbutton></div>
</form>
</div>
......@@ -110,8 +110,12 @@
<td>{{template.name}}</td>
</tr>
<tr>
<td>Groups Selected</td>
<td>{{groups_selected}}</td>
<td>Groups Included</td>
<td>{{incGroup}}</td>
</tr>
<tr>
<td>Groups Excluded</td>
<td>{{excGroup}}</td>
</tr>
<tr>
<td>Size of Test Group</td>
......@@ -149,7 +153,7 @@
<br><br>
<div>
4
<div style="position:relative; left:200px; top:60px;" prevbutton></div>
<div class="crm-submit-buttons" style="position:relative; left:295px; top: 30px;" >
<div class = "crm-button crm-button-type-upload crm-button_qf_Contact_upload_view" >
......
<div>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<hr>
&nbsp <input type="radio" > Stop Test and Send Version A <br/><br>
&nbsp <input type="radio" > Stop Test and Send Version B <br/><br>
</div>
\ No newline at end of file
......@@ -4,7 +4,7 @@
<table class="form-layout-compressed">
<tbody>
<tr>
<td class="label">From E-mail Address </td>
<td class="label">From E-mail Address A</td>
<td>
<select style="width: 200px" ng-model="currentMailing.from_email" ng-options="frm.email as frm.email for frm in eMailing">
<option value="">-none-</option>
......@@ -57,111 +57,43 @@
<br>
<div class="crm-accordion-wrapper collapsed" >
<div class="crm-accordion-header">Compose on Screen</div>
<div class="crm-accordion-body" >
<br>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">HTML Format</div>
<div class="crm-accordion-body">
<br>
&nbsp &nbsp &nbsp &nbsp
<textarea ng-model="currentMailing.body_html" style="width: 600px; height: 300px;"></textarea>
<br> <br>
</div>
</div>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">Plain Text</div>
<div class="crm-accordion-body" >
<br>
&nbsp &nbsp &nbsp &nbsp
<textarea ng-model="currentMailing.body_text" style="width: 600px; height: 300px;"></textarea>
<br> <br>
</div>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">HTML Format</div>
<div class="crm-accordion-body">
<br>
&nbsp &nbsp &nbsp &nbsp
<textarea ng-model="currentMailing.body_html" style="width: 600px; height: 300px;"></textarea>
<br> <br>
</div>
<table>
<tr ng-show= "false">
<td>
<input type="checkbox">&nbsp Save Template</input>
</tr>
</table>
</div>
</div>
<div class="crm-accordion-wrapper collapsed" ng-show = 'false' >
<div class="crm-accordion-header">Upload Content</div>
<div class="crm-accordion-body" >
<body>
<table>
<tr>
<td class="label">Upload TEXT Message</td>
<td>
<input type="file"/>
</td>
</tr>
<tr>
<td class="label">Upload HTML Message</td>
<td>
<input type="file"/>
</td>
</tr>
</table>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">Plain Text</div>
<div class="crm-accordion-body" >
</body>
<br>
&nbsp &nbsp &nbsp &nbsp
<textarea ng-model="currentMailing.body_text" style="width: 600px; height: 300px;"></textarea>
<br>
</div>
</div>
</div>
<div class="crm-accordion-wrapper collapsed" >
<div class="crm-accordion-header">Attachments</div>
<div class="crm-accordion-body" >
<!-- will use Controller: browse -->
<body>
<table>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file"/>
</td>
<td>
<button ng-click="upload()" >Upload</button>
</td>
</tr>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file_2"/>
</td>
<td>
<button ng-click="upload_2()" >Upload</button>
</td>
</tr>
<tr>
<td class="label">Attach Files</td>
<td>
<input type="file" data-file="param.file_3"/>
</td>
<td>
<button ng-click="upload_3()" >Upload</button>
</td>
</tr>
<table ng-show= "false">
<tr>
<td>
<input type="checkbox">&nbsp Save Template</input>
</tr>
</table>
</table>
</body>
</div>
</div>
<div class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">Header and Footer</div>
<div class="crm-accordion-body" >
<br>
<body>
<table>
<tr>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment