diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-12 10:31:26 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-12 10:31:26 -0400 |
commit | 8bc0772562d2a9fa0b59ba5fe2f7894237dc5060 (patch) | |
tree | 6cd562024d29b1be8d5ca3aab477e88173e7b859 /webui_templates | |
parent | be10c5605d5376a8c5c14a3be5b306bb951fd0f2 (diff) | |
download | third_party-cobbler-8bc0772562d2a9fa0b59ba5fe2f7894237dc5060.tar.gz third_party-cobbler-8bc0772562d2a9fa0b59ba5fe2f7894237dc5060.tar.xz third_party-cobbler-8bc0772562d2a9fa0b59ba5fe2f7894237dc5060.zip |
Apply Al Tobey's patchset to Cobbler Web UI.
Diffstat (limited to 'webui_templates')
-rw-r--r-- | webui_templates/system_edit.tmpl | 46 | ||||
-rw-r--r-- | webui_templates/system_list.tmpl | 4 |
2 files changed, 37 insertions, 13 deletions
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl index 8034bd2..0b76b95 100644 --- a/webui_templates/system_edit.tmpl +++ b/webui_templates/system_edit.tmpl @@ -6,39 +6,63 @@ <legend>Add a System</legend> <label for="name">System Name</label> - <input type="text" size="32" style="width: 150px;" name="name" id="name"/> + <input type="text" size="32" style="width: 150px;" name="name" id="name" + #if $system + value="$system.name" + #end if + /> <br/> <label for="profile">Profile</label> <select name="profile" id="profile"> #for $profile in $profiles: - <option name="$profile.name">$profile.name</option> + <option name="$profile.name" + #if $system and $system.profile == $profile.name + selected="1" + #end if + >$profile.name</option> #end for </select> <br/> <label for="mac">MAC</label> - <input type="text" size="18" style="width: 150px;" name="mac" id="mac"/> + <input type="text" size="18" style="width: 150px;" name="mac" id="mac" + #if $system + value="$system.mac_address" + #end if + /> <br/> <label for="ip">IP</label> - <input type="text" size="15" style="width: 150px;" name="ip" id="ip"/> + <input type="text" size="15" style="width: 150px;" name="ip" id="ip" + #if $system + value="$system.ip_address" + #end if + /> <br/> <label for="hostname">Hostname</label> - <input type="text" size="128" style="width: 150px;" name="hostname" id="hostname"/> + <input type="text" size="128" style="width: 150px;" name="hostname" id="hostname" + #if $system + value="$system.hostname" + #end if + /> <br/> <label for="kopts">Kernel Options</label> - <input type="text" size="128" style="width: 150px;" name="kopts" id="kopts"/> + <input type="text" size="128" style="width: 150px;" name="kopts" id="kopts" + #if $system + value="$system.kernel_options" + #end if + /> <br/> <label for="ksmeta">Kickstart Metadata</label> - <input type="text" size="128" style="width: 150px;" name="ksmeta" id="ksmeta"/> - <br/> - - <label for="netboot">Netboot Enabled</label> - <input type="radio" name="netboot" value="y"/>Yes <input type="radio" name="netboot" value="n" checked="1"/> No + <input type="text" size="128" style="width: 150px;" name="ksmeta" id="ksmeta" + #if $system + value="$system.ks_meta" + #end if + /> <br/> <input type="submit" name="submit" value="Save"/> diff --git a/webui_templates/system_list.tmpl b/webui_templates/system_list.tmpl index 8e6d1d8..91ca65e 100644 --- a/webui_templates/system_list.tmpl +++ b/webui_templates/system_list.tmpl @@ -6,7 +6,7 @@ <caption>Cobbler Systems</caption> <tr> <th class="text">Name</th> - <th class="text">Distribution</th> + <th class="text">Profile</th> <th class="nosort"> </th> </tr> </thead> @@ -23,7 +23,7 @@ <tr class="$tr_class"> <td>${system.name}</td> <td> - <a href="$base_url/distro_view?distribution=${system.distro}">${system.distro}</a> + <a href="$base_url/profile_view?profile=${system.profile}">${system.profile}</a> </td> <td> <a href="$base_url/system_edit?name=${system.name}">edit</a> |