fix dnssec list template
authorStricted <info@stricted.de>
Mon, 16 Feb 2015 03:54:02 +0000 (04:54 +0100)
committerStricted <info@stricted.de>
Mon, 16 Feb 2015 03:54:02 +0000 (04:54 +0100)
templates/default/index.tpl
templates/default/secList.tpl

index 66307fd1227cde69a5e00d2f70ffd8d4da7fb061..2b86577ed6440c6430313f7f8f1bc947a934080f 100644 (file)
                </div>
        </div>
 </div>
-<div class="row">
-       <div class="col-lg-12">
-               <div class="panel panel-default">
-                       <div class="panel-heading">Domains <span class="badge badge-black">{$count}</span></div>
-                       <div class="panel-body">
-                               {pages controller='DomainList'}
-                               <div class="table-responsive">
-                                       <table class="table table-bordered table-hover radius table-striped">
-                                               <thead>
-                                                       <tr>
-                                                               <th><a class="sorting{if $sortField == 'id'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=id&sortOrder={if $sortField == 'id' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">ID</a></th>
-                                                               <th><a class="sorting{if $sortField == 'origin'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=origin&sortOrder={if $sortField == 'origin' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">Name</a></th>
-                                                               <th><a class="sorting{if $sortField == 'serial'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=serial&sortOrder={if $sortField == 'serial' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">Serial</a></th>
-                                                               <th>Records</th>
-                                                               <th>Manage</th>
-                                                       </tr>
-                                               </thead>
-
-                                               <tbody>
-                                                       {foreach from=$domains item=domain}
-                                                       <tr>
-                                                               <td>{$domain['id']}</td>
-                                                               <td>{if $domain['active'] != 1}<span class="badge badge-red">{lang}domain.disabled{/lang}</span> {/if}<a href="index.php?page=RecordList&id={$domain['id']}">{$domain['origin']}</a></td>
-                                                               <td>{$domain['serial']}</td>
-                                                               <td>{$domain['rrc']}</td>
-                                                               <td>
-                                                                       <span class="fa fa-remove ttips pointer deleteDomain" delete-id="{$domain['id']}" delete-confirm="{lang}domain.delete.message{/lang}" title="{lang}button.delete{/lang}"></span>
-                                                                       <span class="fa fa{if $domain['active']}-check{/if}-square-o ttips pointer toggleDomain" toggle-id="{$domain['id']}" title="{if $domain['active']}{lang}button.disable{/lang}{else}{lang}button.enable{/lang}{/if}" data-disable-message="{lang}button.disable{/lang}" data-enable-message="{lang}button.enable{/lang}"></span>
-                                                                       <a href="index.php?page=SecList&id={$domain['id']}" class="ttips" title="Edit DNSSEC"><span class="fa fa-key"></span></a>
-                                                               </td>
-                                                       </tr>
-                                                       {/foreach}
-                                               </tbody>
-                                       </table>
+{hascontent}
+       <div class="row">
+               <div class="col-lg-12">
+                       <div class="panel panel-default">
+                               <div class="panel-heading">Domains <span class="badge badge-black">{$count}</span></div>
+                               <div class="panel-body">
+                                       {pages controller='DomainList'}
+                                       <div class="table-responsive">
+                                               <table class="table table-bordered table-hover radius table-striped">
+                                                       <thead>
+                                                               <tr>
+                                                                       <th><a class="sorting{if $sortField == 'id'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=id&sortOrder={if $sortField == 'id' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">ID</a></th>
+                                                                       <th><a class="sorting{if $sortField == 'origin'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=origin&sortOrder={if $sortField == 'origin' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">Name</a></th>
+                                                                       <th><a class="sorting{if $sortField == 'serial'}_{$sortOrder|strtolower}{/if}" href="index.php?page=DomainList&pageNo={$pageNo}&sortField=serial&sortOrder={if $sortField == 'serial' && $sortOrder == 'ASC'}DESC{else}ASC{/if}">Serial</a></th>
+                                                                       <th>Records</th>
+                                                                       <th>Manage</th>
+                                                               </tr>
+                                                       </thead>
+                                                       
+                                                       <tbody>
+                                                               {content}
+                                                               {foreach from=$domains item=domain}
+                                                               <tr>
+                                                                       <td>{$domain['id']}</td>
+                                                                       <td>{if $domain['active'] != 1}<span class="badge badge-red">{lang}domain.disabled{/lang}</span> {/if}<a href="index.php?page=RecordList&id={$domain['id']}">{$domain['origin']}</a></td>
+                                                                       <td>{$domain['serial']}</td>
+                                                                       <td>{$domain['rrc']}</td>
+                                                                       <td>
+                                                                               <span class="fa fa-remove ttips pointer deleteDomain" delete-id="{$domain['id']}" delete-confirm="{lang}domain.delete.message{/lang}" title="{lang}button.delete{/lang}"></span>
+                                                                               <span class="fa fa{if $domain['active']}-check{/if}-square-o ttips pointer toggleDomain" toggle-id="{$domain['id']}" title="{if $domain['active']}{lang}button.disable{/lang}{else}{lang}button.enable{/lang}{/if}" data-disable-message="{lang}button.disable{/lang}" data-enable-message="{lang}button.enable{/lang}"></span>
+                                                                               <a href="index.php?page=SecList&id={$domain['id']}" class="ttips" title="Edit DNSSEC"><span class="fa fa-key"></span></a>
+                                                                       </td>
+                                                               </tr>
+                                                               {/foreach}
+                                                               {/content}
+                                                       </tbody>
+                                               </table>
+                                       </div>
+                                       {pages controller='DomainList'}
                                </div>
