Skip to content

Commit ff9e51b

Browse files
author
Kristan Kenney
committed
Collapse edit server items
1 parent c99ae50 commit ff9e51b

File tree

1 file changed

+25
-90
lines changed

1 file changed

+25
-90
lines changed

web/templates/admin/edit_server.html

Lines changed: 25 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -180,26 +180,16 @@
180180
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="version">
181181
<tr>
182182
<td class="vst-text step-top">
183-
<?php print _('Version'); ?>
184-
</td>
185-
</tr>
186-
<tr>
187-
<td>
188-
<input type="text" size="20" class="vst-input" name="v_version" value="<?php echo $_SESSION['VERSION']; ?>" disabled>
189-
<br><br>
183+
<?php print _('Version'); ?>: <span class="optional"><?php echo $_SESSION['VERSION']; ?></span>
190184
</td>
191185
</tr>
186+
<?php if ($_SESSION['RELEASE_BRANCH'] !== 'release') {?>
192187
<tr>
193188
<td class="vst-text input-label">
194-
<?php print _('Release'); ?>
195-
</td>
196-
</tr>
197-
<tr>
198-
<td>
199-
<input type="text" size="20" class="vst-input" name="v_release_branch" value="<?php echo $_SESSION['RELEASE_BRANCH']; ?>">
200-
<br><br>
189+
<?php print _('Release'); ?>: <span class="optional"><?php echo $_SESSION['RELEASE_BRANCH'] ?></span>
201190
</td>
202191
</tr>
192+
<?}?>
203193
<tr>
204194
<td class="vst-text input-label">
205195
<?php print _('Options'); ?>
@@ -236,55 +226,34 @@
236226
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
237227
<tr>
238228
<td class="vst-text">
239-
<?php print _('Proxy Server') ?> <a href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
240-
</td>
241-
</tr>
242-
<tr>
243-
<td>
244-
<input type="text" size="20" class="vst-input" name="v_proxy_system" value="<?php echo $_SESSION['PROXY_SYSTEM']; ?>" disabled>
245-
<br><br>
229+
<?php print _('Proxy Server') ?>: <span class="optional"><?php echo $_SESSION['PROXY_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
246230
</td>
247231
</tr>
248232
<?php } ?>
233+
<?php if (!empty($_SESSION['WEB_SYSTEM'])) { ?>
249234
<tr>
250235
<td class="vst-text">
251-
<?php print _('Web Server') ?> <a href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
252-
</td>
253-
</tr>
254-
<tr>
255-
<td>
256-
<input type="text" size="20" class="vst-input" name="v_web_system" value="<?php echo $_SESSION['WEB_SYSTEM']; ?>" disabled>
257-
<br><br>
236+
<?php print _('Web Server') ?>: <span class="optional"><?php echo $_SESSION['WEB_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
258237
</td>
259238
</tr>
239+
<?php } ?>
260240
<?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
261241
<tr>
262242
<td class="vst-text">
263-
<?php print _('Backend Server') ?> <a href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
264-
</td>
265-
</tr>
266-
<tr>
267-
<td>
268-
<input type="text" size="20" class="vst-input" name="v_web_backend" value="<?php echo $_SESSION['WEB_BACKEND']; ?>" disabled>
269-
<br><br>
243+
<?php print _('Backend Server') ?>: <span class="optional"><?php echo $_SESSION['WEB_BACKEND']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
270244
</td>
271245
</tr>
246+
<?php } ?>
247+
<?php if (!empty($_SESSION['WEB_BACKEND_POOL'])) { ?>
272248
<tr>
273249
<td class="vst-text">
274-
<?php print _('Backend Pool Mode') ?>
250+
<?php print _('Backend Pool Mode') ?>: <span class="optional"><?php echo $_SESSION['WEB_BACKEND_POOL']; ?></span>
275251
</td>
276252
</tr>
277-
<tr>
278-
<td>
279-
<input type="text" size="20" class="vst-input" name="v_web_backend_pool" value="<?php echo $_SESSION['WEB_BACKEND_POOL']; ?>" disabled>
280-
<br><br>
281-
</td>
282-
</tr>
283-
284253
<?php } ?>
285254
<?php if(count($v_php_versions)): ?>
286255
<tr>
287-
<td class="vst-text">
256+
<td class="vst-text step-top">
288257
<?php print _('Enabled multi PHP versions') ?>
289258

