Changed the server properties a little bit to in-corporate suggestions

from Dave. Also - remove unwanted round cornor from the menu item.
This commit is contained in:
Ashesh Vashi
2015-12-22 10:50:30 +05:30
parent 5f890dadc9
commit bf5170bc89
2 changed files with 7 additions and 12 deletions

View File

@@ -1,6 +1,5 @@
.icon-server { .icon-server {
background-image: url('{{ url_for('NODE-server.static', filename='img/server.png') }}') !important; background-image: url('{{ url_for('NODE-server.static', filename='img/server.png') }}') !important;
border-radius: 10px;
background-repeat: no-repeat; background-repeat: no-repeat;
align-content: center; align-content: center;
vertical-align: middle; vertical-align: middle;

View File

@@ -145,26 +145,22 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
role: null role: null
}, },
schema: [{ schema: [{
id: 'id', label: '{{ _('ID') }}', type: 'int', group: null, id: 'id', label: '{{ _('ID') }}', type: 'int', mode: ['properties']
mode: ['properties']
},{ },{
id: 'name', label:'{{ _('Name') }}', type: 'text', group: null, id: 'name', label:'{{ _('Name') }}', type: 'text',
mode: ['properties', 'edit', 'create'] mode: ['properties', 'edit', 'create']
},{ },{
id: 'connected', label:'{{ _('Connected') }}', type: 'switch', group: null, id: 'connected', label:'{{ _('Connected') }}', type: 'switch',
mode: ['properties'], 'options': { mode: ['properties'], 'options': {
'onText': 'True', 'onText': 'True', 'offText': 'False', 'onColor': 'success',
'offText': 'False', 'offColor': 'danger', 'size': 'small'
'onColor': 'success',
'offColor': 'default',
'size': 'normal'
} }
},{ },{
id: 'version', label:'{{ _('Version') }}', type: 'text', group: null, id: 'version', label:'{{ _('Version') }}', type: 'text', group: null,
mode: ['properties'], show: 'isConnected' mode: ['properties'], show: 'isConnected'
},{ },{
id: 'comment', label:'{{ _('Comments') }}', type: 'multiline', group: null, id: 'comment', label:'{{ _('Comments') }}', type: 'multiline', group: null,
mode: ['properties', 'edit', 'create'], disabled: 'notEditMode' mode: ['properties', 'edit', 'create']
},{ },{
id: 'host', label:'{{ _('Host Name/Address') }}', type: 'text', group: "Connection", id: 'host', label:'{{ _('Host Name/Address') }}', type: 'text', group: "Connection",
mode: ['properties', 'edit', 'create'], disabled: 'isConnected' mode: ['properties', 'edit', 'create'], disabled: 'isConnected'
@@ -215,7 +211,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
this.errorModel.set(err); this.errorModel.set(err);
if (_.size(err)) { if (_.size(err)) {
return err; return errmsg;
} }
return null; return null;