-                               {pages controller='DomainList'}
                        </div>
                </div>
        </div>
-</div>
+{hascontentelse}
+       <div class="alert alert-icon alert-info">
+               <i class="fa fa-info-circle"></i> No Records found.
+       </div>
+{/hascontent}
 {include file="footer.tpl"}
\ No newline at end of file
index 031ea11afeb61b5ac9e8fd32eda0a76a1b227b7b..adb51040dfa903e0376edfa4273824be96ae3170 100644 (file)
@@ -6,42 +6,46 @@
        </ol>
 </div>
 {hascontent}
-<div class="c-block" id="tableHover">
-       <div class="table-head">
-               <h3 class="panel-title">Records <span class="badge label-white">{$records|count}</span></h3>
-       </div>
-       <div class="table-responsive">
-               <table class="table table-bordered table-hover radius table-striped">
-                       <thead>
-                               <tr>
-                                       <th>Algorithmus</a></th>
-                                       <th>Type</th>
-                                       <th>DNSSEC Public Key</a></th>
-                                       <th>DNSSEC Private Key</th>
-                                       <th>verwalten</th>
-                               </tr>
-                       </thead>
+       <div class="row">
+               <div class="col-lg-12">
+                       <div class="panel panel-default">
+                               <div class="panel-heading">Records <span class="badge badge-black">{$records|count}</span></div>
+                               <div class="panel-body">
+                                       <div class="table-responsive">
+                                               <table class="table table-bordered table-hover radius table-striped">
+                                                       <thead>
+                                                               <tr>
+                                                                       <th>Algorithmus</a></th>
+                                                                       <th>Type</th>
+                                                                       <th>DNSSEC Public Key</a></th>
+                                                                       <th>DNSSEC Private Key</th>
+                                                                       <th>verwalten</th>
+                                                               </tr>
+                                                       </thead>
 
-                       <tbody>
-                               {content}
-                                       {foreach from=$records item=record}
-                                       <tr>
-                                               <td>{$record['algo']}</td>
-                                               <td>{if $record['active'] != 1}<span class="badge badge-red">{lang}domain.disabled{/lang}</span> {/if}{$record['type']}</td>
-                                               <td>{$record['public']|substr:0:20}&hellip;</td>
-                                               <td>{$record['private']|substr:0:20}&hellip;</td>
-                                               <td>
-                                                       <span class="fa fa-remove ttips pointer deleteSec" delete-id="{$record['id']}" delete-confirm="{lang}record.delete.message{/lang}" title="{lang}button.delete{/lang}"></span>
-                                                       <span class="fa fa{if $record['active']}-check{/if}-square-o ttips pointer toggleSec" toggle-id="{$record['id']}" title="{if $record['active']}{lang}button.disable{/lang}{else}{lang}button.enable{/lang}{/if}" data-disable-message="{lang}button.disable{/lang}" data-enable-message="{lang}button.enable{/lang}"></span>
-                                                       <span class="fa fa-pencil ttips pointer" title="Edit"></span>
-                                               </td>
-                                       </tr>
-                                       {/foreach}
-                               {/content}
-                       </tbody>
-               </table>
+                                                       <tbody>
+                                                               {content}
+                                                                       {foreach from=$records item=record}
+                                                                       <tr>
+                                                                               <td>{$record['algo']}</td>
+                                                                               <td>{if $record['active'] != 1}<span class="badge badge-red">{lang}domain.disabled{/lang}</span> {/if}{$record['type']}</td>
+                                                                               <td>{$record['public']|substr:0:20}&hellip;</td>
+                                                                               <td>{$record['private']|substr:0:20}&hellip;</td>
+                                                                               <td>
+                                                                                       <span class="fa fa-remove ttips pointer deleteSec" delete-id="{$record['id']}" delete-confirm="{lang}record.delete.message{/lang}" title="{lang}button.delete{/lang}"></span>
+                                                                                       <span class="fa fa{if $record['active']}-check{/if}-square-o ttips pointer toggleSec" toggle-id="{$record['id']}" title="{if $record['active']}{lang}button.disable{/lang}{else}{lang}button.enable{/lang}{/if}" data-disable-message="{lang}button.disable{/lang}" data-enable-message="{lang}button.enable{/lang}"></span>
+                                                                                       <span class="fa fa-pencil ttips pointer" title="Edit"></span>
+                                                                               </td>
+                                                                       </tr>
+                                                                       {/foreach}
+                                                               {/content}
+                                                       </tbody>
+                                               </table>
+                                       </div>
+                               </div>
+                       </div>
+               </div>
        </div>
-</div>
 {hascontentelse}
        <div class="alert alert-icon alert-info">
                <i class="fa fa-info-circle"></i> No Records found.