1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/AdminDB/admindb.tpl
2015-08-19 11:28:28 +02:00

70 lines
2.6 KiB
Smarty

<div id="admindb" class="tabelem" title="{$c->__('db.legend')}">
<ul class="flex large">
<li class="subheader">{$c->__('db.legend')}</li>
{if="!$connected"}
<li class="block large condensed">
<span class="icon bubble color red">
<i class="zmdi zmdi-code-setting"></i>
</span>
<span>{$c->__('db.connect_error')}</span>
<p>{$errors}</p>
</li>
{else}
<li class="block large">
<span class="icon bubble color green">
<i class="zmdi zmdi-code-setting"></i>
</span>
<span>{$c->__('db.connect_success')}</span>
</li>
{if="null !== $infos"}
<li class="block large condensed action">
<div class="action">
<a class="button" onclick="{$db_update}"> {$c->__('button.update')}</a>
</div>
<span class="icon bubble color orange">
<i class="zmdi zmdi-refresh"></i>
</span>
<span>{$c->__('db.update')}</span>
{loop="$infos"}
<p>{$value}</p>
{/loop}
</li>
{else}
<li class="block large">
<span class="icon bubble color green">
<i class="zmdi zmdi-refresh"></i>
</span>
<span>{$c->__('db.up_to_date')}</span>
</li>
{/if}
{/if}
</ul>
<form class="flex padded_top_bottom">
<div class="block">
<input value="{$dbtype}" disabled/>
<label for="logLevel">{$c->__('db.type')}</label>
</div>
<div class="block">
<input value="{$conf.username}" disabled/>
<label for="dbUsername">{$c->__('db.username')}</label>
</div>
<div class="block">
<input value="{$c->hidePassword($conf.password)}" disabled/>
<label for="dbPassword">{$c->__('db.password')}</label>
</div>
<div class="block">
<input value="{$conf.host}" disabled/>
<label for="dbHost">{$c->__('db.host')}</label>
</div>
<div class="block">
<input value="{$conf.port}" disabled/>
<label for="dbPort">{$c->__('db.port')}</label>
</div>
<div class="block">
<input value="{$conf.database}" disabled/>
<label for="dbName">{$c->__('db.name')}</label>
</div>
</form>
</div>