diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-03-28 17:23:12 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-03-28 17:23:12 -0400 |
commit | af4f5696e9fa1a800a45289931ed147b7fb6f5ed (patch) | |
tree | 0a7daff06bb922489f811d11a86247f8837ff949 /webui_templates | |
parent | 08ca3dda388b39b02f58121803ca95e8c8d09ac3 (diff) | |
download | third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.tar.gz third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.tar.xz third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.zip |
Add owners list to WebUI pages, also customize function for saving
lists to avoid extra whitespace on comma delimited inputs.
Diffstat (limited to 'webui_templates')
-rw-r--r-- | webui_templates/distro_edit.tmpl | 18 | ||||
-rw-r--r-- | webui_templates/profile_edit.tmpl | 18 | ||||
-rw-r--r-- | webui_templates/repo_edit.tmpl | 17 | ||||
-rw-r--r-- | webui_templates/system_edit.tmpl | 18 |
4 files changed, 71 insertions, 0 deletions
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 |