-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#368 Sediakan impor data Bantuan dari OpenSID.
Co-authored-by: Andi Fahruddin Akas <[email protected]>
- Loading branch information
1 parent
f0ea366
commit 539298b
Showing
6 changed files
with
268 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
@extends('layouts.dashboard_template') | ||
|
||
@section('content') | ||
<section class="content-header"> | ||
<h1> | ||
{{ $page_title ?? "Page Title" }} | ||
<small>{{ $page_description ?? '' }}</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="{{ route('dashboard') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li> | ||
<li><a href="{{ route('data.program-bantuan.index') }}">Program Bantuan</a></li> | ||
<li class="active">{{ $page_title }}</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content container-fluid"> | ||
|
||
@include('partials.flash_message') | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
|
||
{!! Form::open( [ 'route' => 'data.program-bantuan.do_import', 'method' => 'post','id' => 'form-import', 'class' => 'form-horizontal form-label-left', 'files' => true ] ) !!} | ||
|
||
<div class="box-body"> | ||
|
||
@if (count($errors) > 0) | ||
<div class="alert alert-danger"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<strong>Ups!</strong> Ada beberapa masalah dengan masukan Anda.<br><br> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
</div> | ||
@endif | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label class="control-label col-md-4 col-sm-3 col-xs-12" for="data_file">Data Program Bantuan <span class="required">*</span></label> | ||
|
||
<div class="col-md-8 col-sm-6 col-xs-12"> | ||
<input type="file" id="data_file" name="file" class="form-control" required accept=".zip, application/zip"/> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="well"> | ||
<p>Instruksi Unggah Data:</p> | ||
<p>Silahkan unduh template unggah data di sini: <a href="{{ asset('storage/template_upload/program_bantuan.zip') }}">Unduh</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="box-footer"> | ||
<div class="pull-right"> | ||
<div class="control-group"> | ||
<a href="{{ route('data.penduduk.index') }}"> | ||
<button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i> Batal</button> | ||
</a> | ||
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-upload"></i> Impor</button> | ||
</div> | ||
</div> | ||
</div> | ||
{!! Form::close() !!} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
@include(('partials.asset_select2')) | ||
@include(('partials.asset_datetimepicker')) | ||
@push('scripts') | ||
<script> | ||
$(function () { | ||
function readURL(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
reader.onload = function (e) { | ||
$('#showgambar').attr('src', e.target.result); | ||
} | ||
reader.readAsDataURL(input.files[0]); | ||
} | ||
} | ||
$("#foto").change(function () { | ||
readURL(this); | ||
}); | ||
//Datetimepicker | ||
$('.datepicker').each(function () { | ||
var $this = $(this); | ||
$this.datetimepicker({ | ||
format: 'YYYY-MM-D' | ||
}); | ||
}); | ||
}) | ||
</script> | ||
@endpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.