summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-03-31 17:17:30 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-03-31 17:17:30 -0400
commit2c30d3b241e50370f4d4e0cb67ec10d35b35ff99 (patch)
tree5d3e85c17ab66776f35a89d224c457d6d3dfc25f /webui_templates
parentc3437479cc300683ac3ffd270114eed3dcaf4f39 (diff)
downloadcobbler-2c30d3b241e50370f4d4e0cb67ec10d35b35ff99.tar.gz
cobbler-2c30d3b241e50370f4d4e0cb67ec10d35b35ff99.tar.xz
cobbler-2c30d3b241e50370f4d4e0cb67ec10d35b35ff99.zip
Added ownership checks for the various objects in the WebUI to make
things more obvious. Still need to disable save/reset buttons. Note that kickstart editing (supported via the WebUI) is not yet protected and we still need to add that seperately. This is complicated. Currently anyone can sync and we'll keep it that way.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/distro_edit.tmpl2
-rw-r--r--webui_templates/profile_edit.tmpl7
-rw-r--r--webui_templates/repo_edit.tmpl6
-rw-r--r--webui_templates/system_edit.tmpl8
4 files changed, 20 insertions, 3 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index ccbb72f5..3fc2f5a9 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -17,8 +17,6 @@ function disablename(value)
#if $editable != True
<blockquote>
-$editable
-
WARNING: It looks like you do not have permission to make changes.
To recieve access, contact your Cobbler server administrator.
</blockquote>
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index 95ad1fdb..4077c57f 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -13,6 +13,13 @@ function disablename(value)
</script>
#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>
+#end if
+
<form method="post" action="$base_url?mode=profile_save">
<fieldset id="cform">
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 8d228791..bb40ee7a 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -13,6 +13,12 @@ function disablename(value)
</script>
#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>
+#end if
<form method="post" action="$base_url?mode=repo_save">
<fieldset id="cform">
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl
index bc8a0a39..309d3b28 100644
--- a/webui_templates/system_edit.tmpl
+++ b/webui_templates/system_edit.tmpl
@@ -65,7 +65,6 @@ function get_random_mac(field)
#set $defined_interfaces = [ "intf0" ]
#end if
-
###
### now generate the onload function.
###
@@ -87,6 +86,13 @@ function page_onload() {
}
</script>
+#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>
+#end if
+
<form method="post" action="$base_url?mode=system_save">
<fieldset id="cform">