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