Code

Fixed krb key plugin design
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 09:07:18 +0000 (09:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 09:07:18 +0000 (09:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11235 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/krb_host_keys.tpl

index 2bc8890bc8c141bc0d0cbd80e57252f6535a4b31..2d92785084aa532c11ddc29068c2087e3263f1cc 100644 (file)
@@ -1,6 +1,5 @@
 {if !$is_service_key}
 <p class="seperator">&nbsp;</p>
-{/if}
 <h2><img class="center" alt="" src="images/lists/locked.png" align="middle">   {t}Kerberos keys{/t}</h2>
 
 {t}Reload key list{/t} &nbsp;<input type='image' name='reload_krb_keys' src='images/lists/reload.png' alt='{t}Reload{/t}' class='center'>
@@ -13,7 +12,7 @@
 <table style="">
 {foreach from=$server_list item=item key=key}
        <tr>
-               <td style="padding-right:100px;">{$item.REALM}</td>
+               <td style="padding-right:50px;">{$item.REALM}</td>
                <td>
                        {if $item.PRESENT}
                                <img src='images/empty.png' class="center">
                                <img src='images/empty.png' class="center">
                        {/if}
                </td>
+               <td>&nbsp;{if $item.USED != ""} <i>( {$item.USED})</i> {/if}</td>
        </tr>
+{/foreach}
+</table>
+
+{else}
+
+
+<h2><img class="center" alt="" src="images/lists/locked.png" align="middle">   {t}Kerberos keys{/t}</h2>
+<table style='width:100%;'>
        <tr>
-               <td><i>{t}Kerberos keys for this realm{/t}:</i></td>
-               <td>{$item.USED}</td>
+               <td>
+                       <b>{t}Realms{/t}</b>: &nbsp; <input type='image' name='reload_krb_keys' src='images/lists/reload.png' alt='{t}Reload{/t}' class='center'>
+                       <br>
+               </td>   
+       </tr>
+       <tr>
+               <td>
+                       <table style="">
+                       {foreach from=$server_list item=item key=key}
+                               <tr>
+                                       <td style="padding-right:4px;">{$item.REALM}</td>
+                                       <td>
+                                               {if $item.PRESENT}
+                                                       <img src='images/empty.png' class="center">
+                                                       <input type='image' class='center' name='recreate_{$key}'
+                                                               alt='{t}Recreate key{/t}' title='{t}Recreate key{/t}'
+                                                               src='images/crossref.png'>
+                                                       <input type='image' class='center' name='remove_{$key}'
+                                                               alt='{t}Remove key{/t}' title='{t}Remove key{/t}'
+                                                               src='images/lists/trash.png'>
+                                               {else}
+                                                       <input type='image' class='center' name='create_{$key}'
+                                                               alt='{t}Create key{/t}' title='{t}Create key{/t}'
+                                                               src='images/lists/new.png'>
+                                                       <img src='images/empty.png' class="center">
+                                                       <img src='images/empty.png' class="center">
+                                               {/if}
+                                       </td>
+                                       
+                                       <td style='padding-left:50px;'>{if $item.USED != ""}<b>{t}Kerberos keys for this realm{/t}</b>:&nbsp;{$item.USED}{/if}</td>
+                               </tr>
+                       {/foreach}
+                       </table>
+               </td>
        </tr>
-{/foreach}
 </table>
-{if $is_service_key}
 <p class="seperator">&nbsp;</p>
 {/if}