summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-01 14:21:16 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-01 14:21:16 -0400
commit339e79b493b8bcf41dbf59a1931d171e04c0284d (patch)
tree01b61a458824fd5313d8391a754c4d6b9621696b /webui_templates
parent2c30d3b241e50370f4d4e0cb67ec10d35b35ff99 (diff)
downloadthird_party-cobbler-339e79b493b8bcf41dbf59a1931d171e04c0284d.tar.gz
third_party-cobbler-339e79b493b8bcf41dbf59a1931d171e04c0284d.tar.xz
third_party-cobbler-339e79b493b8bcf41dbf59a1931d171e04c0284d.zip
Remove save/edit buttons for WebUI objects we know the user can't edit,
to prevent them from trying and getting the auth error as it is processed.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/distro_edit.tmpl2
-rw-r--r--webui_templates/profile_edit.tmpl2
-rw-r--r--webui_templates/repo_edit.tmpl11
-rw-r--r--webui_templates/system_edit.tmpl2
4 files changed, 13 insertions, 4 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index 3fc2f5a..6089ac9 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -210,6 +210,7 @@ To recieve access, contact your Cobbler server administrator.
</tr>
#end if
+ #if $editable == True
<tr>
<td>
</td>
@@ -218,6 +219,7 @@ To recieve access, contact your Cobbler server administrator.
<input type="reset" name="reset" value="Reset"/>
</td>
</tr>
+ #end if
</table>
</fieldset>
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index 4077c57..a0b6fdc 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -347,6 +347,7 @@ To recieve access, contact your Cobbler server administrator.
</tr>
#end if
+ #if $editable == True
<tr>
<td>
</td>
@@ -355,6 +356,7 @@ To recieve access, contact your Cobbler server administrator.
<input type="reset" name="reset" value="Reset"/>
</td>
</tr>
+ #end if
</fieldset>
#end block body
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index bb40ee7..fdfd840 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -201,6 +201,7 @@ To recieve access, contact your Cobbler server administrator.
</tr>
#end if
+ #if $editable == True
<tr>
<td>
</td>
@@ -208,6 +209,7 @@ To recieve access, contact your Cobbler server administrator.
<input type="submit" name="submit" value="Save"/>
<input type="reset" name="reset" value="Reset"/>
</tr>
+ #end if
</table>
</fieldset>
@@ -215,10 +217,11 @@ To recieve access, contact your Cobbler server administrator.
<br/>
<blockquote>
-Note: Newly added repos contain no package content until "cobbler reposync" is run
-from the command line, which means that profiles relying on these repositories will
-not install. Placing "cobbler reposync" on a crontab to ensure frequent updates
-is recommended procedure.
+Note: Newly added repos contain no package content until
+"cobbler reposync" is run from the command line, which means
+that profiles relying on these repositories will not install.
+Placing "cobbler reposync" on a crontab to ensure frequent
+updates is recommended procedure.
</blockquote>
<br/>
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl
index 309d3b2..517f569 100644
--- a/webui_templates/system_edit.tmpl
+++ b/webui_templates/system_edit.tmpl
@@ -429,6 +429,7 @@ To recieve access, contact your Cobbler server administrator.
</tr>
#end if
+ #if $editable == True
<tr id="9008">
<td>
</td>
@@ -437,6 +438,7 @@ To recieve access, contact your Cobbler server administrator.
<input type="reset" name="reset" value="Reset"/>
</td>
</tr>
+ #end if
</table>