Expose new disk_type
field for tempmon client views
This commit is contained in:
parent
6c1d67c966
commit
5e49c2709b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue