mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
63 lines
4.0 KiB
PHP
63 lines
4.0 KiB
PHP
<div class="container" id="edit_satellite_dialog">
|
|
<form>
|
|
|
|
<input type="hidden" id="satelliteid" name="id" value="<?php echo $satellite->id; ?>">
|
|
<div class = "row">
|
|
<div class="mb-3 col-md-6">
|
|
<label for="nameInput"><?= __("Satellite name"); ?></label>
|
|
<input type="text" class="form-control" name="nameInput" id="nameInput" aria-describedby="nameInputHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->name; } ?>" required>
|
|
<small id="nameInputHelp" class="form-text text-muted"><?= __("Name of the Satellite"); ?></small>
|
|
</div>
|
|
<div class="mb-3 col-md-6">
|
|
<label for="exportNameInput"><?= __("Export Name"); ?></label>
|
|
<input type="text" class="form-control" name="exportNameInput" id="exportNameInput" aria-describedby="exportNameInputHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->exportname; } ?>" required>
|
|
<small id="exportNameInputHelp" class="form-text text-muted"><?= __("If external services uses another name for the satellite, like LoTW"); ?></small>
|
|
</div>
|
|
</div>
|
|
<div class = "row">
|
|
<div class="mb-3 col-md-6">
|
|
<label for="orbit"><?= __("Orbit"); ?></label>
|
|
<input type="text" class="form-control" name="orbit" id="orbit" aria-describedby="orbitHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->orbit; } ?>" required>
|
|
<small id="sorbitHelp" class="form-text text-muted"><?= __("Enter which orbit the satellite has (LEO, MEO, GEO)"); ?></small>
|
|
</div>
|
|
</div>
|
|
|
|
<button type="button" onclick="saveUpdatedSatellite(this.form);" class="btn btn-sm btn-primary"><i class="fas fa-plus-square"></i> <?= __("Save satellite"); ?></button>
|
|
|
|
</form>
|
|
<br />
|
|
<div class="table-responsive">
|
|
|
|
<table style="width:100%" class="satmodetable table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Name"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Uplink mode"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Uplink frequency"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Downlink mode"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Downlink frequency"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Edit"); ?></th>
|
|
<th style="text-align: center; vertical-align: middle;"><?= __("Delete"); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($satmodes as $mode) { ?>
|
|
<tr class="satmode_<?php echo $mode->id ?>">
|
|
<td id="modename_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;" ><?php echo htmlentities($mode->name) ?></td>
|
|
<td id="uplink_mode_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->uplink_mode ?></td>
|
|
<td id="uplink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->uplink_freq ?></td>
|
|
<td id="downlink_mode_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->downlink_mode ?></td>
|
|
<td id="downlink_freq_<?php echo $mode->id ?>" class="row_data" style="text-align: center; vertical-align: middle;"><?php echo $mode->downlink_freq ?></td>
|
|
<td id="editButton" style="text-align: center; vertical-align: middle;"><button id="<?php echo $mode->id ?>" class="btn btn-sm btn-success editSatmode"><i class="fas fa-edit"></i></button></td>
|
|
<td id="deleteButton" style="text-align: center; vertical-align: middle;"><button id="<?php echo $mode->id.'" infotext="'.htmlentities($mode->name) ?>" class="deleteSatmode btn btn-sm btn-danger"><i class="fas fa-trash-alt"></i></button></td>
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
</tbody>
|
|
<table>
|
|
|
|
<button type="button" onclick="addSatMode();" class="btn btn-sm btn-primary addsatmode"><i class="fas fa-plus-square"></i> <?= __("Add satellite mode"); ?></button>
|
|
|
|
</div>
|
|
</div>
|