From af4f5696e9fa1a800a45289931ed147b7fb6f5ed Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 28 Mar 2008 17:23:12 -0400 Subject: Add owners list to WebUI pages, also customize function for saving lists to avoid extra whitespace on comma delimited inputs. --- webui_templates/distro_edit.tmpl | 18 ++++++++++++++++++ webui_templates/profile_edit.tmpl | 18 ++++++++++++++++++ webui_templates/repo_edit.tmpl | 17 +++++++++++++++++ webui_templates/system_edit.tmpl | 18 ++++++++++++++++++ 4 files changed, 71 insertions(+) (limited to 'webui_templates') 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) + + + + + + #if $distro + #set ownerslist = ','.join($distro.owners) + #end if + +

Applies only if using authz_ownership module, comma-delimited

+ + + + #if $distro 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) + + + + + + #if $profile + #set ownerslist = ','.join($profile.owners) + #end if + +

Applies only if using authz_ownership module, comma-delimited

+ + + #if $profile 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) + + + + + + #if $repo + #set ownerslist = ','.join($repo.owners) + #end if + +

Applies only if using authz_ownership module, comma-delimited

+ + + #if $repo 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() { + + + + + + #if $system + #set ownerslist = ','.join($system.owners) + #end if + +

Applies only if using authz_ownership module, comma-delimited

+ + + + ## ====================================== start of looping through interfaces -- cgit