Adding Numeric control support for Backform.

This patch also includes an issue related to IntegerControl, which does
not emit any error message, when it has some issues.

In order to fix the issue, it will trigger 'pgadmin-session:invalid'
event, when the input value is not an valid integer.
This commit is contained in:
Akshay Joshi
2016-02-22 17:18:02 +05:30
committed by Ashesh Vashi
parent 6c2faa984b
commit 8186e45844
2 changed files with 105 additions and 1 deletions

View File

@@ -634,6 +634,7 @@ function(require, $, _, S, Bootstrap, pgAdmin, alertify, CodeMirror) {
'SQL_TAB': '{{ _('SQL') }}',
'SQL_NO_CHANGE': '\n -- ' + '{{ _('Nothing changed') }}',
'MUST_BE_INT' : " {{ _("'%%s' must be an integer.") }}",
'MUST_BE_NUM' : " {{ _("'%%s' must be a numeric.") }}",
'MUST_GR_EQ' : " {{ _("'%%s' must be greater than or equals to %%d.") }}",
'MUST_LESS_EQ' : " {{ _("'%%s' must be less than or equals to %%d.") }}"
}