diff --git a/tailbone/views/tempmon/clients.py b/tailbone/views/tempmon/clients.py index 59cc4fdf..3fd41723 100644 --- a/tailbone/views/tempmon/clients.py +++ b/tailbone/views/tempmon/clients.py @@ -62,6 +62,7 @@ class TempmonClientView(MasterView): 'config_key', 'hostname', 'location', + 'disk_type', 'delay', 'probes', 'notes', @@ -88,6 +89,9 @@ class TempmonClientView(MasterView): g.filters['location'].default_verb = 'contains' g.set_link('location') + # disk_type + g.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE) + # archived g.filters['archived'].default_active = True g.filters['archived'].default_verb = 'is_false' @@ -98,6 +102,10 @@ class TempmonClientView(MasterView): # config_key f.set_validator('config_key', self.unique_config_key) + # disk_type + f.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE) + f.widgets['disk_type'].values.insert(0, ('', "(unknown)")) + # probes f.set_renderer('probes', self.render_probes)