Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/backend/event/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{!! html()->form('POST', route('informasi.event.store'))->id('form-event')->class(
'form-horizontal
form-label-left',
form-label-left',
)->open() !!}
@include('layouts.fragments.error_message')

Expand Down
46 changes: 23 additions & 23 deletions resources/views/backend/event/form_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="col-md-6 col-sm-8 col-xs-12">
{!! html()->textarea('description', old('description', $event->description))->class('textarea my-editor')->placeholder('Deskripsi kegiatan')->style(
'width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding:
10px;',
10px;',
)->required() !!}
</div>
</div>
Expand All @@ -42,30 +42,30 @@
@push('scripts')
{!! JsValidator::formRequest('App\Http\Requests\EventRequest', '#form-event') !!}
<script type="application/javascript">
$(document).ready(function () {
if ($('#status').val() == 'CLOSED') {
add_atachment();
}

$('#status').on('change', function() {
if( this.value == 'CLOSED' ) {
$(document).ready(function () {
if ($('#status').val() == 'CLOSED') {
add_atachment();
}else{
$('#attachment_input').html("");
}
});

function add_atachment() {
$('#attachment_input').html(`
<label class="control-label col-md-3 col-sm-3 col-xs-12">Attachment <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="attachment" name="attachment" class="form-control" type="file" required>
</div>
`);
};
$('#status').on('change', function () {
if (this.value == 'CLOSED') {
add_atachment();
} else {
$('#attachment_input').html("");
}
});

//Datetimepicker
$('#waktu').daterangepicker({ timePicker: true, timePicker24Hour: true, locale: { format: 'YYYY/MM/D HH:mm' }})
});
</script>
function add_atachment() {
$('#attachment_input').html(`
<label class="control-label col-md-3 col-sm-3 col-xs-12">Attachment <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="attachment" name="attachment" class="form-control" type="file" required>
</div>
`);
};

//Datetimepicker
$('#waktu').daterangepicker({ timePicker: true, timePicker24Hour: true, locale: { format: 'YYYY/MM/D HH:mm' } })
});
</script>
@endpush
2 changes: 1 addition & 1 deletion resources/views/backend/themes/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{!! html()->form()->route('setting.themes.do-upload')->method('POST')->id('form-import')->class(
'form-horizontal
form-label-left',
form-label-left',
)->acceptsFiles() !!}

<div class="box-body">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/aki_akb/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{!! html()->form('POST', route('data.aki-akb.do_import'))->id('form-import')->class(
'form-horizontal
form-label-left',
form-label-left',
)->acceptsFiles()->open() !!}

<div class="box-body">
Expand Down
1 change: 1 addition & 0 deletions resources/views/data/aki_akb/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
serverSide: true,
ajax: {
url: "{!! route('data.aki-akb.getdata') !!}",
type: 'POST',
data: function(d) {
d.desa_id = $('#list_desa').val();
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/anggaran_desa/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{!! html()->form()->route('data.anggaran-desa.do_import')->method('POST')->id('form-import')->class(
'form-horizontal
form-label-left',
form-label-left',
)->acceptsFiles() !!}

<div class="box-body">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/anggaran_realisasi/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{!! html()->form()->route('data.anggaran-realisasi.do_import')->method('POST')->id('form-import')->class(
'form-horizontal
form-label-left',
form-label-left',
)->acceptsFiles() !!}

<div class="box-body">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/data_desa/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{!! html()->form()->route('data.data-desa.store')->method('POST')->id('form-datadesa')->class(
'form-horizontal
form-label-left',
form-label-left',
)->open() !!}

<div class="box-body">
Expand Down
10 changes: 5 additions & 5 deletions resources/views/data/data_desa/gabungan/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@
processing: true,
serverSide: true,
ajax: {
url: `{{ $settings['api_server_database_gabungan'] ?? '' }}{{ '/api/v1/desa?' .
url: `{{ $settings['api_server_database_gabungan'] ?? '' }}{{ '/api/v1/desa-datatable?' .
http_build_query([
'filter[kode_kecamatan]' => str_replace('.', '', $profil->kecamatan_id),
]) }}`,
headers: {
"Accept": "application/ld+json",
"Content-Type": "text/json; charset=utf-8",
"Authorization": `Bearer {{ $settings['api_key_database_gabungan'] ?? '' }}`
"Authorization": `Bearer {{ $settings['api_key_database_gabungan'] ?? '' }}`,
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
method: 'get',
method: 'POST',
data: function(row) {
return {
"page[size]": row.length,
"page[number]": (row.start / row.length) + 1,
"filter[search]": row.search.value,
"search": row.search.value,
"fields[config]": "id,kode_desa,nama_desa,website,path",
"sort": (row.order[0]?.dir === "asc" ? "" : "-") + row.columns[row.order[0]
?.column]
Expand Down
8 changes: 4 additions & 4 deletions resources/views/data/data_desa/gabungan/peta.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ function path_kec() {
overlayLayers['Peta Wilayah Kecamatan'] = wilayah_property(mark_kec, false);
}
}
fetch(`{{ $settings['api_server_database_gabungan'] ?? '' }}{{ '/api/v1/desa' }}?filter[id]={{ $id }}&page[size]=1&fields[config]=id,path,nama_desa`, {
fetch(`{{ $settings['api_server_database_gabungan'] ?? '' }}{{ '/api/v1/desa-datatable' }}?filter[id]={{ $id }}&page[size]=1&fields[config]=id,path,nama_desa`, {
method: 'POST',
headers: {
"Accept": "application/ld+json",
"Content-Type": "text/json; charset=utf-8",
"Authorization": `Bearer {{ $settings['api_key_database_gabungan'] ?? '' }}`
"Authorization": `Bearer {{ $settings['api_key_database_gabungan'] ?? '' }}`,
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
}).then(response => response.json())
.then(data => {
Expand Down
5 changes: 4 additions & 1 deletion resources/views/data/data_desa/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
responsive: true,
processing: true,
serverSide: true,
ajax: "{!! route('data.data-desa.getdata') !!}",
ajax: {
url: "{!! route('data.data-desa.getdata') !!}",
type: "POST",
},
columns: [{
data: 'aksi',
name: 'aksi',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/data_sarana/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{!! html()->form('POST', route('data.data-sarana.store'))->id('form-sarana')->class(
'form-horizontal
form-label-left',
form-label-left',
)->open() !!}

<div class="box-body">
Expand Down
5 changes: 3 additions & 2 deletions resources/views/data/data_sarana/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{!! html()->form('POST', route('data.data-sarana.update', $sarana->id))->id('form-sarana')->class(
'form-horizontal
form-label-left',
form-label-left',
)->open() !!}
@method('PUT')

Expand All @@ -42,7 +42,8 @@
</div>
<div class="box-footer">
<a href="{{ route('data.data-sarana.index') }}" class="btn btn-danger btn-sm"><i class="fa fa-times"></i> Batal</a>
<button type="submit" class="btn btn-primary btn-sm pull-right"><i class="fa fa-save"></i> Update</button>
<button type="submit" class="btn btn-primary btn-sm pull-right"><i class="fa fa-save"></i>
Update</button>
</div>
{!! html()->form()->close() !!}
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/data_sarana/import.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{!! html()->form('POST', route('data.data-sarana.import-excel'))->id('form-import')->class(
'form-horizontal
form-label-left',
form-label-left',
)->acceptsFiles()->open() !!}

<div class="box-body">
Expand Down
1 change: 1 addition & 0 deletions resources/views/data/data_sarana/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
serverSide: true,
ajax: {
url: "{{ route('data.data-sarana.getdata') }}",
type: "POST",
data: function(d) {
d.desa_id = $('#list_desa').val(),
d.kategori = $('#kategori').val()
Expand Down
2 changes: 1 addition & 1 deletion resources/views/data/data_suplemen/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{!! html()->form('POST', route('data.data-suplemen.store'))->id('form-faq')->class(
'form-horizontal
form-label-left',
form-label-left',
)->open() !!}

<div class="box-body">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/data/data_suplemen/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<div class="col-md-6 col-sm-6 col-xs-12">
{!! html()->textarea('keterangan')->class('textarea')->style(
'width: 100%; height: 200px; font-size: 14px;
line-height: 18px; border: 1px solid #dddddd; padding:
10px;',
line-height: 18px; border: 1px solid #dddddd; padding:
10px;',
)->placeholder('Keterangan')->value(old('keterangan', isset($suplemen) ? $suplemen->keterangan : '')) !!}
</div>
</div>
Expand Down
10 changes: 7 additions & 3 deletions resources/views/data/data_suplemen/form_detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
@if ($anggota == null)
<option value="{{ $penduduk['id'] }}">{{ $penduduk['nama'] }}</option>
@else
<option {{ $anggota->penduduk->id == $penduduk['id'] ? 'selected' : '' }} value="{{ $penduduk['id'] }}">{{ $penduduk['nama'] }}</option>
<option {{ $anggota->penduduk->id == $penduduk['id'] ? 'selected' : '' }} value="{{ $penduduk['id'] }}">
{{ $penduduk['nama'] }}
</option>
@endif
@endforeach
</select>
Expand Down Expand Up @@ -54,7 +56,7 @@
<label class="control-label col-md-3 col-sm-3 col-xs-12"
for="penduduk_id">{{ $suplemen->sasaran == 2
? 'Nama Kepala
Keluarga'
Keluarga'
: 'Nama Penduduk' }}</label>

<div class="col-md-6 col-sm-6 col-xs-12">
Expand All @@ -64,7 +66,9 @@
@if ($anggota == null)
<option value="{{ $penduduk['id'] }}">{{ $penduduk['nama'] }}</option>
@else
<option {{ $anggota->penduduk->id == $penduduk['id'] ? 'selected' : '' }} value="{{ $penduduk['id'] }}">{{ $penduduk['nama'] }}</option>
<option {{ $anggota->penduduk->id == $penduduk['id'] ? 'selected' : '' }} value="{{ $penduduk['id'] }}">
{{ $penduduk['nama'] }}
</option>
@endif
@endforeach
</select>
Expand Down
5 changes: 4 additions & 1 deletion resources/views/data/data_suplemen/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
var data = $('#suplemen-table').DataTable({
processing: true,
serverSide: true,
ajax: "{!! route('data.data-suplemen.getdata') !!}",
ajax: {
url: "{!! route('data.data-suplemen.getdata') !!}",
type: "POST",
},
columns: [{
data: 'aksi',
name: 'aksi',
Expand Down
Loading