Expose notes field for tempmon client and probe views

This commit is contained in:
Lance Edgar 2018-09-28 12:27:08 -05:00
parent 66807a801b
commit 6c1d67c966
2 changed files with 8 additions and 0 deletions

View file

@ -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')

View file

@ -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: