summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-09-26 11:20:11 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-09-26 11:20:11 -0400
commit404add6b3310c8928e8edb5448334886010edaea (patch)
treebe610737461174abefb49f1b69f609deb58731e4 /webui_templates
parent11155bcb62ea986106cafcbfdb4ddef7b4167399 (diff)
downloadcobbler-404add6b3310c8928e8edb5448334886010edaea.tar.gz
cobbler-404add6b3310c8928e8edb5448334886010edaea.tar.xz
cobbler-404add6b3310c8928e8edb5448334886010edaea.zip
Fix webapp edit pages for repo checkboxes + release bump for 1.2.5
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/repo_edit.tmpl20
1 files changed, 14 insertions, 6 deletions
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 0794d2b5..cf7f82fc 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -85,9 +85,13 @@ function disablename(value)
<label for="keep_updated">Keep Updated</label>
</td>
<td>
- <input type="checkbox" name="keep_updated" id="keep_updated"
- #if (not $repo) or $repo.keep_updated
- checked="true"
+ <input type="checkbox" name="keep_updated" id="keep_updated"
+ #if $repo
+ #if str($repo.keep_updated) != "False"
+ checked="true"
+ #end if
+ #else
+ checked="true"
#end if
/>
<p class="context-tip">Uncheck to prevent the mirror from being updated again.</p>
@@ -100,9 +104,13 @@ function disablename(value)
<label for="keep_updated">Mirror Locally</label>
</td>
<td>
- <input type="checkbox" name="mirror_locally" id="mirror_locally"
- #if (not $repo) or $repo.mirror_locally
- checked="true"
+ <input type="checkbox" name="mirror_locally" id="mirror_locally"
+ #if $repo
+ #if str($repo.mirror_locally) != "False"
+ checked="true"
+ #end if
+ #else
+ checked="true"
#end if
/>
<p class="context-tip">Uncheck to reference the repository directly instead of mirroring.</p>