diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-01 15:00:38 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-01 15:00:38 -0400 |
commit | 952cdfbd85671c2ed6dfa55fa34b33739815e288 (patch) | |
tree | aa17f412c7eda058d7d6a5e78f76c5885ecb552a /webui_templates/profile_edit.tmpl | |
parent | 339e79b493b8bcf41dbf59a1931d171e04c0284d (diff) | |
download | third_party-cobbler-952cdfbd85671c2ed6dfa55fa34b33739815e288.tar.gz third_party-cobbler-952cdfbd85671c2ed6dfa55fa34b33739815e288.tar.xz third_party-cobbler-952cdfbd85671c2ed6dfa55fa34b33739815e288.zip |
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.
Diffstat (limited to 'webui_templates/profile_edit.tmpl')
-rw-r--r-- | webui_templates/profile_edit.tmpl | 8 |
1 files changed, 3 insertions, 5 deletions
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 -<blockquote> -WARNING: It looks like you do not have permission to make changes. -To recieve access, contact your Cobbler server administrator. -</blockquote> +#set global $owners = $profile.owners +#include "/usr/share/cobbler/webui_templates/enoaccess.tmpl" #end if <form method="post" action="$base_url?mode=profile_save"> @@ -334,7 +332,7 @@ To recieve access, contact your Cobbler server administrator. </tr> - #if $profile + #if $profile and $editable == True <tr> <td> <label for="delete">Delete</label> |