Skip to content

Commit

Permalink
Mejorado interfaz
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Robin authored and toniginard committed Feb 18, 2025
1 parent 09041e5 commit b4528d3
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions resources/views/admin/batch/instances.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@

@include('components.messages')

<div class="mt-3" style="display: flex; margin-bottom: 20px">
<select id="new-status" class="form-control" style="width: auto; margin-right: 10px">
<option value="">{{ __('common.status') }}</option>
@foreach($statusList as $key => $status)
<option value="{{ $key }}">{{ $status }}</option>
@endforeach
</select>
<button id="apply-changes" class="btn btn-primary mt-2">
{{ __('common.change_statuses') }}
</button>
</div>

<table id="instances-table" class="table table-bordered table-hover">
<thead>
<tr>
Expand All @@ -26,18 +38,6 @@
</tr>
</thead>
</table>

<div class="mt-3">
<select id="new-status" class="form-control">
<option value="">{{ __('common.status') }}</option>
@foreach($statusList as $key => $status)
<option value="{{ $key }}">{{ $status }}</option>
@endforeach
</select>
<button id="apply-changes" class="btn btn-primary mt-2">
{{ __('common.change_statuses') }}
</button>
</div>
</div>

<div id="confirmation-modal" class="modal fade" tabindex="-1" role="dialog">
Expand Down Expand Up @@ -109,7 +109,6 @@
table.ajax.reload();
$('#confirmation-modal').modal('hide');
$('#select-all').prop('checked', false);
console.log(response.message);
},
error: function() {
console.log('{{ __('common.error_occurred') }}');
Expand Down

0 comments on commit b4528d3

Please sign in to comment.