|
25 | 25 | </div> |
26 | 26 |
|
27 | 27 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.name && print('invalid') %>"> |
28 | | - <input name="name" type="text" id="fld_name" class="fieldItem" value="<%= ob.name %>"> |
| 28 | + <input name="name" type="text" id="fld_name" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.name %>"> |
29 | 29 | </div> |
30 | 30 | </div> |
31 | 31 |
|
|
47 | 47 | </div> |
48 | 48 |
|
49 | 49 | <div class="flexCol-3 borderRight0 custCol-border <% ob.errors.server_ip && print('invalid') %>"> |
50 | | - <input name="server_ip" type="text" id="fld_server" placeholder="" class="fieldItem" required="" value="<%= ob.server_ip %>"> |
| 50 | + <input name="server_ip" type="text" id="fld_server" placeholder="" class="fieldItem <% if (ob.default) print('disabled') %>" required="" value="<%= ob.server_ip %>"> |
51 | 51 | </div> |
52 | | - <div class="flexCol-5 sslSwitch-radio ustCol-border <% ob.errors.server_ip && print('invalid') %>"> |
| 52 | + <div class="flexCol-5 sslSwitch-radio ustCol-border <% ob.errors.server_ip && print('invalid') %> <% if (ob.default) print('disabled') %>"> |
53 | 53 | <input type="radio" class="fieldItem" id="js-sslOn" name="sslSwitch" value="true" <% if(ob.SSL) { print("checked") } %> /><label for="js-sslOn" class="radioLabel"><%= polyglot.t('SSLOn') %></label> |
54 | 54 | <input type="radio" class="fieldItem" id="js-sslOff" name="sslSwitch" value="false" <% if(!ob.SSL) { print("checked") } %>/><label for="js-sslOff" class="radioLabel"><%= polyglot.t('SSLOff') %></label> |
55 | 55 |
|
56 | 56 | </div> |
57 | 57 | </div> |
| 58 | + <% if (!ob.isLocal) { %> |
58 | 59 | <div class="flexRow"> |
59 | 60 | <% if (ob.errors.username) { %> |
60 | 61 | <div class="flexCol-12"> |
|
73 | 74 | </div> |
74 | 75 |
|
75 | 76 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.username && print('invalid') %>"> |
76 | | - <input name="username" type="text" id="fld_username" class="fieldItem" value="<%= ob.username %>"> |
| 77 | + <input name="username" type="text" id="fld_username" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.username %>"> |
77 | 78 | </div> |
78 | 79 | </div> |
79 | 80 |
|
|
95 | 96 | </div> |
96 | 97 |
|
97 | 98 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.password && print('invalid') %>"> |
98 | | - <input name="password" type="password" id="fld_password" class="fieldItem" value="<%= ob.password %>"> |
| 99 | + <input name="password" type="password" id="fld_password" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.password %>"> |
99 | 100 | </div> |
100 | 101 | </div> |
| 102 | + <% } %> |
101 | 103 |
|
102 | 104 | <div class="flexRow"> |
103 | 105 | <% if (ob.errors.rest_api_port) { %> |
|
117 | 119 | </div> |
118 | 120 |
|
119 | 121 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.rest_api_port && print('invalid') %>"> |
120 | | - <input name="rest_api_port" type="text" id="fld_rest_port" placeholder="" class="fieldItem" value="<%= ob.rest_api_port %>"> |
| 122 | + <input name="rest_api_port" type="text" id="fld_rest_port" placeholder="" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.rest_api_port %>"> |
121 | 123 | </div> |
122 | 124 | </div> |
123 | 125 |
|
|
139 | 141 | </div> |
140 | 142 |
|
141 | 143 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.api_socket_port && print('invalid') %>"> |
142 | | - <input name="api_socket_port" type="text" id="fld_api_socket_port" placeholder="" class="fieldItem" value="<%= ob.api_socket_port %>"> |
| 144 | + <input name="api_socket_port" type="text" id="fld_api_socket_port" placeholder="" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.api_socket_port %>"> |
143 | 145 | </div> |
144 | 146 | </div> |
145 | 147 |
|
|
161 | 163 | </div> |
162 | 164 |
|
163 | 165 | <div class="flexCol-8 borderRight0 custCol-border <% ob.errors.heartbeat_socket_port && print('invalid') %>"> |
164 | | - <input name="heartbeat_socket_port" type="text" id="fld_heartbeat_socket_port" placeholder="" class="fieldItem" value="<%= ob.heartbeat_socket_port %>"> |
| 166 | + <input name="heartbeat_socket_port" type="text" id="fld_heartbeat_socket_port" placeholder="" class="fieldItem <% if (ob.default) print('disabled') %>" value="<%= ob.heartbeat_socket_port %>"> |
165 | 167 | </div> |
166 | 168 | </div> |
167 | 169 |
|
|
174 | 176 | <span class="fontSize10 marginRight2"></span> |
175 | 177 | <%= polyglot.t('Cancel') %> |
176 | 178 | </a> |
177 | | - <a class="btn btn-bar btn-half js-save color-secondary custCol-secondary textOpacity90 custCol-border-primary custCol-text" tabindex="0"> |
| 179 | + <a class="btn btn-bar btn-half js-save color-secondary custCol-secondary textOpacity90 custCol-border-primary custCol-text <% if (ob.default) print('disabled') %>" tabindex="0"> |
178 | 180 | <span class="ion-checkmark fontSize10 marginRight2 textOpacity50"></span> |
179 | 181 | <%= polyglot.t('serverConnectModal.saveChanges') %> |
180 | 182 | </a> |
|
0 commit comments