290259
<span class="alert alert-info alert-with-icon">
@@ -335,28 +304,12 @@
335304
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="dns">
336305
<tr>
337306
<td class="vst-text step-top">
338-
<?php print _('DNS Server') ?> <a href="/edit/server/<? echo $_SESSION['DNS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
339-
</td>
340-
</tr>
341-
<tr>
342-
<td>
343-
<input type="text" size="20" class="vst-input" name="v_dns_system" value="<?php echo $_SESSION['DNS_SYSTEM']; ?>" disabled>
344-
<br><br>
307+
<?php print _('DNS Server') ?>: <span class="optional"><?php echo $_SESSION['DNS_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['DNS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
345308
</td>
346309
</tr>
347-
348310
<tr>
349311
<td class="vst-text input-label">
350-
<?php print _('DNS Cluster');?>
351-
</td>
352-
</tr>
353-
<tr>
354-
<td>
355-
<select class="vst-list" name="v_dns_cluster" disabled>
356-
<option value='no'><?php print _('no'); ?></option>
357-
<option value='yes' <?php if($v_dns_cluster == 'yes') echo 'selected' ?> ><?php print _('yes'); ?></option>
358-
</select>
359-
<br><br>
312+
<?php print _('DNS Cluster');?>: <span class="optional"><? if ($v_dns_cluster == 'yes') { echo 'Yes'; } else { echo 'No'; } ?></span>
360313
</td>
361314
</tr>
362315
<?php if ($v_dns_cluster = 'yes') {
@@ -365,22 +318,22 @@
365318
$i++;
366319
?>
367320
<tr>
368-
<td class="vst-text step-left">
321+
<td class="vst-text">
369322
<?php print _('Host'). ' #'.$i ?>
370323
</td>
371324
</tr>
372325
<tr>
373-
<td class="step-left">
326+
<td class="vst-text">
374327
<input type="text" size="20" class="vst-input" name="v_dns_remote_host" value="<?php echo $key; ?>" disabled>
375-
<br><br>
376328
</td>
377329
</tr>
378330
<?php }} ?>
331+
<tr>
332+
<td><br></td>
333+
</tr>
379334
</table>
380335
</td>
381336
</tr>
382-
383-
384337
<tr>
385338
<td class="vst-text input-label step-top advanced-options">
386339
<a href="javascript:elementHideShow('mail');" class="vst-text">
@@ -393,44 +346,26 @@
393346
<table style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;" id="mail">
394347
<tr>
395348
<td class="vst-text step-top">
396-
<?php print _('Mail Server') ?> <a href="/edit/server/<? echo $_SESSION['MAIL_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
397-
</td>
398-
</tr>
399-
<tr>
400-
<td>
401-
<input type="text" size="20" class="vst-input" name="v_mail_system" value="<?php echo $_SESSION['MAIL_SYSTEM']; ?>" disabled>
402-
<br><br>
349+
<?php print _('Mail Server') ?>: <span class="optional"><?php echo $_SESSION['MAIL_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['MAIL_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
403350
</td>
404351
</tr>
405352
<?php if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) { ?>
406353
<tr>
407354
<td class="vst-text">
408-
<?php print _('Antivirus') ?> <a href="/edit/server/<? echo $_SESSION['ANTIVIRUS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
409-
</td>
410-
</tr>
411-
<tr>
412-
<td>
413-
<input type="text" size="20" class="vst-input" name="v_antivirus_system" value="<?php echo $_SESSION['ANTIVIRUS_SYSTEM']; ?>" disabled>
414-
<br><br>
355+
<?php print _('Antivirus') ?>: <span class="optional"><?php echo $_SESSION['ANTIVIRUS_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['ANTIVIRUS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
415356
</td>
416357
</tr>
417358
<?php } ?>
418359
<?php if (!empty($_SESSION['ANTISPAM_SYSTEM'])) { ?>
419360
<tr>
420361
<td class="vst-text">
421-
<?php print _('AntiSpam') ?> <a href="/edit/server/<? echo $_SESSION['ANTISPAM_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
422-
</td>
423-
</tr>
424-
<tr>
425-
<td>
426-
<input type="text" size="20" class="vst-input" name="v_antispam_system" value="<?php echo $_SESSION['ANTISPAM_SYSTEM']; ?>" disabled>
427-
<br><br>
362+
<?php print _('AntiSpam') ?>: <span class="optional"><?php echo $_SESSION['ANTISPAM_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['ANTISPAM_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
428363
</td>
429364
</tr>
430365
<?php } ?>
431366
<?php if($_SESSION['WEBMAIL_SYSTEM']){?>
432367
<tr>
433-
<td class="vst-text">
368+
<td class="vst-text step-top">
434369
<?php print _('Webmail URL') ?>
435370
</td>
436371
</tr>
@@ -442,7 +377,7 @@
442377
</tr>
443378
<?php } ?>
444379
<tr>
445-
<td class="vst-text">
380+
<td class="vst-text">
446381
<label>
447382
<input type="checkbox" size="20" class="vst-checkbox" name="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo "checked=yes"; ?> onclick="javascript:elementHideShow('smtp_relay_table');"><?php print _('Global SMTP Relay');?>
448383
</label>

0 commit comments

Comments
 (0)