From c3a339cfe8635143248e65d10bf1b7b4dae065c9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Oct 2005 07:59:30 +0000 Subject: [PATCH] Added status if a file is uploaded git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1475 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiTemplateEntry.inc | 7 +++++++ plugins/admin/fai/faiTemplateEntry.tpl | 1 + 2 files changed, 8 insertions(+) diff --git a/plugins/admin/fai/class_faiTemplateEntry.inc b/plugins/admin/fai/class_faiTemplateEntry.inc index c4e8dad3a..a3096f173 100644 --- a/plugins/admin/fai/class_faiTemplateEntry.inc +++ b/plugins/admin/fai/class_faiTemplateEntry.inc @@ -49,6 +49,13 @@ class faiTemplateEntry extends plugin } } + + $status="
"._("No file uploaded"); + if(strlen($this->Object_FAItemplateFile)){ + $status="
".sprintf(_("File uploaded, size : %s byte"),strlen($this->Object_FAItemplateFile)); + } + $smarty->assign("status",$status); + foreach($this->attributes as $attrs){ $smarty->assign($attrs,stripslashes($this->$attrs)); } diff --git a/plugins/admin/fai/faiTemplateEntry.tpl b/plugins/admin/fai/faiTemplateEntry.tpl index 57d1d9e73..6afe0286f 100644 --- a/plugins/admin/fai/faiTemplateEntry.tpl +++ b/plugins/admin/fai/faiTemplateEntry.tpl @@ -37,6 +37,7 @@ + {$status} -- 2.30.2