From 952cdfbd85671c2ed6dfa55fa34b33739815e288 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 1 Apr 2008 15:00:38 -0400 Subject: Move the authentication error messages in the WebUI to a common template file so they can be reused, in those messages, explain who is in the access control list. Also make the system "remove" buttons for NICs change to "hide" buttons in non-editable modes. --- webui_templates/profile_edit.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'webui_templates/profile_edit.tmpl') diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl index a0b6fdc..258a8f2 100644 --- a/webui_templates/profile_edit.tmpl +++ b/webui_templates/profile_edit.tmpl @@ -14,10 +14,8 @@ function disablename(value) #end if #if $editable != True -
-WARNING: It looks like you do not have permission to make changes. -To recieve access, contact your Cobbler server administrator. -
+#set global $owners = $profile.owners +#include "/usr/share/cobbler/webui_templates/enoaccess.tmpl" #end if
@@ -334,7 +332,7 @@ To recieve access, contact your Cobbler server administrator. - #if $profile + #if $profile and $editable == True -- cgit