Skip to content

Commit 18198f6

Browse files
committed
Add link
1 parent ea7a320 commit 18198f6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

interface/web/sites/templates/web_vhost_domain_edit.htm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99

1010

1111
{tmpl_hook name="begin_form"}
12-
<tmpl_if name="vhostdomain_type" value="domain">
12+
<tmpl_if name="vhostdomain_type" value="domain">
1313
<tmpl_if name="web_aliasdomains_info">
1414
Children:
1515
<ul>
16-
<tmpl_loop name="web_aliasdomains_info"><li>{tmpl_var name='type'}: {tmpl_var name='domain'}</li></tmpl_loop>
16+
<tmpl_loop name="web_aliasdomains_info">
17+
<li>{tmpl_var name='type'}: <a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='domain_id'}" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="link">{tmpl_var name='domain'}</a></li>
18+
</tmpl_loop>
1719
</ul>
1820
<br />
1921
</tmpl_if>

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ 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 = ?";
963+
$sql = "SELECT domain_id, domain, type FROM web_domain WHERE (type='alias' OR type='subdomain') AND parent_domain_id = ?";
964964
$subs = $app->db->queryAllRecords($sql, $this->id);
965965
$app->tpl->setLoop('web_aliasdomains_info', $subs);
966966

0 commit comments

Comments
 (0)