summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cobbler/utils.py4
-rw-r--r--webui_templates/distro_edit.tmpl18
-rw-r--r--webui_templates/profile_edit.tmpl18
-rw-r--r--webui_templates/repo_edit.tmpl17
-rw-r--r--webui_templates/system_edit.tmpl18
5 files changed, 74 insertions, 1 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 9c770d0..4d2b635 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -239,7 +239,9 @@ def input_string_or_list(options,delim=","):
elif type(options) == list:
return options
elif type(options) == str:
- tokens = options.split(",")
+ tokens = options.split(delim)
+ if delim == ",":
+ tokens = [t.lstrip().rstrip() for t in tokens]
return tokens
else:
raise CX(_("invalid input type"))
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl
index 4729816..8b7d2cb 100644
--- a/webui_templates/distro_edit.tmpl
+++ b/webui_templates/distro_edit.tmpl
@@ -172,6 +172,24 @@ function disablename(value)
</td>
</tr>
+ <tr>
+ <td>
+ <label for="owners">Access Allowed For</label>
+ </td>
+ <td>
+ #if $distro
+ #set ownerslist = ','.join($distro.owners)
+ #end if
+ <input type="text" size="255" style="width: 400px;" name="owners" id="owners"
+ #if $distro
+ value="$ownerslist"
+ #end if
+ />
+ <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p>
+ </td>
+ </tr>
+
+
#if $distro
<tr>
<td>
diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl
index f9eca09..95ad1fd 100644
--- a/webui_templates/profile_edit.tmpl
+++ b/webui_templates/profile_edit.tmpl
@@ -308,6 +308,24 @@ function disablename(value)
</td>
</tr>
+ <tr>
+ <td>
+ <label for="owners">Access Allowed For</label>
+ </td>
+ <td>
+ #if $profile
+ #set ownerslist = ','.join($profile.owners)
+ #end if
+ <input type="text" size="255" style="width: 400px;" name="owners" id="owners"
+ #if $profile
+ value="$ownerslist"
+ #end if
+
+ />
+ <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p>
+ </td>
+ </tr>
+
#if $profile
<tr>
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 445218f..8d22879 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -164,6 +164,23 @@ function disablename(value)
</td>
</tr>
+ <tr>
+ <td>
+ <label for="owners">Access Allowed For</label>
+ </td>
+ <td>
+ #if $repo
+ #set ownerslist = ','.join($repo.owners)
+ #end if
+ <input type="text" size="255" style="width: 400px;" name="owners" id="owners"
+ #if $repo
+ value="$ownerslist"
+ #end if
+ />
+ <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p>
+ </td>
+ </tr>
+
#if $repo
<tr>
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl
index 22bdda4..bc8a0a3 100644
--- a/webui_templates/system_edit.tmpl
+++ b/webui_templates/system_edit.tmpl
@@ -208,6 +208,24 @@ function page_onload() {
</td>
</tr>
+ <tr>
+ <td>
+ <label for="owners">Access Allowed For</label>
+ </td>
+ <td>
+ #if $system
+ #set ownerslist = ','.join($system.owners)
+ #end if
+ <input type="text" size="255" style="width: 400px;" name="owners" id="owners"
+ #if $system
+ value="$ownerslist"
+ #end if
+ />
+ <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p>
+ </td>
+ </tr>
+
+
## ====================================== start of looping through interfaces