From 752d54c133ff067513232449f5f9153bfc12ed22 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 Mar 2010 16:03:33 +0000 Subject: [PATCH] updated templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16942 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/kerberos/class_krb_host_keys.inc | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc index dbc304485..e4b4e50cd 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb_host_keys.inc @@ -255,17 +255,13 @@ class krbHostKeys extends plugin $this->last_list[$prefix] = array(); /* Create actions */ - $new = " -  -  "; - $rec =" -  - - "; + $new = image('images/lists/element.png[new]', 'create_%ID%', _("Create key")); + $new.= image('images/empty.png'); + $new.= image('images/empty.png'); + + $rec = image('images/empty.png'); + $rec.= image('images/lists/reload.png', 'recreate_%ID%', _("Recreate key")); + $rec.= image('images/lists/trash.png', 'remove_%ID%', _("Remove key")); /* Check ACLs */ if(!$this->acl_is_writeable("0")){ @@ -411,7 +407,7 @@ class krbHostKeys extends plugin foreach($_POST as $name => $value){ if(preg_match("/^create_/",$name)){ - $id = preg_replace("/^create_([0-9]*)_.*$/","\\1",$name); + $id = preg_replace("/^create_([0-9]*)$/","\\1",$name); if(isset($this->last_list[$prefix][$id])){ $data = $this->last_list[$prefix][$id]; $this->create_key($data['MAC'],$data['NAME']); @@ -420,7 +416,7 @@ class krbHostKeys extends plugin break; } if(preg_match("/^recreate_/",$name)){ - $id = preg_replace("/^recreate_([0-9]*)_.*$/","\\1",$name); + $id = preg_replace("/^recreate_([0-9]*)$/","\\1",$name); if(isset($this->last_list[$prefix][$id])){ $data = $this->last_list[$prefix][$id]; $this->recreate_key($data['MAC'],$data['NAME']); @@ -429,7 +425,7 @@ class krbHostKeys extends plugin break; } if(preg_match("/^remove_/",$name)){ - $id = preg_replace("/^remove_([0-9]*)_.*$/","\\1",$name); + $id = preg_replace("/^remove_([0-9]*)$/","\\1",$name); if(isset($this->last_list[$prefix][$id])){ $data = $this->last_list[$prefix][$id]; $this->delete_key($data['MAC'],$data['NAME']); -- 2.30.2