diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 18:29:06 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-02 18:29:06 -0400 |
commit | 3c08531c4e913268b94618b9939a44161d2dc556 (patch) | |
tree | d67d81dbe260c99c5ef4cb0e6f9eb6d47946e15f /webui_templates | |
parent | 3e29f5d729da704f608b2cd2dc7cf16a42d934f4 (diff) | |
download | third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.tar.gz third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.tar.xz third_party-cobbler-3c08531c4e913268b94618b9939a44161d2dc556.zip |
Added some code to allow assignment of default ownership from settings for new
objects. Also, ownership field for new objects in the WebUI is prepopulated with the username of the logged in user, to prevent accidental lockouts. All of this is untested at this point -- will be polished up soon.
Diffstat (limited to 'webui_templates')
-rw-r--r-- | webui_templates/distro_edit.tmpl | 2 | ||||
-rw-r--r-- | webui_templates/profile_edit.tmpl | 2 | ||||
-rw-r--r-- | webui_templates/repo_edit.tmpl | 2 | ||||
-rw-r--r-- | webui_templates/system_edit.tmpl | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/webui_templates/distro_edit.tmpl b/webui_templates/distro_edit.tmpl index 80536f5..5d19a43 100644 --- a/webui_templates/distro_edit.tmpl +++ b/webui_templates/distro_edit.tmpl @@ -188,6 +188,8 @@ function disablename(value) <input type="text" size="255" style="width: 400px;" name="owners" id="owners" #if $distro value="$ownerslist" + #else + value="$user" #end if /> <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p> diff --git a/webui_templates/profile_edit.tmpl b/webui_templates/profile_edit.tmpl index 82be534..2f7a732 100644 --- a/webui_templates/profile_edit.tmpl +++ b/webui_templates/profile_edit.tmpl @@ -324,6 +324,8 @@ function disablename(value) <input type="text" size="255" style="width: 400px;" name="owners" id="owners" #if $profile value="$ownerslist" + #else + value="$user" #end if /> diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl index b58e54f..469854a 100644 --- a/webui_templates/repo_edit.tmpl +++ b/webui_templates/repo_edit.tmpl @@ -179,6 +179,8 @@ function disablename(value) <input type="text" size="255" style="width: 400px;" name="owners" id="owners" #if $repo value="$ownerslist" + #else + value="$user" #end if /> <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p> diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl index cdb1adc..5396f1d 100644 --- a/webui_templates/system_edit.tmpl +++ b/webui_templates/system_edit.tmpl @@ -225,6 +225,8 @@ function page_onload() { <input type="text" size="255" style="width: 400px;" name="owners" id="owners" #if $system value="$ownerslist" + #else + value="$user" #end if /> <p class="context-tip">Applies only if using authz_ownership module, comma-delimited</p> |