summaryrefslogtreecommitdiffstats
path: root/webui_templates/distro_edit.tmpl
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-13 18:28:28 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-13 18:28:28 -0400
commit30d26a3e234d3229e128c977b7aeefdc425ad910 (patch)
treeab53db2a8d30f88bdf91bfa00c345a6f2ac03d98 /webui_templates/distro_edit.tmpl
parentbaec248f1bf62ec6ed099d1d29516cab917655a8 (diff)
downloadthird_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.tar.gz
third_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.tar.xz
third_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.zip
Adds edit capability to distro and profile objects, plus some random hacking on the WebUI.
Also adds delete checkboxes that are currently not implemented.
Diffstat (limited to 'webui_templates/distro_edit.tmpl')
-rw-r--r--webui_templates/distro_edit.tmpl25
1 files changed, 24 insertions, 1 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index 2c32e3e..8b2b9c7 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -3,7 +3,14 @@
#block body
<form method="post" action="$base_url/distro_save">
<fieldset id="cform">
- <legend>Edit a Distro</legend>
+
+ #if $distro
+ <legend>Editing Distro</legend>
+ <input type="hidden" name="new_or_edit" value="edit"/>
+ #else
+ <legend>Adding a Distro</legend>
+ <input type="hidden" name="new_or_edit" value="new"/>
+ #end if
<label for="name">Name</label>
<input type="text" size="32" style="width: 150px;" name="name" id="name"
@@ -29,6 +36,14 @@
/>
<br/>
+ <label for="arch">Architecture</label>
+ <input type="text" size="32" style="width: 150px;" name="arch" id="arch"
+ #if $distro
+ value="$distro.arch"
+ #end if
+ />
+ <br/>
+
<label for="kopts">Kernel Options</label>
<input type="text" size="32" style="width: 150px;" name="kopts" id="kopts"
#if $distro
@@ -53,6 +68,14 @@
/>
<br/>
+ #if $distro
+ <label for="delete">Delete</label>
+ <input type="checkbox" name="delete1" value="delete1">Yes
+ <input type="checkbox" name="delete2" value="delete2">Really
+ <br/>
+ #end if
+
+
<input type="submit" name="submit" value="Save"/>
<input type="reset" name="reset" value="Reset"/>
</fieldset>