.
This commit is contained in:
@ -188,16 +188,15 @@ define([], function () {
|
||||
};
|
||||
var p = [false, htmlencode(JSON.stringify(item))];
|
||||
inspectionrequest('UpdateFuelReportHeaderFooter', JSON.stringify(p), function (r) {
|
||||
loading.hide();
|
||||
if (r == 'OK') {
|
||||
showAlert(GetTextByKey("P_MV_SAVSUCCESSFULLY", 'Saved successfully.'), alerttitle, null, function () {
|
||||
loading.fadeOut(100);
|
||||
if (exit) {
|
||||
showRightPopup(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
showAlert(GetTextByKey("P_IPT_FUELRPT_SAVEERROR", 'Failed to save fuel report page settings.'), alerttitle, null, function () {
|
||||
loading.fadeOut(100);
|
||||
});
|
||||
}
|
||||
}, 1000);
|
||||
|
@ -46,12 +46,12 @@ define(['modules/sections/section', 'modules/sections/addsection'], function (Se
|
||||
dataheader.append('<div style="width:60px; flex-shrink: 0"></div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 200px">' + GetTextByKey("P_IPT_NAME", "Name") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 310px">' + GetTextByKey("P_IPT_DISPLAYTEXT", "Display Text") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 420px">' + GetTextByKey("P_IPT_TYPE", "Type") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 400px">' + GetTextByKey("P_IPT_TYPE", "Type") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 80px; text-align: center">' + GetTextByKey("P_IPT_REQUIRED", "Required") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 100px; text-align: center">' + GetTextByKey("P_IPT_CANCOMMENT", "Can Comment") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 100px; text-align: center">' + GetTextByKey("P_IPT_ISIMPORTANT", "Is Important") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 140px">' + GetTextByKey("P_IPT_CUSTOMERVISIBLE", "Customer Visible") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 140px">' + GetTextByKey("P_IPT_SEVERITYLEVEL", "Severity Level") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 65px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_XXX", "Include Comment") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 70px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_ISIMPORTANT", "Is Important") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 70px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_CUSTOMERVISIBLE", "Customer Visible") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 80px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_SEVERITYLEVEL", "Severity Level") + '</div>');
|
||||
dataheader.append('<div style="flex-grow: 1" style="width: 160px">' + GetTextByKey("P_IPT_NOTES", "Notes") + '</div>');
|
||||
if (sectiontype === 0)
|
||||
dataheader.append('<div class="question-cell" style="width: 120px;">' + GetTextByKey("P_IPT_CREATEDBY", "Created By") + '</div>');
|
||||
|
@ -27,7 +27,7 @@
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
var list_columns = [
|
||||
{ name: 'Selected', caption: "", valueIndex: 'Selected', type: 3, css: { 'width': 30, 'text-align': 'center' } },
|
||||
{ name: 'Selected', caption: "", valueIndex: 'Selected', type: 3, css: { 'width': 45, 'text-align': 'center' } },
|
||||
{ name: 'TemplateName', caption: GetTextByKey("P_TEMPLATE", "Template"), valueIndex: 'Name', css: { 'width': 320, 'text-align': 'left' } },
|
||||
{ name: 'AssetName', caption: GetTextByKey("P_IPT_NOTES", "Notes"), valueIndex: 'Notes', css: { 'width': 400, 'text-align': 'left' } }
|
||||
];
|
||||
@ -84,7 +84,7 @@
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
var list_columns = [
|
||||
{ name: 'Selected', caption: "", valueIndex: 'Selected', type: 3, css: { 'width': 30, 'text-align': 'center' } },
|
||||
{ name: 'Selected', caption: "", valueIndex: 'Selected', type: 3, css: { 'width': 45, 'text-align': 'center' } },
|
||||
{ name: 'SectionName', caption: GetTextByKey("P_IPT_SECTION", "Section"), valueIndex: 'ItemName', css: { 'width': 320, 'text-align': 'left' } },
|
||||
{ name: 'AssetName', caption: GetTextByKey("P_IPT_NOTES", "Notes"), valueIndex: 'Notes', css: { 'width': 400, 'text-align': 'left' } }
|
||||
];
|
||||
@ -247,10 +247,12 @@
|
||||
this.content = content;
|
||||
var funcs = $('<div class="function_title"></div>');
|
||||
var btn = $('<span class="sbutton iconsave">' + GetTextByKey('P_IPT_IMPORT', 'Import') + '</span>').click(function () {
|
||||
showConfirm(GetTextByKey("P_IPT_DOYOUWANTTOOVERWRITETHEITEMSWHICHHAVEANEWERVERSION", 'Do you want to overwrite the items which have a higher version?'), GetTextByKey("P_IPT_IMPORTPACKAGE", 'Import Package'), function () {
|
||||
showConfirmYesNoCancel(GetTextByKey("P_IPT_DOYOUWANTTOOVERWRITETHEITEMSWHICHHAVEANEWERVERSION", 'Do you want to overwrite the items which have a higher version?'), GetTextByKey("P_IPT_IMPORTPACKAGE", 'Import Package'), function () {
|
||||
onImport(_this, 1);
|
||||
}, function () {
|
||||
onImport(_this, 0);
|
||||
}, function () {
|
||||
return;
|
||||
});
|
||||
});
|
||||
funcs.append(btn);
|
||||
|
@ -85,6 +85,33 @@ define(['modules/inspects/inspect', 'modules/inspects/editinspection'], function
|
||||
}
|
||||
});
|
||||
func.append(iconResetPivots);
|
||||
|
||||
var iconprints = $('<span class="sbutton iconprint">' + GetTextByKey("P_IPT_XXXXXX", "Print") + '</span>').click(function () {
|
||||
for (var i = 0; i < grid_dt.source.length; i++) {
|
||||
var inspect = grid_dt.source[i].Values;
|
||||
if (inspect.Selected) {
|
||||
if (navigator.userAgent.indexOf('Firefox') >= 0 ||
|
||||
navigator.userAgent.indexOf('Opera') >= 0) {
|
||||
window.open("Inspection.aspx?rt=f&t=2&id=" + inspect.Id + "&team=" + (teamintelligence ? 1 : 0), '_blank');
|
||||
}
|
||||
else
|
||||
openPrintFrame(inspect.Id);
|
||||
}
|
||||
}
|
||||
});
|
||||
func.append(iconprints);
|
||||
|
||||
var icondownloads = $('<span class="sbutton icondownload">' + GetTextByKey("P_IPT_XXXXXX", "Download") + '</span>').click(function () {
|
||||
for (var i = 0; i < grid_dt.source.length; i++) {
|
||||
var inspect = grid_dt.source[i].Values;
|
||||
if (inspect.Selected) {
|
||||
openDownloadFrame(inspect.Id);
|
||||
}
|
||||
}
|
||||
});
|
||||
func.append(icondownloads);
|
||||
|
||||
|
||||
header.append(func)
|
||||
|
||||
return header;
|
||||
@ -121,7 +148,18 @@ define(['modules/inspects/inspect', 'modules/inspects/editinspection'], function
|
||||
{ name: 'Print', caption: "", css: { 'width': 30, 'text-align': 'center' } },
|
||||
{ name: 'ViewChangeHistory', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
];
|
||||
var columns = [];
|
||||
var columns = [
|
||||
{
|
||||
// checkbox
|
||||
name: 'check',
|
||||
key: 'Selected',
|
||||
width: 45,
|
||||
align: 'center',
|
||||
sortable: false,
|
||||
allcheck: true,
|
||||
type: 3
|
||||
}
|
||||
];
|
||||
// head
|
||||
for (var hd in list_columns) {
|
||||
var col = {};
|
||||
@ -246,7 +284,7 @@ define(['modules/inspects/inspect', 'modules/inspects/editinspection'], function
|
||||
if (item.Id === "")
|
||||
return htmldecode(item.WorkOrderNumber);
|
||||
|
||||
var div = $('<div class="dropdown" style="width: 200px;"></div>');
|
||||
var div = $('<div class="dropdown" style="width: 185px;"></div>');
|
||||
div.dropdown(item.WorkOrders || [{ Id: -1, WorkOrderNumber: "Not Assigned" }], {
|
||||
search: false,
|
||||
textKey: 'WorkOrderNumber',
|
||||
|
@ -273,7 +273,7 @@
|
||||
$('<option value="[Model]">Model</option>'),
|
||||
$('<option value="[VIN]">VIN/SN</option>'),
|
||||
$('<option value="[Work_Order_Number]">Work Order Number</option>'),
|
||||
$('<option value="[Work_Order_Type]">Work Order Type</option>'),
|
||||
$('<option value="[Work_Order_Type]">Work Order Type</option>'),
|
||||
$('<option value="[Parts_Order_Number]">Parts Order Number</option>'),
|
||||
$('<option value="[Year]">Year</option>')
|
||||
);
|
||||
@ -318,9 +318,12 @@
|
||||
}
|
||||
|
||||
function editLayout(info) {
|
||||
$('#right_popup').load('js/modules/layouts/addlayout.html?v=2', function () {
|
||||
$('#right_popup').load('js/modules/layouts/addlayout.html?v=5', function () {
|
||||
var modified = false;
|
||||
var deleteIcon = false;
|
||||
var deleteCenterIcon = false;
|
||||
var deleteRightIcon = false;
|
||||
initColorCtrl();
|
||||
var content = $(this).applyFleetLanguageText(true);
|
||||
content.find('.button-exit').on('click', function () {
|
||||
if (modified) {
|
||||
@ -342,7 +345,7 @@
|
||||
}
|
||||
});
|
||||
content.find('.button-icon-upload').on('click', function () {
|
||||
content.find('.icon-file file').remove();
|
||||
content.find('.icon-file input[type="file"]').remove();
|
||||
$('<input type="file" accept="image/png,image/jpeg" />')
|
||||
.hide().appendTo(content.find('.icon-file'))
|
||||
.on('change', function () {
|
||||
@ -365,7 +368,78 @@
|
||||
content.find('.button-icon-delete').on('click', function () {
|
||||
deleteIcon = true;
|
||||
content.find('.img-icon-filename').remove();
|
||||
content.find('.icon-file input[type="file"]').remove();
|
||||
});
|
||||
|
||||
content.find('.button-icon-centerupload').on('click', function () {
|
||||
content.find('.icon-centerfile input[type="file"]').remove();
|
||||
$('<input type="file" accept="image/png,image/jpeg" />')
|
||||
.hide().appendTo(content.find('.icon-centerfile'))
|
||||
.on('change', function () {
|
||||
if (!/image\/\w+/.test(this.files[0].type)) {
|
||||
showAlert(GetTextByKey("P_LAYOUT_UPLOADICONTIPS", 'The file type for the logo is invalid. The file must be JPG or PNG.'), GetTextByKey('P_LAYOUT_SAVEINSPECTLAYOUT', 'Save Inspection Layout'));
|
||||
$(this).remove();
|
||||
return;
|
||||
}
|
||||
var file = this.files[0];
|
||||
var reader = new FileReader();
|
||||
reader.readAsDataURL(file);
|
||||
reader.onload = function (e) {
|
||||
setTimeout(function () {
|
||||
content.find('.img-icon-centerfilename').remove();
|
||||
$('<img class="img-icon-centerfilename" />').attr('src', e.target.result).insertAfter(content.find('.icon-centerfile-title'));
|
||||
});
|
||||
};
|
||||
}).click();
|
||||
});
|
||||
content.find('.button-icon-centerdelete').on('click', function () {
|
||||
deleteCenterIcon = true;
|
||||
content.find('.img-icon-centerfilename').remove();
|
||||
content.find('.icon-centerfile input[type="file"]').remove();
|
||||
});
|
||||
|
||||
content.find('.button-icon-rightupload').on('click', function () {
|
||||
content.find('.icon-rightfile input[type="file"]').remove();
|
||||
$('<input type="file" accept="image/png,image/jpeg" />')
|
||||
.hide().appendTo(content.find('.icon-rightfile'))
|
||||
.on('change', function () {
|
||||
if (!/image\/\w+/.test(this.files[0].type)) {
|
||||
showAlert(GetTextByKey("P_LAYOUT_UPLOADICONTIPS", 'The file type for the logo is invalid. The file must be JPG or PNG.'), GetTextByKey('P_LAYOUT_SAVEINSPECTLAYOUT', 'Save Inspection Layout'));
|
||||
$(this).remove();
|
||||
return;
|
||||
}
|
||||
var file = this.files[0];
|
||||
var reader = new FileReader();
|
||||
reader.readAsDataURL(file);
|
||||
reader.onload = function (e) {
|
||||
setTimeout(function () {
|
||||
content.find('.img-icon-rightfilename').remove();
|
||||
$('<img class="img-icon-rightfilename" />').attr('src', e.target.result).insertAfter(content.find('.icon-rightfile-title'));
|
||||
});
|
||||
};
|
||||
}).click();
|
||||
});
|
||||
content.find('.button-icon-rightdelete').on('click', function () {
|
||||
deleteRightIcon = true;
|
||||
content.find('.img-icon-rightfilename').remove();
|
||||
content.find('.icon-rightfile input[type="file"]').remove();
|
||||
});
|
||||
|
||||
content.find('#layout-style').on('change', function () {
|
||||
var style = $('#layout-style').val();
|
||||
if (parseInt(style) === 2) {
|
||||
$('#layout-picturesdisplay').val(1);
|
||||
$('#layout-picturesdisplay').prop('disabled', true);
|
||||
}
|
||||
else {
|
||||
$('#layout-picturesdisplay').prop('disabled', false);
|
||||
}
|
||||
});
|
||||
content.find('#layout-highlightcolor-input').keyup(null, function () {
|
||||
$("#layout-highlightcolor-selector").spectrum("set", $('#layout-highlightcolor-input').val());
|
||||
})
|
||||
|
||||
|
||||
var save = function (exit) {
|
||||
return function () {
|
||||
var title = GetTextByKey('P_LAYOUT_SAVEINSPECTLAYOUT', 'Save Inspection Layout');
|
||||
@ -379,20 +453,26 @@
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
var layout = {
|
||||
Id: info && info.Id,
|
||||
Target: layouts.isteam ? 1 : 0,
|
||||
Name: name,
|
||||
IncludeLOGO: content.find('#layout-include-logo').prop('checked'),
|
||||
Notes: content.find('.text-layout-notes').val(),
|
||||
PageHeaderLeft: content.find('.layout-headers-left .editor-content').val(),
|
||||
PageHeaderCenter: content.find('.layout-headers-middle .editor-content').val(),
|
||||
PageHeaderRight: content.find('.layout-headers-right .editor-content').val(),
|
||||
PageFooterLeft: content.find('.layout-footers-left .editor-content').val(),
|
||||
PageFooterCenter: content.find('.layout-footers-middle .editor-content').val(),
|
||||
PageFooterRight: content.find('.layout-footers-right .editor-content').val()
|
||||
PageFooterRight: content.find('.layout-footers-right .editor-content').val(),
|
||||
Style: content.find('#layout-style').val(),
|
||||
Spacing: content.find('#layout-spacing').val(),
|
||||
PicturesDisplay: content.find('#layout-picturesdisplay').val(),
|
||||
CaptionImages: content.find('#layout-captionimages').prop('checked'),
|
||||
Divider: content.find('#layout-divider').val(),
|
||||
HighlightColor: content.find('#layout-highlightcolor-input').val()
|
||||
};
|
||||
if (layout.Style === "")
|
||||
layout.Style = -1;
|
||||
var data = new FormData();
|
||||
var files = content.find('.icon-file input[type="file"]').prop('files');
|
||||
if (files && files[0]) {
|
||||
@ -401,6 +481,23 @@
|
||||
var logo = content.find('.img-icon-filename').prop('src');
|
||||
layout.LOGO = logo.substr(logo.indexOf(';base64,') + 8);
|
||||
}
|
||||
|
||||
var centerfiles = content.find('.icon-centerfile input[type="file"]').prop('files');
|
||||
if (centerfiles && centerfiles[0]) {
|
||||
data.append('iconCenterFile', centerfiles && centerfiles[0]);
|
||||
} else if (!deleteCenterIcon) {
|
||||
var logo = content.find('.img-icon-centerfilename').prop('src');
|
||||
layout.CenterLOGO = logo.substr(logo.indexOf(';base64,') + 8);
|
||||
}
|
||||
|
||||
var rightfiles = content.find('.icon-rightfile input[type="file"]').prop('files');
|
||||
if (rightfiles && rightfiles[0]) {
|
||||
data.append('iconRightFile', rightfiles && rightfiles[0]);
|
||||
} else if (!deleteRightIcon) {
|
||||
var logo = content.find('.img-icon-rightfilename').prop('src');
|
||||
layout.RightLOGO = logo.substr(logo.indexOf(';base64,') + 8);
|
||||
}
|
||||
|
||||
data.append('MethodName', 'SaveInspectLayout');
|
||||
data.append('ClientData', encodeURIComponent(JSON.stringify(layout)));
|
||||
$.ajax({
|
||||
@ -459,10 +556,15 @@
|
||||
var onchange = function () { modified = true };
|
||||
if (info != null) {
|
||||
content.find('.text-layout-name').val(info.Name);
|
||||
content.find('#layout-include-logo').prop('checked', info.IncludeLOGO);
|
||||
if (info.LOGO != null) {
|
||||
content.find('.img-icon-filename').attr('src', 'data:image/png;base64,' + info.LOGO);
|
||||
}
|
||||
if (info.CenterLOGO != null) {
|
||||
content.find('.img-icon-centerfilename').attr('src', 'data:image/png;base64,' + info.CenterLOGO);
|
||||
}
|
||||
if (info.RightLOGO != null) {
|
||||
content.find('.img-icon-rightfilename').attr('src', 'data:image/png;base64,' + info.RightLOGO);
|
||||
}
|
||||
content.find('.text-layout-notes').val(info.Notes);
|
||||
content.find('.layout-headers-left .editor-content').val(info.PageHeaderLeft);
|
||||
content.find('.layout-headers-middle .editor-content').val(info.PageHeaderCenter);
|
||||
@ -470,9 +572,17 @@
|
||||
content.find('.layout-footers-left .editor-content').val(info.PageFooterLeft);
|
||||
content.find('.layout-footers-middle .editor-content').val(info.PageFooterCenter);
|
||||
content.find('.layout-footers-right .editor-content').val(info.PageFooterRight);
|
||||
|
||||
content.find('#layout-style').val(info.Style);
|
||||
content.find('#layout-spacing').val(info.Spacing);
|
||||
content.find('#layout-picturesdisplay').val(info.PicturesDisplay);
|
||||
content.find('#layout-captionimages').prop('checked', info.CaptionImages);
|
||||
content.find('#layout-divider').val(info.Divider);
|
||||
content.find('#layout-highlightcolor-input').val(info.HighlightColor);
|
||||
content.find('#layout-highlightcolor-selector').spectrum("set", info.HighlightColor);
|
||||
}
|
||||
content.find('.text-layout-name').on('change', onchange);
|
||||
content.find('#layout-include-logo').on('change', onchange);
|
||||
//content.find('#layout-style').on('change', onchange);
|
||||
content.find('.text-layout-notes').on('change', onchange);
|
||||
content.find('.layout-headers-left .editor-content').on('change', onchange);
|
||||
content.find('.layout-headers-middle .editor-content').on('change', onchange);
|
||||
@ -480,6 +590,12 @@
|
||||
content.find('.layout-footers-left .editor-content').on('change', onchange);
|
||||
content.find('.layout-footers-middle .editor-content').on('change', onchange);
|
||||
content.find('.layout-footers-right .editor-content').on('change', onchange);
|
||||
content.find('#layout-style').on('change', onchange);
|
||||
content.find('#layout-spacing').on('change', onchange);
|
||||
content.find('#layout-picturesdisplay').on('change', onchange);
|
||||
content.find('#layout-captionimages').on('change', onchange);
|
||||
content.find('#layout-divider').on('change', onchange);
|
||||
content.find('#layout-highlightcolor-input').on('change', onchange);
|
||||
|
||||
content.find('.text-layout-name').focus();
|
||||
});
|
||||
@ -509,5 +625,59 @@
|
||||
}
|
||||
});
|
||||
|
||||
function initColorCtrl() {
|
||||
$('#layout-highlightcolor-selector').spectrum({
|
||||
allowEmpty: true,
|
||||
color: "#FFF",
|
||||
showInput: true,
|
||||
containerClassName: "full-spectrum",
|
||||
showInitial: true,
|
||||
showPalette: true,
|
||||
showSelectionPalette: true,
|
||||
showAlpha: true,
|
||||
maxPaletteSize: 10,
|
||||
preferredFormat: "hex",
|
||||
localStorageKey: "spectrum.demo",
|
||||
chooseText: GetTextByKey("P_IPT_OK", "OK"),
|
||||
cancelText: GetTextByKey("P_IPT_CANCEL", "Cancel"),
|
||||
clearText: GetTextByKey("P_SPECTRUM_CLEARCOLORSELECTION", "Clear Color Selection"),
|
||||
noColorSelectedText: GetTextByKey("P_SPECTRUM_NOCOLORSELECTED", "No Color Selected"),
|
||||
move: function (color) {
|
||||
if (color)
|
||||
$('#layout-highlightcolor-input').val(color.toHexString().toUpperCase()); // #ff0000
|
||||
},
|
||||
show: function () {
|
||||
|
||||
},
|
||||
beforeShow: function () {
|
||||
|
||||
},
|
||||
hide: function (color) {
|
||||
if (color) {
|
||||
$('#layout-highlightcolor-input').val(color.toHexString().toUpperCase()); // #ff0000
|
||||
}
|
||||
},
|
||||
|
||||
palette: [
|
||||
["rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/
|
||||
"rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ "rgb(255, 255, 255)"],
|
||||
["rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)",
|
||||
"rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)"],
|
||||
["rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)",
|
||||
"rgb(208, 224, 227)", "rgb(201, 218, 248)", "rgb(207, 226, 243)", "rgb(217, 210, 233)", "rgb(234, 209, 220)",
|
||||
"rgb(221, 126, 107)", "rgb(234, 153, 153)", "rgb(249, 203, 156)", "rgb(255, 229, 153)", "rgb(182, 215, 168)",
|
||||
"rgb(162, 196, 201)", "rgb(164, 194, 244)", "rgb(159, 197, 232)", "rgb(180, 167, 214)", "rgb(213, 166, 189)",
|
||||
"rgb(204, 65, 37)", "rgb(224, 102, 102)", "rgb(246, 178, 107)", "rgb(255, 217, 102)", "rgb(147, 196, 125)",
|
||||
"rgb(118, 165, 175)", "rgb(109, 158, 235)", "rgb(111, 168, 220)", "rgb(142, 124, 195)", "rgb(194, 123, 160)",
|
||||
"rgb(166, 28, 0)", "rgb(204, 0, 0)", "rgb(230, 145, 56)", "rgb(241, 194, 50)", "rgb(106, 168, 79)",
|
||||
"rgb(69, 129, 142)", "rgb(60, 120, 216)", "rgb(61, 133, 198)", "rgb(103, 78, 167)", "rgb(166, 77, 121)",
|
||||
/*"rgb(133, 32, 12)", "rgb(153, 0, 0)", "rgb(180, 95, 6)", "rgb(191, 144, 0)", "rgb(56, 118, 29)",
|
||||
"rgb(19, 79, 92)", "rgb(17, 85, 204)", "rgb(11, 83, 148)", "rgb(53, 28, 117)", "rgb(116, 27, 71)",*/
|
||||
"rgb(91, 15, 0)", "rgb(102, 0, 0)", "rgb(120, 63, 4)", "rgb(127, 96, 0)", "rgb(39, 78, 19)",
|
||||
"rgb(12, 52, 61)", "rgb(28, 69, 135)", "rgb(7, 55, 99)", "rgb(32, 18, 77)", "rgb(76, 17, 48)"]
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
return layouts;
|
||||
});
|
@ -8,30 +8,74 @@
|
||||
<span class="sbutton iconexit button-exit" data-lgid="P_IPT_SAVE2">Exit Without Saving</span>
|
||||
</div>
|
||||
<div class="page_title" data-lgid="P_LAYOUT_GENERAL">General</div>
|
||||
<div style="display: flex">
|
||||
<div class="settings-line">
|
||||
<span>
|
||||
<span data-lgid="P_LAYOUT_NAMECOLON">Layout Name:</span>
|
||||
<b style="color: red">*</b>
|
||||
<input type="text" class="text-layout-name" maxlength="200" />
|
||||
</span>
|
||||
<span>
|
||||
<label for="layout-include-logo" data-lgid="P_LAYOUT_INCLUDELOGO">Include Logo:</label>
|
||||
<input type="checkbox" id="layout-include-logo" />
|
||||
</span>
|
||||
<div class="settings-line">
|
||||
<span>
|
||||
<span data-lgid="P_LAYOUT_NAMECOLON">Layout Name:</span>
|
||||
<b style="color: red">*</b>
|
||||
<input type="text" class="text-layout-name" maxlength="200" />
|
||||
|
||||
<label data-lgid="P_LAYOUT_XXX" class="select-layout-name">Style:</label>
|
||||
<select id="layout-style" class="select-layout">
|
||||
<option value="0">Standard</option>
|
||||
<option value="1">Compressed</option>
|
||||
<option value="2">Split</option>
|
||||
</select>
|
||||
</span>
|
||||
<span>
|
||||
<span class="icon-file">
|
||||
<span class="icon-file-title" data-lgid="P_LAYOUT_ICONFILENAME">Logo file:</span>
|
||||
<span class="icon-file-title" data-lgid="P_LAYOUT_XX">Left Logo file:</span>
|
||||
<img class="img-icon-filename" />
|
||||
<span class="svg-button button-icon-upload"><svg><use href="#symbol-upload"></use></svg></span>
|
||||
<span class="svg-button button-icon-delete"><svg><use href="#symbol-close"></use></svg></span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="settings-line" style="flex: 1 1 auto">
|
||||
<span style="display: flex">
|
||||
<span data-lgid="P_LAYOUT_NOTESCOLON" style="vertical-align:top; white-space:nowrap">Notes:</span>
|
||||
<textarea class="text-layout-notes" style="height:100px; width:100%; box-sizing:border-box; margin-left:8px"></textarea>
|
||||
<span class="icon-centerfile" style="margin-left:30px;">
|
||||
<span class="icon-centerfile-title" data-lgid="P_LAYOUT_XXX">Center Logo file:</span>
|
||||
<img class="img-icon-centerfilename" />
|
||||
<span class="svg-button button-icon-centerupload"><svg><use href="#symbol-upload"></use></svg></span>
|
||||
<span class="svg-button button-icon-centerdelete"><svg><use href="#symbol-close"></use></svg></span>
|
||||
</span>
|
||||
</div>
|
||||
<span class="icon-rightfile" style="margin-left:30px;">
|
||||
<span class="icon-rightfile-title" data-lgid="P_LAYOUT_XXX">Right Logo file:</span>
|
||||
<img class="img-icon-rightfilename" />
|
||||
<span class="svg-button button-icon-rightupload"><svg><use href="#symbol-upload"></use></svg></span>
|
||||
<span class="svg-button button-icon-rightdelete"><svg><use href="#symbol-close"></use></svg></span>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span style="display: flex">
|
||||
<span data-lgid="P_LAYOUT_NOTESCOLON" style="vertical-align:top; white-space:nowrap">Notes:</span>
|
||||
<textarea class="text-layout-notes" style="height:100px; width:100%; box-sizing:border-box; margin-left:8px"></textarea>
|
||||
</span>
|
||||
</div>
|
||||
<div class="page_title" data-lgid="P_LAYOUT_XXX">Options</div>
|
||||
<div class="settings-line">
|
||||
<span>
|
||||
<span data-lgid="P_LAYOUT_XXX">Spacing:</span>
|
||||
<select id="layout-spacing" class="select-layout">
|
||||
<option value="0" data-lgid="P_XXX">Single Space</option>
|
||||
<option value="1" data-lgid="P_XXX">Double Space</option>
|
||||
</select>
|
||||
|
||||
<span data-lgid="P_LAYOUT_XXX" class="select-layout-name">Pictures:</span>
|
||||
<select id="layout-picturesdisplay" class="select-layout" style="width:140px;">
|
||||
<option value="0" data-lgid="P_XXX">Displayed As Taken</option>
|
||||
<option value="1" data-lgid="P_XXX">Displayed At Bottom</option>
|
||||
</select>
|
||||
|
||||
<span data-lgid="P_LAYOUT_XXX" class="select-layout-name">Caption Images:</span>
|
||||
<input type="checkbox" id="layout-captionimages" />
|
||||
|
||||
<span data-lgid="P_LAYOUT_XXX" class="select-layout-name">Divider:</span>
|
||||
<select id="layout-divider" class="select-layout" style="width:80px;">
|
||||
<option value="0" data-lgid="P_XXX">None</option>
|
||||
<option value="1" data-lgid="P_XXX">Line</option>
|
||||
<option value="2" data-lgid="P_XXX">Grid</option>
|
||||
</select>
|
||||
|
||||
<span data-lgid="P_LAYOUT_XXX" class="select-layout-name">VIP Questions/Section Highlight Color:</span>
|
||||
<input id="layout-highlightcolor-input" style="width:60px;" maxlength="7" />
|
||||
<input id="layout-highlightcolor-selector" />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="page_title" data-lgid="P_IPT_FUELRPT_HEADER">Page Headers</div>
|
||||
|
@ -83,7 +83,7 @@ define(['common'], function (Common) {
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label">' + GetTextByKey("P_IPT_NAME_COLON", "Name:") + '<span class="redasterisk">*</span></td>');
|
||||
namecontrol = $('<input type="text" maxlength="100"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(namecontrol, _this.question);
|
||||
});
|
||||
@ -93,7 +93,7 @@ define(['common'], function (Common) {
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label">' + GetTextByKey("P_IPT_DISPLAYTEXT_COLON", "Display Text:") + '<span class="redasterisk">*</span></td>');
|
||||
displaytextcontrol = $('<input type="text" maxlength="1000" />');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(displaytextcontrol, _this.question);
|
||||
});
|
||||
@ -141,7 +141,7 @@ define(['common'], function (Common) {
|
||||
tr = $('<tr></tr>');
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label">Notes:</td>');
|
||||
notescontrol = $('<textarea id="dialog_notes" class="inputbox" maxlength="1000" style="width: 400px; margin-top: 6px;"></textarea>');
|
||||
notescontrol = $('<textarea id="dialog_notes" maxlength="1000" style="width: 400px; margin-top: 6px;"></textarea>');
|
||||
tr.append($('<td></td>').append(notescontrol));
|
||||
|
||||
return div_main;
|
||||
@ -187,7 +187,7 @@ define(['common'], function (Common) {
|
||||
tb.append(tr);
|
||||
var optext = $('<input type="text" style="width:240px;margin-left:5px;"/>');
|
||||
this.dialog_text = optext;
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(optext, _this.question);
|
||||
});
|
||||
|
@ -82,7 +82,7 @@ define(['common'], function (Common) {
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label" style="vertical-align:middle;">' + GetTextByKey("P_IPT_DISPLAYTEXT_COLON", "Display Text:") + '<span class="redasterisk">*</span></td>');
|
||||
displaytextcontrol = $('<input type="text" maxlength="200" autocomplete="off"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(displaytextcontrol, _this.section);
|
||||
});
|
||||
@ -91,7 +91,7 @@ define(['common'], function (Common) {
|
||||
tr = $('<tr></tr>');
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label">' + GetTextByKey("P_IPT_NOTES_COLON", "Notes:") + '</td>');
|
||||
notescontrol = $('<textarea id="dialog_notes" class="inputbox" maxlength="500" autocomplete="off" style="width: 400px; margin-top: 6px;"></textarea>');
|
||||
notescontrol = $('<textarea id="dialog_notes" maxlength="500" autocomplete="off" style="width: 400px; margin-top: 6px;"></textarea>');
|
||||
tr.append($('<td></td>').append(notescontrol));
|
||||
|
||||
return div_main;
|
||||
|
@ -48,7 +48,7 @@
|
||||
tb.append(tr);
|
||||
var optext = $('<input type="text" class="form-control" style="width:226px;margin-left:5px;"/>');
|
||||
this.dialog_text = optext;
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(optext);
|
||||
});
|
||||
|
@ -64,7 +64,7 @@ define(['modules/sections/addquestion', 'modules/sections/option', 'common', 'mo
|
||||
|
||||
if (this.index % 2 == 1)
|
||||
qholder.addClass('holder-even');
|
||||
var drag = $('<div class="question-icon" style="width:30px;"><em class="spanbtn iconmove rowdrag"></em></div>');
|
||||
var drag = $('<div class="question-icon" style="width:30px;" title="' + GetTextByKey("P_IPT_XXX", "Move Question") + '"><em class="spanbtn iconmove rowdrag"></em></div>');
|
||||
qholder.append(drag);
|
||||
if (!_this.section.IsLink && sectiontype == 1) {
|
||||
drag.attr('draggable', true);
|
||||
@ -108,14 +108,14 @@ define(['modules/sections/addquestion', 'modules/sections/option', 'common', 'mo
|
||||
|
||||
qholder.append('<div class="question-icon" style="width:30px;"><em class="fa"></em></div>');
|
||||
_this.txtName = $('<input type="text" class="question-input" maxlength="100" autocomplete="off" style="width:146px;" />');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.txtName, _this.question);
|
||||
});
|
||||
qholder.append($('<div class="question-cell question-name" style="width: 190px;padding-left:10px;"></div>').append(this.txtName).append(addiText));
|
||||
|
||||
_this.txtDisplayText = $('<input type="text" class="question-input" maxlength="200" autocomplete="off" style="width:236px;" />');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.txtDisplayText, _this.question);
|
||||
});
|
||||
@ -137,16 +137,16 @@ define(['modules/sections/addquestion', 'modules/sections/option', 'common', 'mo
|
||||
qholder.append($('<div class="question-cell question-required" style="width: 80px; text-align: center"></div>').append(this.chkIsRequired));
|
||||
|
||||
_this.chkCanComment = $('<input type="checkbox" />');
|
||||
qholder.append($('<div class="question-cell question-comment" style="width: 100px; text-align: center"></div>').append(this.chkCanComment));
|
||||
qholder.append($('<div class="question-cell question-comment" style="width: 65px; text-align: center"></div>').append(this.chkCanComment));
|
||||
|
||||
_this.chkIsImportant = $('<input type="checkbox" />');
|
||||
qholder.append($('<div class="question-cell question-important" style="width: 100px; text-align: center"></div>').append(this.chkIsImportant));
|
||||
qholder.append($('<div class="question-cell question-important" style="width: 70px; text-align: center"></div>').append(this.chkIsImportant));
|
||||
|
||||
_this.chkCustomerVisible = $('<input type="checkbox" />');
|
||||
qholder.append($('<div class="question-cell question-important" style="width: 140px; text-align: center"></div>').append(this.chkCustomerVisible));
|
||||
qholder.append($('<div class="question-cell question-important" style="width: 70px; text-align: center"></div>').append(this.chkCustomerVisible));
|
||||
|
||||
_this.selSeverityLevel = createSeverityLevel().addClass('question-input').css('width', 130);
|
||||
qholder.append($('<div class="question-cell question-security" style="width: 140px"></div>').append(this.selSeverityLevel));
|
||||
_this.selSeverityLevel = createSeverityLevel().addClass('question-input').css('width', 70);
|
||||
qholder.append($('<div class="question-cell question-security" style="width: 80px"></div>').append(this.selSeverityLevel));
|
||||
|
||||
_this.txtNotes = $('<textarea class="question-input" maxlength="500" autocomplete="off" style="width:95%;margin-top:5px;"></textarea>');
|
||||
qholder.append($('<div class="question-cell question-notes" style="width: 160px;white-space:normal;"></div>').append(this.txtNotes));
|
||||
@ -214,7 +214,7 @@ define(['modules/sections/addquestion', 'modules/sections/option', 'common', 'mo
|
||||
|
||||
td = $('<td></td>');
|
||||
tr.append(td);
|
||||
_this.btnoption = $('<span class="spanbtn iconangleleft" style="font-size:18px;"></span>');
|
||||
_this.btnoption = $('<span class="spanbtn iconangleleft" style="font-size:18px;" title="' + GetTextByKey("P_IPT_XXX","Display Options") + '"></span>');
|
||||
td.append(_this.btnoption);
|
||||
_this.btnoption.click(function () {
|
||||
var icon = $(this);
|
||||
|
@ -38,7 +38,7 @@ define(['modules/sections/question', 'modules/sections/addsection', 'modules/sec
|
||||
}
|
||||
|
||||
if (sectiontype == 1) {
|
||||
var drag = $('<div class="question-icon" style="width:30px;"><em class="spanbtn iconmove rowdrag"></em></div>');
|
||||
var drag = $('<div class="question-icon" style="width:30px;" title="' + GetTextByKey("P_IPT_XXX","Move Section") + '"><em class="spanbtn iconmove rowdrag"></em></div>');
|
||||
holder.append(drag);
|
||||
if (sectiontype == 1) {
|
||||
drag.attr('draggable', true);
|
||||
@ -106,7 +106,7 @@ define(['modules/sections/question', 'modules/sections/addsection', 'modules/sec
|
||||
this.txtName.change(function () {
|
||||
_this.onsave();
|
||||
});
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.txtName, _this.section);
|
||||
});
|
||||
@ -116,7 +116,7 @@ define(['modules/sections/question', 'modules/sections/addsection', 'modules/sec
|
||||
this.txtDisplayText.change(function () {
|
||||
_this.onsave();
|
||||
});
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.txtDisplayText, _this.section);
|
||||
});
|
||||
|
@ -174,7 +174,7 @@ define(['modules/templates/pages', 'modules/templates/filters', 'modules/templat
|
||||
tr = $('<tr class="templatetr"></tr>');
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label" style="width:160px;">' + GetTextByKey("P_IPT_NOTES_COLON", "Notes:") + '</td>');
|
||||
notescontrol = $('<textarea id="dialog_notes" class="inputbox form-control" maxlength="500" autocomplete="off" style="width: 540px; margin-top: 6px;height:80px;"></textarea>');
|
||||
notescontrol = $('<textarea id="dialog_notes" class="form-control" maxlength="500" autocomplete="off" style="width: 540px; margin-top: 6px;height:80px;"></textarea>');
|
||||
tr.append($('<td></td>').append(notescontrol));
|
||||
|
||||
//Email
|
||||
@ -240,7 +240,7 @@ define(['modules/templates/pages', 'modules/templates/filters', 'modules/templat
|
||||
{ name: 'UserName', caption: GetTextByKey("P_IPT_CONTACTNAME", "Contact Name"), valueIndex: 'UserName', css: { 'width': 180, 'text-align': 'left' } },
|
||||
{ name: 'ContactType', caption: GetTextByKey("P_IPT_CONTACTTYPE", "Contact Type"), valueIndex: 'ContactType', css: { 'width': 180, 'text-align': 'left' } },
|
||||
//{ name: 'Text', caption: "Text", valueIndex: 'Text', type: 3, css: { 'width': 45, 'text-align': 'center' } },
|
||||
{ name: 'Selected', caption: GetTextByKey("P_IPT_EMAIL", "Email"), valueIndex: 'Selected', type: 3, css: { 'width': 45, 'text-align': 'center' } }
|
||||
{ name: 'Selected', caption: GetTextByKey("P_IPT_EMAIL", "Email"), valueIndex: 'Selected', type: 3, css: { 'width': 60, 'text-align': 'center' } }
|
||||
];
|
||||
var columns = [];
|
||||
// head
|
||||
|
@ -28,7 +28,7 @@ define(['common'], function (Common) {
|
||||
// checkbox
|
||||
name: 'check',
|
||||
key: 'Selected',
|
||||
width: 30,
|
||||
width: 45,
|
||||
align: 'center',
|
||||
sortable: false,
|
||||
allcheck: true,
|
||||
|
@ -28,7 +28,7 @@ define(['modules/sections/section', 'modules/sections/addsection', 'common', 'mo
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label" style="width:154px;">' + GetTextByKey("P_IPT_NAME_COLON", "Name:") + '<span class="redasterisk">*</span></td>');
|
||||
_this.namecontrol = $('<input type="text" class="form-control" maxlength="100" autocomplete="off"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
var addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.namecontrol);
|
||||
});
|
||||
@ -40,14 +40,14 @@ define(['modules/sections/section', 'modules/sections/addsection', 'common', 'mo
|
||||
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label" style="width:154px;">' + GetTextByKey("P_IPT_NOTES_COLON", "Notes:") + '</td>');
|
||||
_this.notescontrol = $('<textarea id="dialog_notes" class="inputbox form-control" maxlength="500" autocomplete="off" style="width: 540px; margin-top:6px;height:55px;"></textarea>');
|
||||
_this.notescontrol = $('<textarea id="dialog_notes" class="form-control" maxlength="500" autocomplete="off" style="width: 540px; margin-top:6px;height:55px;"></textarea>');
|
||||
tr.append($('<td rowspan="2"></td>').append(_this.notescontrol));
|
||||
|
||||
tr = $('<tr></tr>');
|
||||
tb.append(tr);
|
||||
tr.append('<td class="label" style="width:154px;">' + GetTextByKey("P_IPT_DISPLAYTEXT_COLON", "Display Text:") + '<span class="redasterisk">*</span></td>');
|
||||
_this.displaytextcontrol = $('<input type="text" class="form-control" maxlength="200" autocomplete="off"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_ADDITIONALTEXTS", "Additional Texts") + '"/>');
|
||||
addiText = $('<span class="spanbtn iconmultitext" style="font-size:14px;" title="' + GetTextByKey("P_IPT_XXX", "Language Selection") + '"/>');
|
||||
addiText.click(function () {
|
||||
Common.createMultiTextDialog(_this.displaytextcontrol);
|
||||
});
|
||||
@ -65,7 +65,7 @@ define(['modules/sections/section', 'modules/sections/addsection', 'common', 'mo
|
||||
var header = $('<div></div>');
|
||||
//header.append($('<div class="page_title"></div>').text(gs.title));
|
||||
var func = $('<div class="function_title"></div>');
|
||||
var iconAdd = $('<span class="sbutton iconadd">' + GetTextByKey("P_IPT_ADD", "Add") + '</span>').click(function () {
|
||||
var iconAdd = $('<span class="sbutton iconadd">' + GetTextByKey("P_IPT_ADDSECTION", "Add Section") + '</span>').click(function () {
|
||||
//var s = new AddSection();
|
||||
//s.onsave = function (section) {
|
||||
// _this.page.Sections.push(section);
|
||||
@ -95,10 +95,10 @@ define(['modules/sections/section', 'modules/sections/addsection', 'common', 'mo
|
||||
dataheader.append('<div class="question-cell" style="width: 310px">' + GetTextByKey("P_IPT_DISPLAYTEXT", "Display Text") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 400px">' + GetTextByKey("P_IPT_TYPE", "Type") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 80px; text-align: center">' + GetTextByKey("P_IPT_REQUIRED", "Required") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 100px; text-align: center">' + GetTextByKey("P_IPT_CANCOMMENT", "Can Comment") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 100px; text-align: center">' + GetTextByKey("P_IPT_ISIMPORTANT", "Is Important") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 140px">' + GetTextByKey("P_IPT_CUSTOMERVISIBLE", "Customer Visible") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 140px">' + GetTextByKey("P_IPT_SEVERITYLEVEL", "Severity Level") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 65px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_XXX", "Include Comment") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 70px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_ISIMPORTANT", "Is Important") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 70px; text-align: center;white-space:normal;line-height:20px;"">' + GetTextByKey("P_IPT_CUSTOMERVISIBLE", "Customer Visible") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 80px; text-align: center;white-space:normal;line-height:20px;">' + GetTextByKey("P_IPT_SEVERITYLEVEL", "Severity Level") + '</div>');
|
||||
dataheader.append('<div style="flex-grow: 1" style="width: 160px">' + GetTextByKey("P_IPT_ST_NOTES", "Notes") + '</div>');
|
||||
dataheader.append('<div class="question-cell" style="width: 90px;padding-right:20px;"></div>');
|
||||
content.append(dataheader);
|
||||
|
@ -28,7 +28,7 @@ define(['common'], function (Common) {
|
||||
// checkbox
|
||||
name: 'check',
|
||||
key: 'Selected',
|
||||
width: 30,
|
||||
width: 45,
|
||||
align: 'center',
|
||||
sortable: false,
|
||||
allcheck: true,
|
||||
|
Reference in New Issue
Block a user