Re-shuffle server properties.

pull/3/head
Dave Page 2016-03-16 09:58:14 +00:00
parent a18553bd8c
commit 2fb6ccf5b2
1 changed files with 8 additions and 8 deletions

View File

@ -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 = {},