Skip to content

Commit ea7a320

Browse files
committed
Draft info section to site Edit form to show alias/sub domains
1 parent 94be0a2 commit ea7a320

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

interface/web/sites/templates/web_vhost_domain_edit.htm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99

1010

1111
{tmpl_hook name="begin_form"}
12-
<tmpl_if name="vhostdomain_type" value="domain">
12+
<tmpl_if name="vhostdomain_type" value="domain">
13+
<tmpl_if name="web_aliasdomains_info">
14+
Children:
15+
<ul>
16+
<tmpl_loop name="web_aliasdomains_info"><li>{tmpl_var name='type'}: {tmpl_var name='domain'}</li></tmpl_loop>
17+
</ul>
18+
<br />
19+
</tmpl_if>
1320
<tmpl_if name="is_admin">
1421
<div class="form-group">
1522
<tmpl_if name="edit_disabled">

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,10 @@ function onShowEnd() {
960960
function onShowEdit() {
961961
global $app;
962962
if($app->tform->checkPerm($this->id, 'riud')) $app->tform->formDef['tabs']['domain']['readonly'] = false;
963+
$sql = "SELECT domain, type FROM web_domain WHERE (type='alias' OR type='subdomain') AND parent_domain_id = ?";
964+
$subs = $app->db->queryAllRecords($sql, $this->id);
965+
$app->tpl->setLoop('web_aliasdomains_info', $subs);
966+
963967
parent::onShowEdit();
964968
}
965969

0 commit comments

Comments
 (0)