HOR-61: new feature expiration date

This commit is contained in:
Paula V. Quispe
2016-06-02 10:23:09 -04:00
parent 005ee3ef2b
commit a922754d1a
7 changed files with 64 additions and 1 deletions

View File

@@ -85,6 +85,31 @@ Ext.onReady(function(){
cmbTimeZone.setValue(sysConf.time_zone);
txtExpirationYear = new Ext.form.TextField({
xtype: 'numberfield',
id : 'expiration_year',
name : 'expiration_year',
fieldLabel: _('ID_DEFAULT_EXPIRATION_YEAR'),
allowBlank: false,
allowNegative: false,
value: 1,
maxlength: 15,
minValue: 1,
validator: function(value){
if(value > 0) {
return true;
} else {
PMExt.error( _('ID_ERROR'), _('ERROR_ONLY_POSITIVE_NUMBER'));
}
},
listeners:{
change: function(){
changeSettings();
}
}
});
txtExpirationYear.setValue(sysConf.expiration_year);
saveButton = new Ext.Action({
text : _('ID_SAVE_SETTINGS'),
disabled : true,
@@ -122,6 +147,7 @@ Ext.onReady(function(){
}
}
}
,txtExpirationYear
]
});