PM-3564
This commit is contained in:
committed by
Enrique Ponce De Leon
parent
b8e7ce738e
commit
a644c18fa5
@@ -129,6 +129,21 @@ class Language extends BaseLanguage
|
|||||||
public function import ($sLanguageFile, $updateXml = true, $updateDB = true, $generateMafe = true)
|
public function import ($sLanguageFile, $updateXml = true, $updateDB = true, $generateMafe = true)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
//get labels MichelangeloFE
|
||||||
|
try {
|
||||||
|
$oTranslation = new Translation();
|
||||||
|
$MichelangeloFE = PATH_HOME . "../workflow/public_html/lib/js";
|
||||||
|
if (file_exists($MichelangeloFE)) {
|
||||||
|
$labels = $this->readLabelsDirectory($MichelangeloFE, true);
|
||||||
|
foreach ($labels as $label) {
|
||||||
|
$oTranslation->addTranslation('LABEL', 'ID_MAFE_' . G::encryptOld($label), 'en', $label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
error_log($e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
G::LoadSystem( 'i18n_po' );
|
G::LoadSystem( 'i18n_po' );
|
||||||
$POFile = new i18n_PO( $sLanguageFile );
|
$POFile = new i18n_PO( $sLanguageFile );
|
||||||
$POFile->readInit();
|
$POFile->readInit();
|
||||||
@@ -297,7 +312,7 @@ class Language extends BaseLanguage
|
|||||||
try {
|
try {
|
||||||
$oTranslation = new Translation();
|
$oTranslation = new Translation();
|
||||||
$MichelangeloFE = PATH_HOME . "../workflow/public_html/lib/js";
|
$MichelangeloFE = PATH_HOME . "../workflow/public_html/lib/js";
|
||||||
if ($_GET['LOCALE'] === "en" & file_exists($MichelangeloFE)) {
|
if (file_exists($MichelangeloFE)) {
|
||||||
$labels = $this->readLabelsDirectory($MichelangeloFE, true);
|
$labels = $this->readLabelsDirectory($MichelangeloFE, true);
|
||||||
foreach ($labels as $label) {
|
foreach ($labels as $label) {
|
||||||
$oTranslation->addTranslation('LABEL', 'ID_MAFE_' . G::encryptOld($label), 'en', $label);
|
$oTranslation->addTranslation('LABEL', 'ID_MAFE_' . G::encryptOld($label), 'en', $label);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ var ldapFormAutoRegister = new Ext.form.ComboBox({
|
|||||||
displayField: 'VALUE',
|
displayField: 'VALUE',
|
||||||
value: '0',
|
value: '0',
|
||||||
|
|
||||||
fieldLabel: '<span style="color: red">*</span>' + "Enable automatic register",
|
fieldLabel: '<span style="color: red">*</span>' + _("ID_ENABLE_AUTOMATIC_REGISTER"),
|
||||||
typeAhead: true,
|
typeAhead: true,
|
||||||
forceSelection: true,
|
forceSelection: true,
|
||||||
triggerAction: 'all',
|
triggerAction: 'all',
|
||||||
@@ -68,7 +68,7 @@ var ldapFormAutoRegister = new Ext.form.ComboBox({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var ldapFormServerName = new Ext.form.TextField({
|
var ldapFormServerName = new Ext.form.TextField({
|
||||||
fieldLabel: '<span style="color: red">*</span>' + "Server Address",
|
fieldLabel: '<span style="color: red">*</span>' + _("ID_SERVER_ADDRESS"),
|
||||||
name: 'AUTH_SOURCE_SERVER_NAME',
|
name: 'AUTH_SOURCE_SERVER_NAME',
|
||||||
id: 'AUTH_SOURCE_SERVER_NAME',
|
id: 'AUTH_SOURCE_SERVER_NAME',
|
||||||
autoCreate: {tag: 'input', type: 'text', maxlength: '50'},
|
autoCreate: {tag: 'input', type: 'text', maxlength: '50'},
|
||||||
@@ -158,7 +158,7 @@ var ldapFormPassword = new Ext.form.TextField({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var ldapFormIdentifier = new Ext.form.TextField({
|
var ldapFormIdentifier = new Ext.form.TextField({
|
||||||
fieldLabel: '<span style="color: red">*</span>' + "User Identifier",
|
fieldLabel: '<span style="color: red">*</span>' + _("ID_USER_IDENTIFIER"),
|
||||||
name: 'AUTH_SOURCE_IDENTIFIER_FOR_USER',
|
name: 'AUTH_SOURCE_IDENTIFIER_FOR_USER',
|
||||||
id: 'AUTH_SOURCE_IDENTIFIER_FOR_USER',
|
id: 'AUTH_SOURCE_IDENTIFIER_FOR_USER',
|
||||||
autoCreate: {tag: 'input', type: 'text', maxlength: '20'},
|
autoCreate: {tag: 'input', type: 'text', maxlength: '20'},
|
||||||
@@ -168,7 +168,7 @@ var ldapFormIdentifier = new Ext.form.TextField({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var ldapFormUsersFilter = new Ext.form.TextField({
|
var ldapFormUsersFilter = new Ext.form.TextField({
|
||||||
fieldLabel: "Filter to search users",
|
fieldLabel: _("ID_FILTER_TO_SEARCH_USERS"),
|
||||||
name: 'AUTH_SOURCE_USERS_FILTER',
|
name: 'AUTH_SOURCE_USERS_FILTER',
|
||||||
id: 'AUTH_SOURCE_USERS_FILTER',
|
id: 'AUTH_SOURCE_USERS_FILTER',
|
||||||
autoCreate: {tag: 'input', type: 'text', maxlength: '200'},
|
autoCreate: {tag: 'input', type: 'text', maxlength: '200'},
|
||||||
@@ -177,7 +177,7 @@ var ldapFormUsersFilter = new Ext.form.TextField({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var ldapFormRetiredEmployees = new Ext.form.TextField({
|
var ldapFormRetiredEmployees = new Ext.form.TextField({
|
||||||
fieldLabel: "OU for Retired Employees OU",
|
fieldLabel: _("ID_OU_FOR_RETIRED_EMPLOYEES_OU"),
|
||||||
name: 'AUTH_SOURCE_RETIRED_OU',
|
name: 'AUTH_SOURCE_RETIRED_OU',
|
||||||
id: 'AUTH_SOURCE_RETIRED_OU',
|
id: 'AUTH_SOURCE_RETIRED_OU',
|
||||||
autoCreate: {tag: 'input', type: 'text', maxlength: '128'},
|
autoCreate: {tag: 'input', type: 'text', maxlength: '128'},
|
||||||
@@ -219,7 +219,7 @@ var ldapFormData = new Ext.form.FieldSet({
|
|||||||
id:'passwordReview',
|
id:'passwordReview',
|
||||||
width: 300,
|
width: 300,
|
||||||
style: 'font: 9px tahoma,arial,helvetica,sans-serif;',
|
style: 'font: 9px tahoma,arial,helvetica,sans-serif;',
|
||||||
text: "(Default set to (&(!(objectClass=organizationalUnit))))",
|
text: _("ID_DEFAULT_SET_TO"),
|
||||||
labelSeparator: ''
|
labelSeparator: ''
|
||||||
}, ldapFormAttrinuteIds, ldapFormShowGrid, ldapFormGridText
|
}, ldapFormAttrinuteIds, ldapFormShowGrid, ldapFormGridText
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ Ext.onReady(function() {
|
|||||||
hideable:false
|
hideable:false
|
||||||
},{
|
},{
|
||||||
id: 'ATTRIBUTE_LDAP',
|
id: 'ATTRIBUTE_LDAP',
|
||||||
header: "LDAP Field",
|
header: _("ID_LDAP_FIELD"),
|
||||||
dataIndex: 'ATTRIBUTE_LDAP',
|
dataIndex: 'ATTRIBUTE_LDAP',
|
||||||
width: 10,
|
width: 10,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
@@ -148,7 +148,7 @@ Ext.onReady(function() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'ATTRIBUTE_USER',
|
id: 'ATTRIBUTE_USER',
|
||||||
header: "User Field",
|
header: _("ID_USER_FIELD"),
|
||||||
dataIndex: 'ATTRIBUTE_USER',
|
dataIndex: 'ATTRIBUTE_USER',
|
||||||
width: 10,
|
width: 10,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
@@ -158,6 +158,7 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
var ldapGridEditor = new Ext.ux.grid.RowEditor({
|
var ldapGridEditor = new Ext.ux.grid.RowEditor({
|
||||||
saveText: _('ID_SAVE'),
|
saveText: _('ID_SAVE'),
|
||||||
|
cancelText: _('ID_CANCEL'),
|
||||||
listeners: {
|
listeners: {
|
||||||
canceledit: function(grid,obj){
|
canceledit: function(grid,obj){
|
||||||
//
|
//
|
||||||
@@ -238,7 +239,7 @@ Ext.onReady(function() {
|
|||||||
var chk = new Ext.form.Checkbox({
|
var chk = new Ext.form.Checkbox({
|
||||||
id: "AUTH_SOURCE_SHOWGRID-checkbox",
|
id: "AUTH_SOURCE_SHOWGRID-checkbox",
|
||||||
name: "AUTH_SOURCE_SHOWGRID-checkbox",
|
name: "AUTH_SOURCE_SHOWGRID-checkbox",
|
||||||
boxLabel: "Match attributes to sync",
|
boxLabel: _("ID_MATCH_ATTRIBUTES_TO_SYNC"),
|
||||||
renderTo: "containerChkAttribute",
|
renderTo: "containerChkAttribute",
|
||||||
|
|
||||||
listeners: {
|
listeners: {
|
||||||
@@ -277,7 +278,7 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
ldapForm.getForm().submit({
|
ldapForm.getForm().submit({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
waitTitle: "Connecting...",
|
waitTitle: _('ID_CONNECTING'),
|
||||||
waitMsg: _("ID_SAVING"),
|
waitMsg: _("ID_SAVING"),
|
||||||
success: function (form, action)
|
success: function (form, action)
|
||||||
{
|
{
|
||||||
@@ -293,7 +294,7 @@ Ext.onReady(function() {
|
|||||||
var ldapForm = new Ext.FormPanel({
|
var ldapForm = new Ext.FormPanel({
|
||||||
url : 'ldapAdvancedProxy.php?functionAccion=ldapSave',
|
url : 'ldapAdvancedProxy.php?functionAccion=ldapSave',
|
||||||
frame : true,
|
frame : true,
|
||||||
title : "Authentication Source Information",
|
title : _("ID_AUTHENTICATION_SOURCE_INFORMATION"),
|
||||||
border : false,
|
border : false,
|
||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
monitorValid : true,
|
monitorValid : true,
|
||||||
@@ -325,7 +326,7 @@ Ext.onReady(function() {
|
|||||||
{
|
{
|
||||||
columnWidth: 1,
|
columnWidth: 1,
|
||||||
bodyStyle: "border: 0px;",
|
bodyStyle: "border: 0px;",
|
||||||
html: "Minimum data required to run the \"Test Connection\": \"Server Address, " + _("ID_PORT") + ", " + _("ID_ENABLED_TLS") + ", " + _("ID_ANONYMOUS") + ", " + _("ID_USERNAME") + ", " + _("ID_PASSWORD") + "\""
|
html: _("ID_MINIMUM_DATA_REQUIRED_TO_RUN_THE")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -379,11 +380,11 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "Test connection",
|
text: _('ID_TEST_CONNECTION'),
|
||||||
formBind: true,
|
formBind: true,
|
||||||
handler: function ()
|
handler: function ()
|
||||||
{
|
{
|
||||||
var loadMaskAux = new Ext.LoadMask(Ext.getBody(), {msg: "Testing connection..."});
|
var loadMaskAux = new Ext.LoadMask(Ext.getBody(), {msg: _('ID_TESTING_CONNECTION')});
|
||||||
loadMaskAux.show();
|
loadMaskAux.show();
|
||||||
|
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
@@ -406,8 +407,8 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
if (dataResponse.status) {
|
if (dataResponse.status) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: "Test connection",
|
title: _('ID_TEST_CONNECTION'),
|
||||||
msg: (dataResponse.status == "OK")? "Successfully connected" : dataResponse.message,
|
msg: (dataResponse.status == "OK")? _('ID_SUCCESSFULLY_CONNECTED') : dataResponse.message,
|
||||||
|
|
||||||
icon: (dataResponse.status == "OK")? "ext-mb-ok" : Ext.MessageBox.ERROR,
|
icon: (dataResponse.status == "OK")? "ext-mb-ok" : Ext.MessageBox.ERROR,
|
||||||
buttons: {ok: _("ID_ACCEPT")}
|
buttons: {ok: _("ID_ACCEPT")}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Ext.onReady(function() {
|
|||||||
{
|
{
|
||||||
xtype: 'button',
|
xtype: 'button',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_magnifier',
|
iconCls: 'button_menu_ext ss_sprite ss_magnifier',
|
||||||
text: 'Search',
|
text: _('ID_SEARCH'),
|
||||||
width : 40,
|
width : 40,
|
||||||
handler: function(){
|
handler: function(){
|
||||||
storeGridSearch.load({ params: {sKeyword: searchUsersText.getValue()} });
|
storeGridSearch.load({ params: {sKeyword: searchUsersText.getValue()} });
|
||||||
@@ -47,7 +47,7 @@ Ext.onReady(function() {
|
|||||||
labelAlign: 'left',
|
labelAlign: 'left',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
labelStyle: 'font-weight:bold; padding: 3px 3px 3px 15px;',
|
labelStyle: 'font-weight:bold; padding: 3px 3px 3px 15px;',
|
||||||
title: "<div><div style=\"float: left;\">" + "Search for user" + "</div><div id=\"divBack\" style=\"float: right;\"></div><div style=\"clear: both; height: 0; line-height:0; font-size: 0;\"></div></div>",
|
title: "<div><div style=\"float: left;\">" + _('ID_SEARCH_FOR_USER') + "</div><div id=\"divBack\" style=\"float: right;\"></div><div style=\"clear: both; height: 0; line-height:0; font-size: 0;\"></div></div>",
|
||||||
items: [
|
items: [
|
||||||
new Ext.FormPanel({
|
new Ext.FormPanel({
|
||||||
labelWidth : 120,
|
labelWidth : 120,
|
||||||
@@ -129,7 +129,7 @@ Ext.onReady(function() {
|
|||||||
var tbarSearch = [
|
var tbarSearch = [
|
||||||
{
|
{
|
||||||
id: 'BUTTON_IMPORT',
|
id: 'BUTTON_IMPORT',
|
||||||
text: 'Import',
|
text: _('ID_IMPORT'),
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_group_go ',
|
iconCls: 'button_menu_ext ss_sprite ss_group_go ',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: function () {
|
handler: function () {
|
||||||
@@ -163,8 +163,8 @@ Ext.onReady(function() {
|
|||||||
Ext.MessageBox.confirm('Confirm', 'Are you sure you want to import the selected users?', function (val) {
|
Ext.MessageBox.confirm('Confirm', 'Are you sure you want to import the selected users?', function (val) {
|
||||||
if (val == 'yes') {
|
if (val == 'yes') {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
msg: 'Importing Users...',
|
msg: _('ID_IMPORTING_USERS'),
|
||||||
progressText: 'Saving...',
|
progressText: _('ID_SAVING'),
|
||||||
width:300,
|
width:300,
|
||||||
wait:true,
|
wait:true,
|
||||||
waitConfig: {interval:200},
|
waitConfig: {interval:200},
|
||||||
@@ -183,8 +183,8 @@ Ext.onReady(function() {
|
|||||||
Ext.MessageBox.hide();
|
Ext.MessageBox.hide();
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: 'Import Users',
|
title: _('ID_IMPORT_USERS'),
|
||||||
msg: 'Imported Successfully',
|
msg: _('ID_IMPORTED_SUCCESSFULLY'),
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
animEl: 'mb9',
|
animEl: 'mb9',
|
||||||
icon: Ext.MessageBox.INFO
|
icon: Ext.MessageBox.INFO
|
||||||
@@ -193,16 +193,16 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function () {
|
failure: function () {
|
||||||
Ext.MessageBox.alert('ERROR', 'Error in server');
|
Ext.MessageBox.alert('ERROR', _('ID_ERROR_IN_SERVER'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
PMExt.notify('WARNING', 'You do not select any user to import');
|
PMExt.notify('WARNING', _('ID_YOU_DO_NOT_SELECT_ANY_USER_TO_IMPORT'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PMExt.notify('WARNING', 'You do not select any user to import');
|
PMExt.notify('WARNING', _('ID_YOU_DO_NOT_SELECT_ANY_USER_TO_IMPORT'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -251,8 +251,8 @@ Ext.onReady(function() {
|
|||||||
pageSize: pageSize,
|
pageSize: pageSize,
|
||||||
store: storeGridSearch,
|
store: storeGridSearch,
|
||||||
displayInfo: true,
|
displayInfo: true,
|
||||||
displayMsg: "LDAP Users" + " {0} - {1} " + "of" + " {2}",
|
displayMsg: _('ID_LDAP_USERS') + " {0} - {1} " + "of" + " {2}",
|
||||||
emptyMsg: "There are no LDAP Users"
|
emptyMsg: _('ID_THERE_ARE_NO_LDAP_USERS')
|
||||||
});
|
});
|
||||||
|
|
||||||
var selectModelList = new Ext.grid.CheckboxSelectionModel({
|
var selectModelList = new Ext.grid.CheckboxSelectionModel({
|
||||||
@@ -282,11 +282,11 @@ Ext.onReady(function() {
|
|||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
selectModelList,
|
selectModelList,
|
||||||
{header: 'Username', width: 15, dataIndex: 'sUsername', sortable: true},
|
{header: _('ID_USER_ID'), width: 15, dataIndex: 'sUsername', sortable: true},
|
||||||
{header: 'First Name', width: 15, dataIndex: 'sFirstname', sortable: true},
|
{header: _('ID_FIRST_NAME'), width: 15, dataIndex: 'sFirstname', sortable: true},
|
||||||
{header: 'Last Name', width: 15, dataIndex: 'sLastname', sortable: true},
|
{header: _('ID_LAST_NAME'), width: 15, dataIndex: 'sLastname', sortable: true},
|
||||||
{header: 'Email', width: 15, dataIndex: 'sEmail', sortable: true},
|
{header: _('ID_EMAIL'), width: 15, dataIndex: 'sEmail', sortable: true},
|
||||||
{header: 'Distinguished Name', width: 35, dataIndex: 'sDN'},
|
{header: _('ID_DISTINGUISHED_NAME'), width: 35, dataIndex: 'sDN'},
|
||||||
{dataIndex: "STATUS", header: _("ID_STATUS"), width: 10, css: "background: #D4D4D4; font-weight: bold;", align: "center", renderer: renderStatus}
|
{dataIndex: "STATUS", header: _("ID_STATUS"), width: 10, css: "background: #D4D4D4; font-weight: bold;", align: "center", renderer: renderStatus}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -304,7 +304,7 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
viewConfig: {
|
viewConfig: {
|
||||||
forceFit:true,
|
forceFit:true,
|
||||||
emptyText: '<div align="center"><b> ' + ' There are no LDAP Users ' + ' </b></div>'
|
emptyText: '<div align="center"><b> ' + _('ID_THERE_ARE_NO_LDAP_USERS') + ' </b></div>'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,56 +1,56 @@
|
|||||||
var caseData = '';
|
var caseData = '';
|
||||||
var appTitle = new Ext.form.Label({
|
var appTitle = new Ext.form.Label({
|
||||||
fieldLabel: "Case Title",
|
fieldLabel: _('ID_CASE_TITLE'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:30px;'
|
labelStyle: 'font-weight:bold;padding-right:30px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var process = new Ext.form.Label({
|
var process = new Ext.form.Label({
|
||||||
fieldLabel: "Process Uid",
|
fieldLabel: _('ID_PROCESS_UID'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var processTitle = new Ext.form.Label({
|
var processTitle = new Ext.form.Label({
|
||||||
fieldLabel: "Process",
|
fieldLabel: _('ID_PROCESS'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var appUid = new Ext.form.Label({
|
var appUid = new Ext.form.Label({
|
||||||
fieldLabel: "App Uid",
|
fieldLabel: _('ID_APP_UID'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var caseNumber = new Ext.form.Label({
|
var caseNumber = new Ext.form.Label({
|
||||||
fieldLabel: "Case number",
|
fieldLabel: _('ID_CASE_NUMBER'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var initUser = new Ext.form.Label({
|
var initUser = new Ext.form.Label({
|
||||||
fieldLabel: "Init user",
|
fieldLabel: _('ID_INIT_USER'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var finishUser = new Ext.form.Label({
|
var finishUser = new Ext.form.Label({
|
||||||
fieldLabel: "Finish user",
|
fieldLabel: _('ID_FINISH_USER'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var createDate = new Ext.form.Label({
|
var createDate = new Ext.form.Label({
|
||||||
fieldLabel: "Create date",
|
fieldLabel: _('ID_CREATE_DATE'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var finishDate = new Ext.form.Label({
|
var finishDate = new Ext.form.Label({
|
||||||
fieldLabel: "Finish date",
|
fieldLabel: _('ID_FINISH_DATE'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var fileName = new Ext.form.Label({
|
var fileName = new Ext.form.Label({
|
||||||
fieldLabel: "File Name",
|
fieldLabel: _('ID_FILE_NAME'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
var statusCaseWin = new Ext.form.Label({
|
var statusCaseWin = new Ext.form.Label({
|
||||||
fieldLabel: "Status",
|
fieldLabel: _('ID_CASESLIST_APP_STATUS'),
|
||||||
labelStyle: 'font-weight:bold;padding-right:35px;'
|
labelStyle: 'font-weight:bold;padding-right:35px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -82,8 +82,8 @@ var formCase = new Ext.FormPanel({
|
|||||||
if (val == 'yes') {
|
if (val == 'yes') {
|
||||||
dataCase = caseData;
|
dataCase = caseData;
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
msg: "Restoring case" + ' ' + dataCase.CASE_NUMBER + ' ...',
|
msg: _('ID_RESTORING_CASE') + ' ' + dataCase.CASE_NUMBER + ' ...',
|
||||||
progressText: 'Saving...',
|
progressText: _('ID_SAVING'),
|
||||||
width:300,
|
width:300,
|
||||||
wait:true,
|
wait:true,
|
||||||
waitConfig: {interval:200},
|
waitConfig: {interval:200},
|
||||||
@@ -102,15 +102,15 @@ var formCase = new Ext.FormPanel({
|
|||||||
var resp = Ext.decode(returnData.responseText);
|
var resp = Ext.decode(returnData.responseText);
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: 'Case Unarhive',
|
title: _('ID_CASE_UNARHIVE'),
|
||||||
msg: "Case" + ' ' + dataCase.CASE_NUMBER + ' ' + "Restored sucessfully",
|
msg: _('ID_CASE') + ' ' + dataCase.CASE_NUMBER + ' ' + _('ID_RESTORED_SUCESSFULLY'),
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
animEl: 'mb9',
|
animEl: 'mb9',
|
||||||
icon: Ext.MessageBox.INFO
|
icon: Ext.MessageBox.INFO
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: "Error",
|
title: _('ID_ERROR'),
|
||||||
msg: resp.message,
|
msg: resp.message,
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
animEl: 'mb9',
|
animEl: 'mb9',
|
||||||
@@ -121,7 +121,7 @@ var formCase = new Ext.FormPanel({
|
|||||||
storeGridSearch.load();
|
storeGridSearch.load();
|
||||||
},
|
},
|
||||||
failure: function () {
|
failure: function () {
|
||||||
Ext.MessageBox.alert("Error", "Error in server");
|
Ext.MessageBox.alert("Error", _('ID_ERROR_IN_SERVER'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@ var formCase = new Ext.FormPanel({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var summaryWindow = new Ext.Window({
|
var summaryWindow = new Ext.Window({
|
||||||
title: "Detail Case",
|
title: _('ID_DETAIL_CASE'),
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 320,
|
height: 320,
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ Ext.onReady(function(){
|
|||||||
}) */
|
}) */
|
||||||
|
|
||||||
var mnuNewBpmnProject = {
|
var mnuNewBpmnProject = {
|
||||||
text: "New BPMN Project",
|
text: _('ID_NEW_BPMN_PROJECT'),
|
||||||
iconCls: "silk-add",
|
iconCls: "silk-add",
|
||||||
icon: "",
|
icon: "",
|
||||||
handler: function ()
|
handler: function ()
|
||||||
@@ -189,7 +189,7 @@ Ext.onReady(function(){
|
|||||||
};
|
};
|
||||||
|
|
||||||
var mnuNewProject = {
|
var mnuNewProject = {
|
||||||
text: "New Project",
|
text: _('ID_NEW_PROJECT'),
|
||||||
iconCls: "silk-add",
|
iconCls: "silk-add",
|
||||||
icon: "",
|
icon: "",
|
||||||
handler: function ()
|
handler: function ()
|
||||||
@@ -512,7 +512,7 @@ function newProcess(params)
|
|||||||
params = typeof params == 'undefined' ? {type:'classicProject'} : params;
|
params = typeof params == 'undefined' ? {type:'classicProject'} : params;
|
||||||
|
|
||||||
// TODO this variable have hardcoded labels, it must be changed on the future
|
// TODO this variable have hardcoded labels, it must be changed on the future
|
||||||
var formTitle = params.type == "classicProject" ? "New Project" : "New BPMN Project"
|
var formTitle = params.type == "classicProject" ? _('ID_NEW_PROJECT') : _('ID_NEW_BPMN_PROJECT')
|
||||||
|
|
||||||
// window.location = 'processes_New';
|
// window.location = 'processes_New';
|
||||||
var ProcessCategories = new Ext.form.ComboBox({
|
var ProcessCategories = new Ext.form.ComboBox({
|
||||||
|
|||||||
Reference in New Issue
Block a user