update
parent
5d7b03e15d
commit
e89ea60c6a
|
|
@ -21,13 +21,7 @@
|
|||
<div class="form-group">
|
||||
<label for="inventoryYear">Tahun Inventory:</label>
|
||||
<div class="input-group">
|
||||
<select name="inventoryYear" class="form-control">
|
||||
@for ($year = date('Y'); $year >= (date('Y')-5); $year--)
|
||||
<option value="{{ $year }}" {{ $inventoryYear == $year ? 'selected' : '' }} >
|
||||
{{ $year }}
|
||||
</option>
|
||||
@endfor
|
||||
</select>
|
||||
<input type="text" name="inventoryYear" class="form-control year" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -37,20 +31,7 @@
|
|||
<label for="instansi">Instansi:</label>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<select name="instansi" id="instansi" class="form-control">
|
||||
@if (@$scope === \App\Enums\LingkupAksesData::ALL->value)
|
||||
<option value="none" @if ($instansi === null || $instansi == 'none') selected @endif>DATA KONSOLIDASI</option>
|
||||
@if ($agencies->isNotEmpty())
|
||||
<option value="all" @if ($instansi === 'all') selected @endif>SELURUH DATA DARI PRODUSEN</option>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@foreach ($agencies as $agency)
|
||||
<option value="{{ $agency->name }}" @if ($instansi == $agency->name) selected @endif>
|
||||
{{ $agency->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="text" name="instansi" class="form-control instansi" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -247,6 +247,8 @@
|
|||
|
||||
$('.edit').on('click',function(){
|
||||
$('#formModalEdit').modal('show');
|
||||
$('.year').val($(this).attr('data-tahun'));
|
||||
$('.instansi').val($(this).attr('data-instansi'));
|
||||
});
|
||||
|
||||
function showCreateModal() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue