Skip to content

Commit 25ceb44

Browse files
committed
update
1 parent 860885e commit 25ceb44

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

interface/lib/classes/listform_actions.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public function prepareDataRow($rec)
189189
//* substitute value for select fields
190190
if(is_array($app->listform->listDef['item']) && count($app->listform->listDef['item']) > 0) {
191191
foreach($app->listform->listDef['item'] as $field) {
192+
if($rec['active'] == 'n') $rec['warn_inactive'] = 'y';
192193
$key = $field['field'];
193194
if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
194195
if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {

interface/web/sites/templates/web_vhost_domain_admin_list.htm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ <h1><tmpl_if name='vhostdomain_type' op='==' value='domain'>{tmpl_var name="doma
3737
</thead>
3838
<tbody>
3939
<tmpl_loop name="records">
40-
<tr>
40+
<tr <tmpl_if name="site_error"> class="danger" </tmpl_if> <tmpl_if name="warn_inactive"> class="danger" </tmpl_if> >
4141
<tmpl_if name="vhostdomain_type" value="domain"><td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="domain_id"}</a></td></tmpl_if>
42+
<tmpl_if name="site_error">
43+
&nbsp;
44+
<a href="#" data-toggle="tooltip" title="{tmpl_var name="site_error"}">
45+
<span class="glyphicon glyphicon-warning-sign"></span></a>
46+
</tmpl_if>
47+
</a></td></tmpl_if>
4248
<td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="active"}</a></td>
4349
<tmpl_if name="vhostdomain_type" value="domain"><td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="sys_groupid"}</a></td></tmpl_if>
4450
<td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="server_id"}</a></td>

interface/web/sites/templates/web_vhost_domain_list.htm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ <h1><tmpl_if name='vhostdomain_type' op='==' value='domain'>{tmpl_var name="doma
5252
</thead>
5353
<tbody>
5454
<tmpl_loop name="records">
55-
<tr>
55+
<tr <tmpl_if name="site_error"> class="danger" </tmpl_if> <tmpl_if name="warn_inactive"> class="danger" </tmpl_if> >
5656
<tmpl_if name="vhostdomain_type" value="domain"><td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="domain_id"}</a></td></tmpl_if>
57+
<tmpl_if name="site_error">
58+
&nbsp;
59+
<a href="#" data-toggle="tooltip" title="{tmpl_var name="site_error"}">
60+
<span class="glyphicon glyphicon-warning-sign"></span></a>
61+
</tmpl_if>
62+
</a></td></tmpl_if>
5763
<td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}">{tmpl_var name="active"}</a></td>
5864
<td><a href="#" data-load-content="sites/web_vhost_domain_edit.php?id={tmpl_var name='id'}&type={tmpl_var name='vhostdomain_type'}" data-toggle="tooltip" data-placement="bottom" title="{tmpl_var name='server_id'}">{tmpl_var name="server_id"}</a></td>
5965
<tmpl_if name="vhostdomain_type" op="!=" value="domain"><td><a href="#" data-load-content="sites/web_vhost_aliasdomain_edit.php?id={tmpl_var name='id'}">{tmpl_var name="parent_domain_id"}</a></td></tmpl_if>

0 commit comments

Comments
 (0)