update
This commit is contained in:
@@ -114,10 +114,9 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="input-group mb-3" id="sondes_envea_div">
|
||||
<div class="input-group mb-3" id="sondes_envea_div"></div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="envea_table"></div>
|
||||
|
||||
|
||||
<!--<button type="submit" class="btn btn-primary">Submit</button>-->
|
||||
@@ -611,10 +610,18 @@ function add_sondeEnveaContainer() {
|
||||
|
||||
// Create container div if it doesn't exist
|
||||
if ($('#sondes_envea_div').length === 0) {
|
||||
$('#advanced_options').append('<div id="sondes_envea_div" class="input-group mt-4 border p-3 rounded"><legend>Sondes Envea</legend></div>');
|
||||
$('#advanced_options').append('<div id="sondes_envea_div" class="input-group mt-4 border p-3 rounded"><legend>Sondes Envea</legend><p>Plouf</p></div>');
|
||||
} else {
|
||||
// Clear existing content if container exists
|
||||
$('#sondes_envea_div').html('<legend>Sondes Envea</legend>');
|
||||
$('#envea_table').html('<table class="table table-striped table-bordered">'+
|
||||
'<thead><tr><th scope="col">Software</th><th scope="col">Hardware (PCB)</th></tr></thead>'+
|
||||
'<tbody>' +
|
||||
'<tr><td>ttyAMA5</td><td>NPM1</td></tr>' +
|
||||
'<tr><td>ttyAMA4</td><td>NPM2</td></tr>' +
|
||||
'<tr><td>ttyAMA3</td><td>NPM3</td></tr>' +
|
||||
'<tr><td>ttyAMA2</td><td>SARA</td></tr>' +
|
||||
'</tbody></table>');
|
||||
}
|
||||
|
||||
// Loop through each sonde and create UI elements
|
||||
|
||||
Reference in New Issue
Block a user