summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-18 17:21:42 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-18 17:21:42 -0400
commit36bb2e494412b689a71b9f139a655f97965c8ee9 (patch)
tree52b9ba9f5ed20fc1aa0595027cfd1aa0a510b3b5 /webui_templates
parent19cc21593ecfa1d8c644e3fa853f51e36f935838 (diff)
downloadthird_party-cobbler-36bb2e494412b689a71b9f139a655f97965c8ee9.tar.gz
third_party-cobbler-36bb2e494412b689a71b9f139a655f97965c8ee9.tar.xz
third_party-cobbler-36bb2e494412b689a71b9f139a655f97965c8ee9.zip
Arch and breed in the WUI are now radio buttons, plus a workaround for an issue where the values
of a disabled form field do not appear to be set to the browser.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/distro_edit.tmpl48
1 files changed, 39 insertions, 9 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index bd76bfe..cbf4cbb 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -63,11 +63,26 @@ function disablename(value)
<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
- />
+
+ #if $distro and $distro.arch == "x86"
+ <input type="radio" size="32" name="arch" id="arch" value="x86" checked>x86
+ #else
+ <input type="radio" size="32" name="arch" id="arch" value="x86">x86
+ #end if
+ #if $distro and $distro.arch == "x86_64"
+ <input type="radio" size="32" name="arch" id="arch" value="x86_64" checked>x86_64
+ #else
+ <input type="radio" size="32" name="arch" id="arch" value="x86_64">x86_64
+ #end if
+ #if $distro and $distro.arch == "ia64"
+ <input type="radio" size="32" name="arch" id="arch" value="ia64" checked>ia64
+ #else
+ <input type="radio" size="32" name="arch" id="arch" value="ia64">ia64
+ #end if
+
+
+
+
<br/>
<label for="kopts">Kernel Options</label>
@@ -87,11 +102,26 @@ function disablename(value)
<br/>
<label for="breed">Breed</label>
- <input type="text" size="32" style="width: 150px;" name="breed" id="breed"
- #if $distro
- value="$distro.breed"
+ #if $distro and $distro.breed == "redhat"
+ <input type="radio" size="32" name="breed" id="breed" value="redhat" checked>Red Hat Based
+ #else
+ #if $distro and $distro.breed != "redhat"
+ <input type="radio" size="32" name="breed" id="breed" value="redhat">Red Hat Based
+ #else
+ <input type="radio" size="32" name="breed" id="breed" value="redhat" checked>Red Hat Based
#end if
- />
+ #end if
+ #if $distro and $distro.breed == "debian"
+ <input type="radio" size="32" name="breed" id="breed" value="debian" checked>Debian
+ #else
+ <input type="radio" size="32" name="breed" id="breed" value="debian">Debian
+ #end if
+ #if $distro and $distro.breed == "suse"
+ <input type="radio" size="32" name="breed" id="breed" value="suse" checked>SuSE
+ #else
+ <input type="radio" size="32" name="breed" id="breed" value="suse">SuSE
+ #end if
+
<br/>
#if $distro