|  | @@ -1,37 +1,14 @@
 | 
	
		
			
				|  |  |  import React, { Component } from "react";
 | 
	
		
			
				|  |  |  import Router from "next/router";
 | 
	
		
			
				|  |  |  import ContentWrapper from "@/components/Layout/ContentWrapper";
 | 
	
		
			
				|  |  | -import Datetime from "react-datetime";
 | 
	
		
			
				|  |  | -import moment from "moment";
 | 
	
		
			
				|  |  | -import Scrollable from "@/components/Common/Scrollable";
 | 
	
		
			
				|  |  | -import Datatable from "@/components/Tables/Datatable";
 | 
	
		
			
				|  |  | +import { getSanksi } from "@/actions/sanksi";
 | 
	
		
			
				|  |  | +import { addKeberatan } from "@/actions/keberatan";
 | 
	
		
			
				|  |  | +import Header from "@/components/Main/Header";
 | 
	
		
			
				|  |  | +import DetailPT from "@/components/Main/DetailPT";
 | 
	
		
			
				|  |  | +import DetailSanksi from "@/components/Main/DetailSanksi";
 | 
	
		
			
				|  |  | +import Riwayat from "@/components/PT/Keberatan/Riwayat";
 | 
	
		
			
				|  |  |  import Link from "next/link";
 | 
	
		
			
				|  |  | -import {
 | 
	
		
			
				|  |  | -	Row,
 | 
	
		
			
				|  |  | -	Col,
 | 
	
		
			
				|  |  | -	Card,
 | 
	
		
			
				|  |  | -	CardHeader,
 | 
	
		
			
				|  |  | -	CardBody,
 | 
	
		
			
				|  |  | -	CardTitle,
 | 
	
		
			
				|  |  | -	FormGroup,
 | 
	
		
			
				|  |  | -	FormFeedback,
 | 
	
		
			
				|  |  | -	FormText,
 | 
	
		
			
				|  |  | -	Label,
 | 
	
		
			
				|  |  | -	InputGroup,
 | 
	
		
			
				|  |  | -	InputGroupAddon,
 | 
	
		
			
				|  |  | -	InputGroupButtonDropdown,
 | 
	
		
			
				|  |  | -	InputGroupText,
 | 
	
		
			
				|  |  | -	Input,
 | 
	
		
			
				|  |  | -	Button,
 | 
	
		
			
				|  |  | -	DropdownToggle,
 | 
	
		
			
				|  |  | -	DropdownMenu,
 | 
	
		
			
				|  |  | -	CustomInput,
 | 
	
		
			
				|  |  | -	DropdownItem,
 | 
	
		
			
				|  |  | -	Modal,
 | 
	
		
			
				|  |  | -	ModalHeader,
 | 
	
		
			
				|  |  | -	ModalBody,
 | 
	
		
			
				|  |  | -	ModalFooter,
 | 
	
		
			
				|  |  | -} from "reactstrap";
 | 
	
		
			
				|  |  | +import { Row, Col, Card, CardBody, FormGroup, Button, Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  let Dropzone = null;
 | 
	
		
			
				|  |  |  class DropzoneWrapper extends Component {
 | 
	
	
		
			
				|  | @@ -47,47 +24,19 @@ class DropzoneWrapper extends Component {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const styleHeaderText = {
 | 
	
		
			
				|  |  | -	color: "brown",
 | 
	
		
			
				|  |  | -};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -const selectInstanceId = 1;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -class FormStandard extends Component {
 | 
	
		
			
				|  |  | +class Keberatan extends Component {
 | 
	
		
			
				|  |  |  	state = {
 | 
	
		
			
				|  |  | -		dropdownOpen: false,
 | 
	
		
			
				|  |  | -		splitButtonOpen: false,
 | 
	
		
			
				|  |  |  		modal: false,
 | 
	
		
			
				|  |  |  		modal1: false,
 | 
	
		
			
				|  |  | -		keteranganLaporan: "",
 | 
	
		
			
				|  |  | -		tanggal: moment().format("D MMMM YYYY"),
 | 
	
		
			
				|  |  |  		files: [],
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	static getInitialProps({ query }) {
 | 
	
		
			
				|  |  | -		return { query };
 | 
	
		
			
				|  |  | +	static async getInitialProps({ query }) {
 | 
	
		
			
				|  |  | +		const { noSanksi } = query;
 | 
	
		
			
				|  |  | +		const sanksi = await getSanksi({ noSanksi, ptId: "0BCE4DB7-B207-445D-8D03-0C54B7688252" });
 | 
	
		
			
				|  |  | +		return { query, sanksi };
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	setKeteranganPelaporan = (e) => {
 | 
	
		
			
				|  |  | -		this.setState({ keteranganLaporan: e.target.value });
 | 
	
		
			
				|  |  | -	};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -	setTanggal = (moment) => {
 | 
	
		
			
				|  |  | -		this.setState({ tanggal: moment.format("D MMMM YYYY") });
 | 
	
		
			
				|  |  | -	};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -	toggleDropDown = () => {
 | 
	
		
			
				|  |  | -		this.setState({
 | 
	
		
			
				|  |  | -			dropdownOpen: !this.state.dropdownOpen,
 | 
	
		
			
				|  |  | -		});
 | 
	
		
			
				|  |  | -	};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -	toggleSplit = () => {
 | 
	
		
			
				|  |  | -		this.setState({
 | 
	
		
			
				|  |  | -			splitButtonOpen: !this.state.splitButtonOpen,
 | 
	
		
			
				|  |  | -		});
 | 
	
		
			
				|  |  | -	};
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  	onDrop = (files) => {
 | 
	
		
			
				|  |  |  		this.setState({
 | 
	
		
			
				|  |  |  			files: files.map((file) =>
 | 
	
	
		
			
				|  | @@ -120,20 +69,18 @@ class FormStandard extends Component {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	onSubmit = async (e) => {
 | 
	
		
			
				|  |  |  		e.preventDefault();
 | 
	
		
			
				|  |  | -		const { number, ptId } = this.props.query;
 | 
	
		
			
				|  |  | +		const { noSanksi } = this.props.query;
 | 
	
		
			
				|  |  |  		const formdata = new FormData();
 | 
	
		
			
				|  |  | -		formdata.append("description", this.state.keteranganLaporan);
 | 
	
		
			
				|  |  | -		formdata.append("date", this.state.tanggal);
 | 
	
		
			
				|  |  |  		if (this.state.files.length > 0) {
 | 
	
		
			
				|  |  |  			this.state.files.forEach((e) => {
 | 
	
		
			
				|  |  |  				formdata.append("files", e);
 | 
	
		
			
				|  |  |  			});
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		const inserted = await insertPemeriksaan({ number, ptId }, formdata);
 | 
	
		
			
				|  |  | -		if (inserted) {
 | 
	
		
			
				|  |  | +		const added = await addKeberatan({ noSanksi, ptId: "0BCE4DB7-B207-445D-8D03-0C54B7688252" }, formdata);
 | 
	
		
			
				|  |  | +		if (added) {
 | 
	
		
			
				|  |  |  			Router.push({
 | 
	
		
			
				|  |  | -				pathname: "/app/pemeriksaan",
 | 
	
		
			
				|  |  | +				pathname: "/app/pt/keberatan",
 | 
	
		
			
				|  |  |  			});
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  	};
 | 
	
	
		
			
				|  | @@ -153,14 +100,16 @@ class FormStandard extends Component {
 | 
	
		
			
				|  |  |  		});
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	handleSimpan = () => {
 | 
	
		
			
				|  |  | +	handleKirim = (e) => {
 | 
	
		
			
				|  |  |  		this.setState({
 | 
	
		
			
				|  |  |  			modal1: !this.state.modal1,
 | 
	
		
			
				|  |  |  		});
 | 
	
		
			
				|  |  | +		this.onSubmit(e);
 | 
	
		
			
				|  |  |  	};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	render() {
 | 
	
		
			
				|  |  |  		const { files } = this.state;
 | 
	
		
			
				|  |  | +		const { sanksi } = this.props;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		const thumbs = files.map((file, index) => (
 | 
	
		
			
				|  |  |  			<Col md={3} key={index}>
 | 
	
	
		
			
				|  | @@ -169,19 +118,12 @@ class FormStandard extends Component {
 | 
	
		
			
				|  |  |  		));
 | 
	
		
			
				|  |  |  		return (
 | 
	
		
			
				|  |  |  			<ContentWrapper unwrap>
 | 
	
		
			
				|  |  | -				<div className="bg-cover" style={{ backgroundImage: "url(/static/img/profile-bg.png)" }}>
 | 
	
		
			
				|  |  | -					<div className="p-4 text-center" style={styleHeaderText}>
 | 
	
		
			
				|  |  | -						<img className="img-thumbnail rounded-circle thumb128" src="/static/img/univ-avatar.png" alt="Avatar" />
 | 
	
		
			
				|  |  | -						<h3 className="m-0">Universitas Satyagama</h3>
 | 
	
		
			
				|  |  | -						<p>0742/O/1990</p>
 | 
	
		
			
				|  |  | -						<p>Jalan Kamal Raya No 2-A Cengkareng</p>
 | 
	
		
			
				|  |  | -					</div>
 | 
	
		
			
				|  |  | -				</div>
 | 
	
		
			
				|  |  | +				<Header />
 | 
	
		
			
				|  |  |  				<div className="p-3">
 | 
	
		
			
				|  |  |  					<div className="content-heading">
 | 
	
		
			
				|  |  |  						<div>Permohonan Keberatan</div>
 | 
	
		
			
				|  |  |  						<div className="ml-auto">
 | 
	
		
			
				|  |  | -							<Link href="/app/pemeriksaan">
 | 
	
		
			
				|  |  | +							<Link href="/app/keberatan">
 | 
	
		
			
				|  |  |  								<button className="btn btn-sm btn-secondary text-sm">< back</button>
 | 
	
		
			
				|  |  |  							</Link>
 | 
	
		
			
				|  |  |  						</div>
 | 
	
	
		
			
				|  | @@ -192,240 +134,72 @@ class FormStandard extends Component {
 | 
	
		
			
				|  |  |  								<CardBody>
 | 
	
		
			
				|  |  |  									<Row>
 | 
	
		
			
				|  |  |  										<Col lg={12}>
 | 
	
		
			
				|  |  | -											<p className="lead bb">Detail Laporan</p>
 | 
	
		
			
				|  |  | -											<form className="form-horizontal">
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Nomor Laporan:</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<strong>987654</strong>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Nama Perguruan Tinggi:</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<strong>Universitas Satyagama</strong>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Jenis Pelanggaran:</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<Scrollable height="75px" className="list-group">
 | 
	
		
			
				|  |  | -															<ul>
 | 
	
		
			
				|  |  | -																<li>Lorem ipsum dolor sit amet.</li>
 | 
	
		
			
				|  |  | -																<li>Lorem, ipsum dolor.</li>
 | 
	
		
			
				|  |  | -																<li>Lorem ipsum dolor sit.</li>
 | 
	
		
			
				|  |  | -															</ul>
 | 
	
		
			
				|  |  | -														</Scrollable>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Keterangan Laporan:</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<Scrollable height="100px" className="list-group">
 | 
	
		
			
				|  |  | -															<p>
 | 
	
		
			
				|  |  | -																Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet dicta placeat enim illo aspernatur adipisci neque repellendus itaque blanditiis fugit. Quam obcaecati sed
 | 
	
		
			
				|  |  | -																perferendis facere.
 | 
	
		
			
				|  |  | -															</p>
 | 
	
		
			
				|  |  | -														</Scrollable>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Dibuat Pada:</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<strong>23 Januari 2022</strong>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">Status</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<div className="badge badge-info">Ditindaklanjuti</div>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup row>
 | 
	
		
			
				|  |  | -													<Col md="4">File Pendukung</Col>
 | 
	
		
			
				|  |  | -													<Col md="8">
 | 
	
		
			
				|  |  | -														<Scrollable height="120px" className="list-group">
 | 
	
		
			
				|  |  | -															<table className="table table-bordered bg-transparent">
 | 
	
		
			
				|  |  | -																<tbody>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-code"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				database.controller.js
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-image"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				baground-lg.png
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-code"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				picture.controller.js
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-word"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				applicat-diagrams.docx
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-code"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				database.controller.js
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																	<tr>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<em className="fa-lg far fa-file-code"></em>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																		<td>
 | 
	
		
			
				|  |  | -																			<a className="text-muted" href="">
 | 
	
		
			
				|  |  | -																				database.controller.js
 | 
	
		
			
				|  |  | -																			</a>
 | 
	
		
			
				|  |  | -																		</td>
 | 
	
		
			
				|  |  | -																	</tr>
 | 
	
		
			
				|  |  | -																</tbody>
 | 
	
		
			
				|  |  | -															</table>
 | 
	
		
			
				|  |  | -														</Scrollable>
 | 
	
		
			
				|  |  | -													</Col>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<Button color="primary" onClick={this.toggleModal}>
 | 
	
		
			
				|  |  | -													Ajukan Permohonan Keberatan
 | 
	
		
			
				|  |  | -												</Button>
 | 
	
		
			
				|  |  | -												<Modal isOpen={this.state.modal} toggle={this.toggleModal}>
 | 
	
		
			
				|  |  | -													{/* <ModalHeader toggle={this.toggleModal}>Banding</ModalHeader> */}
 | 
	
		
			
				|  |  | -													<ModalBody>Apakah anda akan mengajukan permohonan keberatan atas pengenaan sanksi?</ModalBody>
 | 
	
		
			
				|  |  | -													<ModalFooter>
 | 
	
		
			
				|  |  | -														<Button color="primary" onClick={this.toggleModal1}>
 | 
	
		
			
				|  |  | -															Ya
 | 
	
		
			
				|  |  | -														</Button>{" "}
 | 
	
		
			
				|  |  | -														<Button color="secondary" onClick={this.toggleModal}>
 | 
	
		
			
				|  |  | -															Tidak
 | 
	
		
			
				|  |  | -														</Button>
 | 
	
		
			
				|  |  | -													</ModalFooter>
 | 
	
		
			
				|  |  | -												</Modal>
 | 
	
		
			
				|  |  | -												<Modal isOpen={this.state.modal1} toggle={this.toggleModal1}>
 | 
	
		
			
				|  |  | -													<ModalHeader toggle={this.toggleModal1}>Upload Dokumen Permohonan Keberatan</ModalHeader>
 | 
	
		
			
				|  |  | -													<ModalBody>
 | 
	
		
			
				|  |  | -														<form className="form-horizontal" method="get" action="/" onSubmit={this.onSubmit}>
 | 
	
		
			
				|  |  | -															<FormGroup>
 | 
	
		
			
				|  |  | -																<label>Dokumen Permohonan Keberatan</label>
 | 
	
		
			
				|  |  | -																<div>
 | 
	
		
			
				|  |  | -																	<DropzoneWrapper className="" onDrop={this.onDrop}>
 | 
	
		
			
				|  |  | -																		{({ getRootProps, getInputProps, isDragActive }) => {
 | 
	
		
			
				|  |  | -																			return (
 | 
	
		
			
				|  |  | -																				<div {...getRootProps()} className={"dropzone card p-3 " + (isDragActive ? "dropzone-drag-active" : "")}>
 | 
	
		
			
				|  |  | -																					<input {...getInputProps()} />
 | 
	
		
			
				|  |  | -																					<div className="dropzone-previews flex">
 | 
	
		
			
				|  |  | -																						{this.state.files.length > 0 ? <Row>{thumbs}</Row> : <div className="text-center dz-default dz-message">Drop files here to upload</div>}
 | 
	
		
			
				|  |  | -																					</div>
 | 
	
		
			
				|  |  | -																					<div className="d-flex align-items-center">
 | 
	
		
			
				|  |  | -																						<small className="ml-auto">
 | 
	
		
			
				|  |  | -																							<button type="button" className="btn btn-link" onClick={this.clearFiles}>
 | 
	
		
			
				|  |  | -																								Clear files
 | 
	
		
			
				|  |  | -																							</button>
 | 
	
		
			
				|  |  | -																						</small>
 | 
	
		
			
				|  |  | -																					</div>
 | 
	
		
			
				|  |  | +											<DetailSanksi data={sanksi.data[0]} />
 | 
	
		
			
				|  |  | +											<p>Setelah membaca surat keputusan sanksi tersebut, jika Perguruan Tinggi bermaksud mengajukan permohonan keberatan maka dapat menekan tombol di bawah ini (21 Hari Kerja)</p>
 | 
	
		
			
				|  |  | +											<Button color="primary" onClick={this.toggleModal}>
 | 
	
		
			
				|  |  | +												Ajukan Permohonan Keberatan
 | 
	
		
			
				|  |  | +											</Button>
 | 
	
		
			
				|  |  | +											<Modal isOpen={this.state.modal} toggle={this.toggleModal}>
 | 
	
		
			
				|  |  | +												{/* <ModalHeader toggle={this.toggleModal}>Banding</ModalHeader> */}
 | 
	
		
			
				|  |  | +												<ModalBody>Apakah anda akan mengajukan permohonan keberatan atas pengenaan sanksi?</ModalBody>
 | 
	
		
			
				|  |  | +												<ModalFooter>
 | 
	
		
			
				|  |  | +													<Button color="primary" onClick={this.toggleModal1}>
 | 
	
		
			
				|  |  | +														Ya
 | 
	
		
			
				|  |  | +													</Button>{" "}
 | 
	
		
			
				|  |  | +													<Button color="secondary" onClick={this.toggleModal}>
 | 
	
		
			
				|  |  | +														Tidak
 | 
	
		
			
				|  |  | +													</Button>
 | 
	
		
			
				|  |  | +												</ModalFooter>
 | 
	
		
			
				|  |  | +											</Modal>
 | 
	
		
			
				|  |  | +											<Modal isOpen={this.state.modal1} toggle={this.toggleModal1}>
 | 
	
		
			
				|  |  | +												<ModalHeader toggle={this.toggleModal1}>Unggah Dokumen Permohonan Keberatan</ModalHeader>
 | 
	
		
			
				|  |  | +												<ModalBody>
 | 
	
		
			
				|  |  | +													<form className="form-horizontal" method="get" action="/" onSubmit={this.onSubmit}>
 | 
	
		
			
				|  |  | +														<FormGroup>
 | 
	
		
			
				|  |  | +															<label>Dalam hal mengajukan permohonan keberatan maka wajib mengunggah dokumen pendukungnya</label>
 | 
	
		
			
				|  |  | +															<div>
 | 
	
		
			
				|  |  | +																<DropzoneWrapper className="" onDrop={this.onDrop}>
 | 
	
		
			
				|  |  | +																	{({ getRootProps, getInputProps, isDragActive }) => {
 | 
	
		
			
				|  |  | +																		return (
 | 
	
		
			
				|  |  | +																			<div {...getRootProps()} className={"dropzone card p-3 " + (isDragActive ? "dropzone-drag-active" : "")}>
 | 
	
		
			
				|  |  | +																				<input {...getInputProps()} />
 | 
	
		
			
				|  |  | +																				<div className="dropzone-previews flex">
 | 
	
		
			
				|  |  | +																					{this.state.files.length > 0 ? <Row>{thumbs}</Row> : <div className="text-center dz-default dz-message">Drop files here to upload</div>}
 | 
	
		
			
				|  |  | +																				</div>
 | 
	
		
			
				|  |  | +																				<div className="d-flex align-items-center">
 | 
	
		
			
				|  |  | +																					<small className="ml-auto">
 | 
	
		
			
				|  |  | +																						<button type="button" className="btn btn-link" onClick={this.clearFiles}>
 | 
	
		
			
				|  |  | +																							Clear files
 | 
	
		
			
				|  |  | +																						</button>
 | 
	
		
			
				|  |  | +																					</small>
 | 
	
		
			
				|  |  |  																				</div>
 | 
	
		
			
				|  |  | -																			);
 | 
	
		
			
				|  |  | -																		}}
 | 
	
		
			
				|  |  | -																	</DropzoneWrapper>
 | 
	
		
			
				|  |  | -																	<span className="form-text">Multiple files upload</span>
 | 
	
		
			
				|  |  | -																</div>
 | 
	
		
			
				|  |  | -															</FormGroup>
 | 
	
		
			
				|  |  | -														</form>
 | 
	
		
			
				|  |  | -													</ModalBody>
 | 
	
		
			
				|  |  | -													<ModalFooter>
 | 
	
		
			
				|  |  | -														<Button color="primary" onClick={this.handleSimpan}>
 | 
	
		
			
				|  |  | -															Kirim
 | 
	
		
			
				|  |  | -														</Button>{" "}
 | 
	
		
			
				|  |  | -													</ModalFooter>
 | 
	
		
			
				|  |  | -												</Modal>
 | 
	
		
			
				|  |  | -											</form>
 | 
	
		
			
				|  |  | +																			</div>
 | 
	
		
			
				|  |  | +																		);
 | 
	
		
			
				|  |  | +																	}}
 | 
	
		
			
				|  |  | +																</DropzoneWrapper>
 | 
	
		
			
				|  |  | +																<span className="form-text">Multiple files upload</span>
 | 
	
		
			
				|  |  | +															</div>
 | 
	
		
			
				|  |  | +														</FormGroup>
 | 
	
		
			
				|  |  | +													</form>
 | 
	
		
			
				|  |  | +												</ModalBody>
 | 
	
		
			
				|  |  | +												<ModalFooter>
 | 
	
		
			
				|  |  | +													<Button color="primary" onClick={this.handleKirim}>
 | 
	
		
			
				|  |  | +														Kirim
 | 
	
		
			
				|  |  | +													</Button>
 | 
	
		
			
				|  |  | +												</ModalFooter>
 | 
	
		
			
				|  |  | +											</Modal>
 | 
	
		
			
				|  |  |  										</Col>
 | 
	
		
			
				|  |  | -										{/* <Col lg={6}>
 | 
	
		
			
				|  |  | -											<p className="lead bb">Permohonan Keberatan</p>
 | 
	
		
			
				|  |  | -											<form className="form-horizontal" method="get" action="/" onSubmit={this.onSubmit}>
 | 
	
		
			
				|  |  | -												<FormGroup>
 | 
	
		
			
				|  |  | -													<label>Upload dokumen</label>
 | 
	
		
			
				|  |  | -													<div>
 | 
	
		
			
				|  |  | -														<DropzoneWrapper className="" onDrop={this.onDrop}>
 | 
	
		
			
				|  |  | -															{({ getRootProps, getInputProps, isDragActive }) => {
 | 
	
		
			
				|  |  | -																return (
 | 
	
		
			
				|  |  | -																	<div {...getRootProps()} className={"dropzone card p-3 " + (isDragActive ? "dropzone-drag-active" : "")}>
 | 
	
		
			
				|  |  | -																		<input {...getInputProps()} />
 | 
	
		
			
				|  |  | -																		<div className="dropzone-previews flex">
 | 
	
		
			
				|  |  | -																			{this.state.files.length > 0 ? <Row>{thumbs}</Row> : <div className="text-center dz-default dz-message">Drop files here to upload</div>}
 | 
	
		
			
				|  |  | -																		</div>
 | 
	
		
			
				|  |  | -																		<div className="d-flex align-items-center">
 | 
	
		
			
				|  |  | -																			<small className="ml-auto">
 | 
	
		
			
				|  |  | -																				<button type="button" className="btn btn-link" onClick={this.clearFiles}>
 | 
	
		
			
				|  |  | -																					Clear files
 | 
	
		
			
				|  |  | -																				</button>
 | 
	
		
			
				|  |  | -																			</small>
 | 
	
		
			
				|  |  | -																		</div>
 | 
	
		
			
				|  |  | -																	</div>
 | 
	
		
			
				|  |  | -																);
 | 
	
		
			
				|  |  | -															}}
 | 
	
		
			
				|  |  | -														</DropzoneWrapper>
 | 
	
		
			
				|  |  | -														<span className="form-text">Multiple files upload</span>
 | 
	
		
			
				|  |  | -													</div>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -												<FormGroup>
 | 
	
		
			
				|  |  | -													<div>
 | 
	
		
			
				|  |  | -														<button className="btn btn-sm btn-primary" type="submit">
 | 
	
		
			
				|  |  | -															Kirim
 | 
	
		
			
				|  |  | -														</button>
 | 
	
		
			
				|  |  | -													</div>
 | 
	
		
			
				|  |  | -												</FormGroup>
 | 
	
		
			
				|  |  | -											</form>
 | 
	
		
			
				|  |  | -										</Col> */}
 | 
	
		
			
				|  |  |  									</Row>
 | 
	
		
			
				|  |  |  								</CardBody>
 | 
	
		
			
				|  |  |  							</Card>
 | 
	
		
			
				|  |  | -							{/* END card */}
 | 
	
		
			
				|  |  |  						</Col>
 | 
	
		
			
				|  |  |  						<Col xl="3">
 | 
	
		
			
				|  |  | -							<div className="card card-default">
 | 
	
		
			
				|  |  | -								<div className="card-body">
 | 
	
		
			
				|  |  | -									<div className="text-center">
 | 
	
		
			
				|  |  | -										<h3 className="mt-0">Universitas Satyagama</h3>
 | 
	
		
			
				|  |  | -										<p>0742/O/1990</p>
 | 
	
		
			
				|  |  | -									</div>
 | 
	
		
			
				|  |  | -									<hr />
 | 
	
		
			
				|  |  | -									<ul className="list-unstyled px-4">
 | 
	
		
			
				|  |  | -										<li>
 | 
	
		
			
				|  |  | -											<em className="fa fa-globe fa-fw mr-3"></em>www.satyagama.ac.id
 | 
	
		
			
				|  |  | -										</li>
 | 
	
		
			
				|  |  | -										<li>
 | 
	
		
			
				|  |  | -											<em className="fa fa-graduation-cap fa-fw mr-3"></em>Status Pelanggaran : Tidak Ada
 | 
	
		
			
				|  |  | -										</li>
 | 
	
		
			
				|  |  | -									</ul>
 | 
	
		
			
				|  |  | -								</div>
 | 
	
		
			
				|  |  | -							</div>
 | 
	
		
			
				|  |  | +							<DetailPT />
 | 
	
		
			
				|  |  | +						</Col>
 | 
	
		
			
				|  |  | +					</Row>
 | 
	
		
			
				|  |  | +					<Row>
 | 
	
		
			
				|  |  | +						<Col>
 | 
	
		
			
				|  |  | +							<Riwayat data={sanksi.data[0]} />
 | 
	
		
			
				|  |  |  						</Col>
 | 
	
		
			
				|  |  |  					</Row>
 | 
	
		
			
				|  |  |  				</div>
 | 
	
	
		
			
				|  | @@ -434,4 +208,4 @@ class FormStandard extends Component {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -export default FormStandard;
 | 
	
		
			
				|  |  | +export default Keberatan;
 |