sync
This commit is contained in:
@ -17,22 +17,6 @@
|
||||
margin-bottom: 1px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin: 20px 40px 5px 0px;
|
||||
font-size: 16px;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.subtitle span {
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.subtitle hr {
|
||||
background-color: #d8d8d8;
|
||||
border: none;
|
||||
height: 1px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<link href="<%=GetFileUrlWithVersion("../css/tabcontrol.css")%>" rel="stylesheet" />
|
||||
@ -192,11 +176,11 @@
|
||||
}
|
||||
var endMin = $("#smswt_endtimeminute").val();
|
||||
|
||||
var alerttitle = GetTextByKey("P_XXXX", "Survey Automation");
|
||||
var alerttitle = GetTextByKey("P_WOS_SURVEYAUTOMATION", "Survey Automation");
|
||||
|
||||
if (item.DaysFromCompletedDate !== "") {
|
||||
if (!IsPositiveInteger.test(item.DaysFromCompletedDate)) {
|
||||
showAlert(GetTextByKey("P_SET_XXX", 'Number of Days from Completed Date format error.'), alerttitle);
|
||||
showAlert(GetTextByKey("P_WOS_NUMBEROFDAYSFROMCOMPLETEDDATEFORMATERROR", 'Number of Days from Completed Date format error.'), alerttitle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -205,7 +189,7 @@
|
||||
|
||||
if (item.DaysSinceLastReceivedSurvey !== "") {
|
||||
if (!IsPositiveInteger.test(item.DaysSinceLastReceivedSurvey)) {
|
||||
showAlert(GetTextByKey("P_SET_XXX", 'Days Since Contact Last Received a Survey format error.'), alerttitle);
|
||||
showAlert(GetTextByKey("P_WOS_DAYSSINCECONTACTLASTRECEIVEDASURVEYFORMATERROR", 'Days Since Contact Last Received a Survey format error.'), alerttitle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -214,7 +198,7 @@
|
||||
|
||||
if (item.ResendAfterDays !== "") {
|
||||
if (!IsPositiveInteger.test(item.ResendAfterDays)) {
|
||||
showAlert(GetTextByKey("P_SET_XXX", 'Resend After Number of Days format error.'), alerttitle);
|
||||
showAlert(GetTextByKey("P_WOS_RESENDAFTERNUMBEROFDAYSFORMATERROR", 'Resend After Number of Days format error.'), alerttitle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -223,7 +207,7 @@
|
||||
|
||||
if (item.Randomization !== "") {
|
||||
if (!IsPositiveInteger.test(item.Randomization)) {
|
||||
showAlert(GetTextByKey("P_SET_XXX", 'Randomization format error.'), alerttitle);
|
||||
showAlert(GetTextByKey("P_WOS_RANDOMIZATIONFORMATERROR", 'Randomization format error.'), alerttitle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -250,13 +234,13 @@
|
||||
}
|
||||
}, function (err) {
|
||||
showloading(false);
|
||||
showAlert(GetTextByKey("P_XXXX", 'Failed to save Survey Automation.'), alerttitle);
|
||||
showAlert(GetTextByKey("P_WOS_FAILEDTOSAVESURVEYAUTOMATION", 'Failed to save Survey Automation.'), alerttitle);
|
||||
});
|
||||
}
|
||||
|
||||
var surveyautomationdata;
|
||||
function OnRefresh() {
|
||||
var alerttitle = GetTextByKey("P_XXXX", "Survey Automation");
|
||||
var alerttitle = GetTextByKey("P_WOS_SURVEYAUTOMATION", "Survey Automation");
|
||||
showloading(true);
|
||||
worequest("GetSurveyAutomationSetting", "", function (data) {
|
||||
showloading(false);
|
||||
@ -368,71 +352,71 @@
|
||||
<div class="content_main content_div" style="padding-top: 20px;">
|
||||
<table style="line-height: 30px;">
|
||||
<tr>
|
||||
<td class="label" style="width: 300px;" data-lgid="P_XXXX">Default Template:</td>
|
||||
<td class="label" style="width: 300px;" data-lgid="P_WOS_DEFAULTTEMPLATE_COLON">Default Template:</td>
|
||||
<td colspan="4">
|
||||
<select style="width: 300px; margin-left: 5px;" id="dialog_template"></select>
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">Select the survey you would like sent by default</span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_SELECTTHESURVEYYOUWOULDLIKESENTBYDEFAULT">Select the survey you would like sent by default</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Number of Days from Completed Date:</td>
|
||||
<td class="label" data-lgid="P_WOS_NUMBEROFDAYSFROMCOMPLETEDDATE_COLON">Number of Days from Completed Date:</td>
|
||||
<td colspan="4">
|
||||
<input id="dialog_completeddatedays" type="text" style="width: 100px;" maxlength="10" />
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">How many days after a work order is closed would you like the survey sent? To send immediately upon close enter 0.</span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_WORKORDERISCLOSEDSYRVEYSENT_TIPS">How many days after a work order is closed would you like the survey sent? To send immediately upon close enter 0.</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Days Since Contact Last Received a Survey:</td>
|
||||
<td class="label" data-lgid="P_WOS_DAYSSINCECONTACTLASTRECEIVEDASURVEY_COLON">Days Since Contact Last Received a Survey:</td>
|
||||
<td colspan="4">
|
||||
<input id="dialog_receivedsurveydays" type="text" style="width: 100px;" maxlength="10" />
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">For customers with multiple work orders, limit how many surveys they can receive. Ex:
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_CUSTOMERMULTIPLEWOLIMITHOWMANYSURVEYSTHEYCANRECEIVE_TIPS">For customers with multiple work orders, limit how many surveys they can receive. Ex:
|
||||
0: Customer is eligible to receive a survey for every work order closed.
|
||||
30: Customer would not receive a second survey for at least 30 days regardless of how many work orders have been completed for them.
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Resend?</td>
|
||||
<td class="label" data-lgid="P_WOS_RESEND">Resend?</td>
|
||||
<td colspan="4">
|
||||
<select id="dialog_resend" style="width: 104px;">
|
||||
<option value="0" data-lgid="P_SET_NO">No</option>
|
||||
<option value="1" data-lgid="P_SET_YES">Yes</option>
|
||||
</select>
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">If a customer has not replied, would you like to automatically resend the survey? Y/N</span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_CUSTOMERHASNOTREPLIED_TIPS">If a customer has not replied, would you like to automatically resend the survey? Y/N</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Resend After Number of Days:</td>
|
||||
<td class="label" data-lgid="P_WOS_RESENDAFTERNUMBEROFDAYS_COLON">Resend After Number of Days:</td>
|
||||
<td colspan="4">
|
||||
<input id="dialog_resendafterdays" type="text" style="width: 100px;" maxlength="10" />
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">If resend is selected, resend after how many days of non-response? Note that this will only be resent 1 time.</span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_RESENDISSELECTEDRESENDAFTERHOWMANYDAYS_TIPS">If resend is selected, resend after how many days of non-response? Note that this will only be resent 1 time.</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Randomization: </td>
|
||||
<td class="label" data-lgid="P_WOS_RANDOMIZATION_COLON">Randomization: </td>
|
||||
<td colspan="4">
|
||||
<input id="dialog_randomization" type="text" style="width: 100px;" maxlength="10" />
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">Send 1 survey for every how many completed work orders? Note that if a work order is selected that has no valid contacts or all contacts are opted out, that work order will not be counted in the randomization. </span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_SENDSURVEYHOWMANTCOMPLEEDWORKORDER_TIPS">Send 1 survey for every how many completed work orders? Note that if a work order is selected that has no valid contacts or all contacts are opted out, that work order will not be counted in the randomization. </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Exclude Specific Work Order Types:</td>
|
||||
<td class="label" data-lgid="P_WOS_EXCLUDESPECIFICWORKORDERTYPES_COLON">Exclude Specific Work Order Types:</td>
|
||||
<td colspan="4">
|
||||
<div id="dialog_wotype" style="width: 320px; float: left;" class="dropdown"></div>
|
||||
<div style="float: left; padding-left: 5px;">
|
||||
<span class="sbutton iconquestion" style="padding-right: 0px;"></span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="XXXX">To exclude specific work order types (ie, Internal) select from the dropdown here. Multi-Select is allowed.</span>
|
||||
<span class="span_title" style="color: gray; display: none;" data-lgid="P_WOS_TOEXCLUDESPECIFICWORKORDERTYPES_TIPS">To exclude specific work order types (ie, Internal) select from the dropdown here. Multi-Select is allowed.</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_XXXX">Survey Send Times:</td>
|
||||
<td class="label" data-lgid="P_WOS_SURVEYSENDTIMES_COLON">Survey Send Times:</td>
|
||||
<td colspan="4"></td>
|
||||
</tr>
|
||||
<tr class="tdDays">
|
||||
@ -464,7 +448,7 @@
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Start Time:</td>
|
||||
<td class="label" data-lgid="P_CM_STARTTIME_COLON">Start Time:</td>
|
||||
<td colspan="5">
|
||||
<select id="smswt_starttimehour" style="width: 48px;">
|
||||
</select>
|
||||
@ -478,7 +462,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">End Time:</td>
|
||||
<td class="label" data-lgid="P_CM_ENDTIME_COLON">End Time:</td>
|
||||
<td colspan="5">
|
||||
<select id="smswt_endtimehour" style="width: 48px;">
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user