Provison hanging
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($hanging_list ?? [] as $pr) {
|
||||
foreach ($starting_list ?? [] as $pr) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?= $pr->id ?></th>
|
||||
@@ -69,6 +69,7 @@
|
||||
<th scope="col">Default URL</th>
|
||||
<th scope="col">Added</th>
|
||||
<th scope="col">Prov. Status</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -77,9 +78,12 @@
|
||||
?>
|
||||
<tr style="text-align: left;">
|
||||
<th scope="row"><?= $pr->id ?></th>
|
||||
<td><a href="https://<?=$pr->internal_url ?>" target="_blank"><?= $pr->internal_url ?></a></td>
|
||||
<td><a href="https://<?= $pr->internal_url ?>" target="_blank"><?= $pr->internal_url ?></a>
|
||||
<br><b>PORT:</b><?=$pr->provision_port ?>
|
||||
</td>
|
||||
<td><?= $pr->added ?></td>
|
||||
<td><?= $pr->status ?></td>
|
||||
<td><button id="<?= $pr->uid ?>" class="btn btn-info btn-xs" onclick="return restartProvsion('<?= $pr->uid ?>');" >Restart</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -102,11 +106,11 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($hanging_list ?? [] as $pr) {
|
||||
foreach ($completed_list ?? [] as $pr) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?= $pr->id ?></th>
|
||||
<td><?= $pr->internal_url ?></td>
|
||||
<td><a href="https://<?= $pr->internal_url ?>" target="_blank"><?= $pr->internal_url ?></a></td>
|
||||
<td><?= $pr->added ?></td>
|
||||
<td><?= $pr->status ?></td>
|
||||
</tr>
|
||||
@@ -121,6 +125,27 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function restartProvsion(link_id) {
|
||||
if (confirm("Are you sure you want to restart this provisioning?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$(link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/home/resend_pending?link_id=" + link_id
|
||||
}).done(function (data) {
|
||||
$(link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user