Expose notes field for tempmon client and probe views
This commit is contained in:
parent
66807a801b
commit
6c1d67c966
|
@ -64,6 +64,7 @@ class TempmonClientView(MasterView):
|
|||
'location',
|
||||
'delay',
|
||||
'probes',
|
||||
'notes',
|
||||
'enabled',
|
||||
'online',
|
||||
'archived',
|
||||
|
@ -100,6 +101,9 @@ class TempmonClientView(MasterView):
|
|||
# probes
|
||||
f.set_renderer('probes', self.render_probes)
|
||||
|
||||
# notes
|
||||
f.set_type('notes', 'text')
|
||||
|
||||
if self.creating or self.editing:
|
||||
f.remove_fields('probes',
|
||||
'online')
|
||||
|
|
|
@ -69,6 +69,7 @@ class TempmonProbeView(MasterView):
|
|||
'critical_temp_max',
|
||||
'therm_status_timeout',
|
||||
'status_alert_timeout',
|
||||
'notes',
|
||||
'enabled',
|
||||
'status',
|
||||
]
|
||||
|
@ -112,6 +113,9 @@ class TempmonProbeView(MasterView):
|
|||
# appliance_type
|
||||
f.set_enum('appliance_type', self.enum.TEMPMON_APPLIANCE_TYPE)
|
||||
|
||||
# notes
|
||||
f.set_type('notes', 'text')
|
||||
|
||||
# status
|
||||
f.set_enum('status', self.enum.TEMPMON_PROBE_STATUS)
|
||||
if self.creating or self.editing:
|
||||
|
|
Loading…
Reference in a new issue