Add update consolidado command and queuing
This commit is contained in:
38
ui/resources/views/queues/list.blade.php
Normal file
38
ui/resources/views/queues/list.blade.php
Normal file
@ -0,0 +1,38 @@
|
||||
@extends('queues.base')
|
||||
|
||||
@section('queues_content')
|
||||
<table class="ui table" id="queues">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Comando</th>
|
||||
<th>Creado</th>
|
||||
<!-- <th class="right aligned">
|
||||
Procesar
|
||||
<button class="ui tiny circular icon button" id="procesar">
|
||||
<i class="green play icon"></i>
|
||||
</button>
|
||||
</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(() => {
|
||||
sendGet(_urls.api + '/queues/pending').then((response) => {
|
||||
const table = $('#queues')
|
||||
const tbody = $('<tbody></tbody>')
|
||||
response.pending.forEach((el, i) => {
|
||||
const row = $('<tr></tr>').append(
|
||||
$('<td></td>').html(el.command)
|
||||
).append(
|
||||
$('<td></td>').html(el.created)
|
||||
)
|
||||
tbody.append(row)
|
||||
})
|
||||
table.append(tbody)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
@endpush
|
Reference in New Issue
Block a user