Re-shuffle server properties.
parent
a18553bd8c
commit
2fb6ccf5b2
|
@ -155,9 +155,16 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
|||
},{
|
||||
id: 'name', label:'{{ _('Name') }}', type: 'text',
|
||||
mode: ['properties', 'edit', 'create']
|
||||
},{
|
||||
id: 'server_type', label: '{{ _('Server Type') }}', type: 'options',
|
||||
mode: ['properties'], visible: 'isConnected',
|
||||
'options': [{% for st in server_types %}
|
||||
{label: '{{ st.description }}', value: '{{ st.server_type }}'},{% endfor %}
|
||||
{label: '{{ _('Unknown') }}', value: ''}
|
||||
]
|
||||
},{
|
||||
id: 'connected', label:'{{ _('Connected') }}', type: 'switch',
|
||||
mode: ['properties'], 'options': {
|
||||
mode: ['properties'], group: "{{ 'Connection' }}", 'options': {
|
||||
'onText': 'True', 'offText': 'False', 'onColor': 'success',
|
||||
'offColor': 'danger', 'size': 'small'
|
||||
}
|
||||
|
@ -193,13 +200,6 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
|||
{label: 'Verify-CA', value: 'verify-ca'},
|
||||
{label: 'Verify-Full', value: 'verify-full'}
|
||||
]
|
||||
},{
|
||||
id: 'server_type', label: '{{ _('Server Type') }}', type: 'options',
|
||||
mode: ['properties'], visible: 'isConnected',
|
||||
'options': [{% for st in server_types %}
|
||||
{label: '{{ st.description }}', value: '{{ st.server_type }}'},{% endfor %}
|
||||
{label: '{{ _('Unknown') }}', value: ''}
|
||||
]
|
||||
}],
|
||||
validate: function() {
|
||||
var err = {},
|
||||
|
|
Loading…
Reference in New Issue