Update Mapping DBH SKPD
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/users","label"=>$siteTitle],
|
||||
["url"=>"/admin/users","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-lg-12 margin-tb">
|
||||
<div class="pull-left">
|
||||
<h5><i class="fa fa-bullseye"></i> @php echo $sitesubTitle; @endphp</h5>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-sm btn-secondary" href="{{ route('MappingDbhSkpd.index') }}"><i class="fa fa-arrow-left"></i> Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="frmSKPDMap" action="{{ $baseUrl."/admin/MappingDbhSkpd/".$sps->id }}" method="POST">
|
||||
@csrf
|
||||
<div class="row mt-4">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Tahun:</strong>
|
||||
<input type="text" class="form-control-plaintext" value="{{ $sps->tahun }}" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<strong>Kode Rekening:</strong>
|
||||
<input type="text" class="form-control-plaintext" value="{{ $sps->kode_rekening }}" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<strong>Nama Rekening</strong>
|
||||
<input type="text" class="form-control-plaintext" value="{{ $sps->nama_rekening }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="form-group">
|
||||
<label for="txt_id_skpd">SKPD</label>
|
||||
<select id="txt_id_skpd" name="txt_id_skpd" class="form-control" required multiple></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<input class="btn btn-sm btn-success" type="submit" value="Simpan">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#txt_id_skpd').select2({
|
||||
placeholder: 'Pilih SKPD',
|
||||
allowClear: true,
|
||||
ajax: {
|
||||
url: '{{ $baseUrl }}/skpd-search',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user