forked from kevinowino869/mitrobill
add devices list and description
This commit is contained in:
31
ui/ui/app-devices.tpl
Normal file
31
ui/ui/app-devices.tpl
Normal file
@ -0,0 +1,31 @@
|
||||
{include file="sections/header.tpl"}
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
Installed Devices
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
{foreach $devices as $d}
|
||||
<div class="col-md-3">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading"><b>{$d['title']}</b> <small>by {$d['author']}</small></div>
|
||||
<div class="panel-body" style="overflow-y: scroll;">
|
||||
<div style="max-height: 50px; min-height: 50px;">{nl2br(strip_tags($d['description']))}</div>
|
||||
</div>
|
||||
<div class="panel-footer" style="overflow-y: scroll;">
|
||||
<center style="max-height: 40px; min-height: 40px;">
|
||||
<span class="label label-default">{$d['file']}</span>
|
||||
{foreach $d['url'] as $name => $url}
|
||||
<a href="{$url}" target="_blank" class="label label-primary">{$name}</a>
|
||||
{/foreach}
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="sections/footer.tpl"}
|
@ -433,6 +433,8 @@
|
||||
href="{$_url}settings/maintenance">{Lang::T('Maintenance Mode')}</a></li>
|
||||
<li {if $_routes[1] eq 'notifications' }class="active" {/if}><a
|
||||
href="{$_url}settings/notifications">{Lang::T('User Notification')}</a></li>
|
||||
<li {if $_routes[1] eq 'devices' }class="active" {/if}><a
|
||||
href="{$_url}settings/devices">{Lang::T('Devices')}</a></li>
|
||||
{/if}
|
||||
{if in_array($_admin['user_type'],['SuperAdmin','Admin','Agent'])}
|
||||
<li {if $_routes[1] eq 'users' }class="active" {/if}><a
|
||||
|
Reference in New Issue
Block a user