summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-02-27 17:57:32 -0500
committerMichael DeHaan <mdehaan@redhat.com>2009-02-27 17:57:32 -0500
commit847f4da4ba03fa23e50509bed607a2ea5011ac09 (patch)
treee33b5f7843f9755b6833e4d7351fea055711def8 /webui_templates
parent12f11d7a3232d0c0adb82f24522adec6ca06833e (diff)
downloadcobbler-847f4da4ba03fa23e50509bed607a2ea5011ac09.tar.gz
cobbler-847f4da4ba03fa23e50509bed607a2ea5011ac09.tar.xz
cobbler-847f4da4ba03fa23e50509bed607a2ea5011ac09.zip
Allow src and noarch in API and webapp for repos, make the set_repo function smarter.
Conflicts: cobbler/utils.py
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/distro_edit.tmpl6
-rw-r--r--webui_templates/repo_edit.tmpl18
2 files changed, 24 insertions, 0 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index bf52f407..adf2731b 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -162,6 +162,12 @@ function disablename(value)
#else
<input type="radio" name="arch" id="arch" value="ppc64">ppc64
#end if
+
+ #if $distro and $distro.arch == "s390"
+ <input type="radio" name="arch" id="arch" value="s390" checked>s390
+ #else
+ <input type="radio" name="arch" id="arch" value="s390">s390
+ #end if
#if $distro and $distro.arch == "s390x"
<input type="radio" name="arch" id="arch" value="s390x" checked>s390x
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 78544759..62f0e9ed 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -228,6 +228,11 @@ function disablename(value)
#else
<input type="radio" name="arch" id="arch" value="ppc64">ppc64
#end if
+ #if $repo and $repo.arch == "s390"
+ <input type="radio" name="arch" id="arch" value="s390" checked>s390
+ #else
+ <input type="radio" name="arch" id="arch" value="s390">s390
+ #end if
#if $repo and $repo.arch == "s390x"
<input type="radio" name="arch" id="arch" value="s390x" checked>s390x
#else
@@ -238,6 +243,19 @@ function disablename(value)
#else
<input type="radio" name="arch" id="arch" value="ia64">ia64
#end if
+ #if $repo and $repo.arch == "noarch"
+ <input type="radio" name="arch" id="arch" value="noarch" checked>noarch
+ #else
+ <input type="radio" name="arch" id="arch" value="noarch">noarch
+ #end if
+ #if $repo and $repo.arch == "src"
+ <input type="radio" name="arch" id="arch" value="src" checked>src
+ #else
+ <input type="radio" name="arch" id="arch" value="src">src
+ #end if
+
+
+
<p class="context-tip">What architecture is the repo?</p>
</td>
</tr>