summaryrefslogtreecommitdiffstats
path: root/webui_templates/profile_edit.tmpl
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-27 18:42:37 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-27 18:42:37 -0400
commit80d02d941fa5dcfee655e7b7cc576c21b6366894 (patch)
tree176186e048180b857ef44df5e1bd117ced22aba0 /webui_templates/profile_edit.tmpl
parent70fe33a03789a0abbd386fd3007d18f5e66ab8eb (diff)
downloadthird_party-cobbler-80d02d941fa5dcfee655e7b7cc576c21b6366894.tar.gz
third_party-cobbler-80d02d941fa5dcfee655e7b7cc576c21b6366894.tar.xz
third_party-cobbler-80d02d941fa5dcfee655e7b7cc576c21b6366894.zip
AT's patch to add multi-select capability when picking what profiles get what repos.
Diffstat (limited to 'webui_templates/profile_edit.tmpl')
-rw-r--r--webui_templates/profile_edit.tmpl19
1 files changed, 12 insertions, 7 deletions
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index 1727b4e..28af17e 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -199,18 +199,23 @@ function disablename(value)
</td>
</tr>
- ## FIXME: this should be a multi-select
<tr>
<td>
<label for="repos">Repo Names</label>
</td>
<td>
- <input type="text" style="width: 150px;" name="repos" id="repos"
- #if $profile
- value="$profile.repos"
- #end if
- />
- <p class="context-tip">Example: "el5i386updates el5epeltesting el5mycontent"</p>
+
+ <select name="repos" id="repos" multiple="1">
+ <option value="--none--"> -- none -- </option>
+ #for $repo in $repos:
+ <option value="$repo.name"
+ #if $profile and $repo.name in $profile.repos
+ selected="1"
+ #end if
+ >$repo.name</option>
+ #end for
+ </select>
+ <p class="context-tip">Select one or many additional repos to automatically assign to the target system. (this is a good place to include an updates repo)</p>
</td>
</tr>