diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-13 18:28:28 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-13 18:28:28 -0400 |
commit | 30d26a3e234d3229e128c977b7aeefdc425ad910 (patch) | |
tree | ab53db2a8d30f88bdf91bfa00c345a6f2ac03d98 /cobbler/webui/master.py | |
parent | baec248f1bf62ec6ed099d1d29516cab917655a8 (diff) | |
download | third_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.tar.gz third_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.tar.xz third_party-cobbler-30d26a3e234d3229e128c977b7aeefdc425ad910.zip |
Adds edit capability to distro and profile objects, plus some random hacking on the WebUI.
Also adds delete checkboxes that are currently not implemented.
Diffstat (limited to 'cobbler/webui/master.py')
-rw-r--r-- | cobbler/webui/master.py | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/cobbler/webui/master.py b/cobbler/webui/master.py index 58b5047..c9ca4f4 100644 --- a/cobbler/webui/master.py +++ b/cobbler/webui/master.py @@ -33,10 +33,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '2.0rc8' __CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 8) -__CHEETAH_genTime__ = 1189393696.009383 -__CHEETAH_genTimestamp__ = 'Sun Sep 9 20:08:16 2007' -__CHEETAH_src__ = 'master.tmpl' -__CHEETAH_srcLastModified__ = 'Sun Sep 9 20:02:36 2007' +__CHEETAH_genTime__ = 1189722444.76705 +__CHEETAH_genTimestamp__ = 'Thu Sep 13 18:27:24 2007' +__CHEETAH_src__ = 'webui_templates/master.tmpl' +__CHEETAH_srcLastModified__ = 'Thu Sep 13 18:27:18 2007' __CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -69,7 +69,7 @@ class master(Template): - ## CHEETAH: generated from #block body at line 46, col 1. + ## CHEETAH: generated from #block body at line 53, col 1. trans = KWS.get("trans") if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)): trans = self.transaction # is None unless self.awake() was called @@ -153,33 +153,43 @@ class master(Template): <li><a href="''') _v = VFFSL(SL,"base_url",True) # '$base_url' on line 33, col 22 if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 33, col 22. - write('''/settings_view" class="menu">Cobbler Settings</a></li> + write('''/settings_view" class="menu">Settings</a></li> <li><hr/></li> - <li><a href="''') - _v = VFFSL(SL,"base_url",True) # '$base_url' on line 35, col 22 - if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 35, col 22. - write('''/profile_list" class="menu">List Profiles</a></li> + <li>LIST</li> <li><a href="''') _v = VFFSL(SL,"base_url",True) # '$base_url' on line 36, col 22 if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 36, col 22. - write('''/distro_list" class="menu">List Distros</a></li> + write('''/distro_list" class="menu">Distros</a></li> <li><a href="''') _v = VFFSL(SL,"base_url",True) # '$base_url' on line 37, col 22 if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 37, col 22. - write('''/system_list" class="menu">List Systems</a></li> + write('''/profile_list" class="menu">Profiles</a></li> <li><a href="''') _v = VFFSL(SL,"base_url",True) # '$base_url' on line 38, col 22 if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 38, col 22. - write('''/ksfile_list" class="menu">List KS Files</a></li> + write('''/system_list" class="menu">Systems</a></li> + <li><a href="''') + _v = VFFSL(SL,"base_url",True) # '$base_url' on line 39, col 22 + if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 39, col 22. + write('''/ksfile_list" class="menu">Kickstarts</a></li> + <li>(Pending: Repos)</li> <li><hr/></li> + <li>ADD</li> <li><a href="''') - _v = VFFSL(SL,"base_url",True) # '$base_url' on line 40, col 22 - if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 40, col 22. - write('''/system_add" class="menu">Add System</a></li> + _v = VFFSL(SL,"base_url",True) # '$base_url' on line 43, col 22 + if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 43, col 22. + write('''/distro_edit" class="menu">Distro</a></li> <li><a href="''') - _v = VFFSL(SL,"base_url",True) # '$base_url' on line 41, col 22 - if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 41, col 22. - write('''/profile_add" class="menu">Add Profile</a></li> + _v = VFFSL(SL,"base_url",True) # '$base_url' on line 44, col 22 + if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 44, col 22. + write('''/profile_edit" class="menu">Profile</a></li> + <li><a href="''') + _v = VFFSL(SL,"base_url",True) # '$base_url' on line 45, col 22 + if _v is not None: write(_filter(_v, rawExpr='$base_url')) # from line 45, col 22. + write('''/system_edit" class="menu">System</a></li> + <li>(Pending: Repo)</li> + <li><hr/></li> + <li>Sync</li> </ul> </div> |