EditApprovalMatrix.js 30.7 KB
Newer Older
1
import React, { Component } from 'react';
2 3
import { TextField, Typography } from '@material-ui/core';
import { DateTimePicker, KeyboardDatePicker, DatePicker} from "@material-ui/pickers";
4 5
import Autocomplete from '@material-ui/lab/Autocomplete';
import * as R from 'ramda'
6
import format from "date-fns/format";
7
import api from "../../api";
d.arizona's avatar
d.arizona committed
8
import Images from '../../assets/Images';
a.bairuha's avatar
a.bairuha committed
9
import Constant from '../../library/Constant';
10 11

export default class EditApprovalMatrix extends Component {
12 13 14
    constructor(props) {
        super(props)
        this.state = {
15 16
            id: '',
            order: '',
17
            status: "",
18 19
            startDate: null,
            endDate: null,
20 21
            date: new Date(),
            approvedBy: null,
22 23 24 25
            getApprovedBy: null,
            types: null,
            getTypes: null,
            operators: null,
26
            getOperators: null,
27 28 29 30 31 32
            errorType: false,
            msgErrType: '',
            errorApproved: false,
            msgErrApproved: '',
            errorOperator: false,
            msgErrOperator: '',
33 34 35 36 37 38
            errorOrder: false,
            msgErrOrder: '',
            errorStartDate: false,
            errorEndDate: false,
            msgErrorStartDate: "",
            msgErrorEndDate: ""
39 40 41 42
        }
    }

    componentDidMount() {
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
43
        if (this.props.type === 'edit') {
44
            this.getDetailAM()
45 46 47
            // let getApprovedBy = {
            //     user_id: data.user_id,
            //     fullname: data.fullname
48
            // })
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
49
        }
50 51 52 53 54 55
    }

    getDetailAM() {
        api.create().getDetailAM(this.props.data[1]).then(response => {
            // console.log(response)
            if (response.data) {
a.bairuha's avatar
a.bairuha committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
                if (response.ok) {
                    if (response.data.status === "success") {
                        let data = response.data.data
                        this.setState({
                            id: data.approval_matrix_id,
                            startDate: data.start_date,
                            endDate: data.end_date,
                            order: data.orders,
                            getUserId: data.user_id,
                            getTypeId: data.approval_type_id,
                            getOperatorId: data.operator_type_id,
                            status: data.status,
                            created: data.created,
                            updated: data.updated === null ? "" : data.updated 
                        }, () => this.getUserData(), this.getTypeData(), this.getOperatorData())
                    } else {
                        this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
a.bairuha's avatar
a.bairuha committed
73
                            if (response.data.message.includes("Someone Logged In")) {
a.bairuha's avatar
a.bairuha committed
74 75 76 77 78 79 80 81 82
                                setTimeout(() => {
                                    localStorage.removeItem(Constant.TOKEN)
                                    window.location.reload();
                                }, 1000);
                            }
                        })
                    }
                } else {
                    this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
83
                }
a.bairuha's avatar
a.bairuha committed
84 85
            } else {
                this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
86 87
            }
        })
88 89 90 91
    }

    getUserData() {
        api.create().getApprovedByAM().then((response) => {
a.bairuha's avatar
a.bairuha committed
92 93 94 95 96 97 98
            if (response.data) {
                if (response.ok) {
                    if (response.data.status == 'success') {
                        let data = response.data.data
                        let userData = data.map((item) => {
                            return {
                                user_id: item.user_id,
d.arizona's avatar
d.arizona committed
99
                                fullname: item.fullname == null? "(NO_NAME)" : item.fullname
a.bairuha's avatar
a.bairuha committed
100 101 102 103 104 105 106 107 108 109 110 111
                            }
                        })
                        let index = userData.findIndex((val) => val.user_id == this.state.getUserId)
                        let defaultProps = {
                            options: userData,
                            getOptionLabel: (option) => option.fullname,
                        };
                        // this.setState({ approvedBy: defaultProps, userData: response.data.data, getApprovedBy: index == -1 ? userData[0]: userData[index] })
                        this.setState({ approvedBy: defaultProps, userData: response.data.data, getApprovedBy: index == -1 ? this.setState({ errorApproved: true, msgErrApproved: 'Approver Name has been Inactive.' }): userData[index] })
                        
                    } else {
                        // alert('Pemberi Persetujuan: ' +response.data.message)
a.bairuha's avatar
a.bairuha committed
112
                        if (response.data.message.includes("Someone Logged In")) {
a.bairuha's avatar
a.bairuha committed
113 114 115 116 117 118 119 120 121
                            this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
                                setTimeout(() => {
                                    localStorage.removeItem(Constant.TOKEN)
                                    window.location.reload();
                                }, 1000);
                            })
                        } else {
                            this.setState({ alert: true, messageAlert: 'Pemberi Persetujuan: ' +response.data.message, tipeAlert: 'error' })
                        }
122
                    }
a.bairuha's avatar
a.bairuha committed
123 124 125
                } else {
                    this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
                }
126
            } else {
a.bairuha's avatar
a.bairuha committed
127
                this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
128 129
            }
        })
130 131
    }

132 133
    getOperatorData() {
        api.create().getOperatorAM().then((response) => {
a.bairuha's avatar
a.bairuha committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
            if (response.data) {
                if (response.ok) {
                    if (response.data.status == 'success') {
                        let data = response.data.data
                        let operatorData = data.map((item) => {
                            return {
                                operator_type_id: item.operator_type_id,
                                operator_type_name: item.operator_type_name
                            }
                        })
                        let index = operatorData.findIndex((val) => val.operator_type_id == this.state.getOperatorId)
                        let operatorProps = {
                            options: operatorData,
                            getOptionLabel: (option) => option.operator_type_name,
                        };
                        this.setState({ operators: operatorProps, operatorData: response.data.data, getOperators: index == -1 ? operatorData[0]: operatorData[index] })                
                    } else {
                        // alert('Operator: ' +response.data.message)
a.bairuha's avatar
a.bairuha committed
152
                        if (response.data.message.includes("Someone Logged In")) {
a.bairuha's avatar
a.bairuha committed
153 154 155 156 157 158 159 160 161
                            this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
                                setTimeout(() => {
                                    localStorage.removeItem(Constant.TOKEN)
                                    window.location.reload();
                                }, 1000);
                            })
                        } else {
                            this.setState({ alert: true, messageAlert: 'Operator: ' +response.data.message, tipeAlert: 'error' })
                        }
162
                    }
a.bairuha's avatar
a.bairuha committed
163 164 165
                } else {
                    this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
                }
166
            } else {
a.bairuha's avatar
a.bairuha committed
167
                this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
168 169 170 171 172 173
            }
        })
    }

    getTypeData() {
        api.create().getTypeAM().then((response) => {
a.bairuha's avatar
a.bairuha committed
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
            if (response.data) {
                if (response.ok) {
                    if (response.data.status == 'success') {
                        let data = response.data.data
                        let typeData = data.map((item) => {
                            return {
                                approval_type_id: item.approval_type_id,
                                approval_type_name: item.approval_type_name
                            }
                        })
                        let index = typeData.findIndex((val) => val.approval_type_id == this.state.getTypeId)
                        let typeProps = {
                            options: typeData,
                            getOptionLabel: (option) => option.approval_type_name,
                        };
                        this.setState({ types: typeProps, typeData: response.data.data, getTypes: index == -1 ? typeData[0]: typeData[index] })
                    } else {
                        // alert('Approval Type: ' +response.data.message)
a.bairuha's avatar
a.bairuha committed
192
                        if (response.data.message.includes("Someone Logged In")) {
a.bairuha's avatar
a.bairuha committed
193 194 195 196 197 198 199 200 201
                            this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
                                setTimeout(() => {
                                    localStorage.removeItem(Constant.TOKEN)
                                    window.location.reload();
                                }, 1000);
                            })
                        } else {
                            this.setState({ alert: true, messageAlert: 'Approval Type: ' +response.data.message, tipeAlert: 'error' })
                        }
202
                    }
a.bairuha's avatar
a.bairuha committed
203 204 205
                } else {
                    this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
                }
206
            } else {
a.bairuha's avatar
a.bairuha committed
207
                this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
208 209 210 211 212
            }
        })
    }


213 214
    handleChange(e, type) {
        let data = this.state
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
215
        let isDate = type !== '' ? true : false
216
        if (isDate && type == 'start_date') {
217 218
            this.setState({ startDate: format(e, 'yyyy-MM-dd'), endDate: null }, () => {
                this.clearError()
219
                // console.log(this.state.startDate)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
220
            })
221
        } else if (isDate && type == 'end_date') {
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
222
            this.setState({ endDate: format(e, 'yyyy-MM-dd') }, () => {
223
                this.clearError()
224
                // console.log(this.state.endDate)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
225
            })
226
        } else {
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
227
            // this.setState({...data, tempData: {...this.state.tempData, [e.target.name] :  e.target.value}})
228
        }
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
229

230 231
    }

232 233
    clearError() {
        this.setState({
234 235 236 237 238 239
            errorType: false,
            msgErrType: '',
            errorApproved: false,
            msgErrApproved: '',
            errorOperator: false,
            msgErrOperator: '',
240 241 242 243 244 245 246 247 248
            errorOrder: false,
            msgErrOrder: "",
            errorStartDate: false,
            errorEndDate: false,
            msgErrorStartDate: "",
            msgErrorEndDate: ""
        })
    }

249
    validasi() {
250
        if (R.isNil(this.state.getTypes)) {
251
            this.setState({ errorType: true, msgErrType: 'Approval Type Cannot be Empty' })
252 253
        }
        else if (R.isEmpty(this.state.order)) {
254
            this.setState({ errorOrder: true, msgErrOrder: 'Order Cannot be Empty'})
255
        }
256
        else if (R.isNil(this.state.getApprovedBy)) {
257
            this.setState({ errorApproved: true, msgErrApproved: 'Approver Name Cannot be Empty' })
258 259
        } 
        else if (R.isNil(this.state.getOperators)) {
260
            this.setState({ errorOperator: true, msgErrOperator: 'Operator Cannot be Empty' })
261
        } 
262
        else if (R.isEmpty(this.state.startDate)) {
263
            this.setState({ errorStartDate: true, msgErrorStartDate: 'Valid From Cannot be Empty' })
264
        } else if (R.isEmpty(this.state.endDate)) {
265
            this.setState({ errorEndDate: true, msgErrorEndDate: 'Valid To Cannot be Empty' })
266 267 268 269 270 271 272 273 274 275 276 277
        } else {
            if (this.props.type == 'edit') {
            let payload = {
                    "approval_matrix_id": this.state.id,
                    "approval_type_id": this.state.getTypes.approval_type_id,
                    "orders": this.state.order,
                    "user_id": this.state.getApprovedBy.user_id,
                    "operator_type_id": this.state.getOperators.operator_type_id,
                    "start_date": this.state.startDate,
                    "end_date": this.state.endDate
                }
                this.props.updateAM(payload)
278
            }
279
        }
280 281
    }

Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
282
    render() {
283 284 285
        return (
            <div className="test app-popup-show" style={{ paddingTop: 100 }}>
                <div className="popup-content background-white border-radius" style={{ borderRadius: 8 }}>
286
                    <div className="popup-panel grid grid-2x main-color" style={{ height: 64, borderTopRightRadius: 8, borderTopLeftRadius: 8 }}>
287 288 289 290 291 292 293 294 295 296 297
                        <div className="col-1" style={{ maxWidth: "inherit", display: 'flex', alignItems: 'center' }}>
                            <div className="popup-title">
                                <span style={{ color: '#fff', fontSize: 16, fontWeight: 'bold' }}>Edit Data</span>
                            </div>
                        </div>
                        <div className="col-2 content-right" style={{ maxWidth: "inherit", alignSelf: 'center' }}>
                            <button
                                type="button"
                                className="btn btn-circle btn-white"
                                onClick={() => this.props.onClickClose()}
                            >
d.arizona's avatar
d.arizona committed
298
                                <img src={Images.close}/>
299 300 301 302 303 304 305
                            </button>
                        </div>
                    </div>

                    <div className="border-bottom" style={{ padding: 20 }}>
                        <div className="grid grid-2x grid-mobile-none gap-15px">
                            <div className="column-1">
306
                                <div style={{ backgroundColor: '#e8e8e8', padding: 10, borderRadius: 5 }}>
307
                                    <TextField
308
                                        style={{ width: '100%' }}
309 310
                                        id="id"
                                        label="ID"
311
                                        value={this.state.id}
312 313 314 315 316 317 318 319 320 321 322 323 324
                                        disabled
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
                                    />
325 326 327
                                </div>
                            </div>
                            <div className="column-2">
328 329 330 331
                                <div className="" style={{ padding: 10, borderRadius: 5 }}>
                                    <Autocomplete
                                        {...this.state.types}
                                        option
332
                                        debug
333
                                        id="tipe"
334
                                        onChange={(event, newInputValue) => this.setState({getTypes:newInputValue}, ()=> this.clearError())}
335 336
                                        renderInput={(params) => 
                                            <TextField {...params} 
337
                                                label="Approval Type" 
338 339 340
                                                onChange={(e) => this.handleChange(e, '')}
                                                error={this.state.errorType}
                                                helperText={this.state.msgErrType}
341 342 343 344 345 346 347 348
                                                InputLabelProps={{
                                                    style: {
                                                        fontSize: 11,
                                                        color: '#7e8085'
                                                    }
                                                }}
                                                InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
                                        />}
349 350
                                        value={this.state.getTypes}
                                    />
351 352 353 354 355
                                </div>
                            </div>
                        </div>
                        <div className="grid grid-2x grid-mobile-none gap-15px">
                            <div className="column-1">
356
                                <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
357 358 359 360
                                    <TextField
                                        style={{ width: '100%' }}
                                        id="order"
                                        label="Order"
361
                                        value={this.state.order === null ? '' : this.state.order}
362 363
                                        error={this.state.errorOrder}
                                        helperText={this.state.msgErrOrder}
364 365 366 367 368 369 370 371 372
                                        // onChange={(e) => this.setState({ order: e.target.value }, () => this.clearError())}
                                        onChange={(e) => {
                                            let coba = String(e.target.value).replace(/[^\d]/g,'');
                                            this.setState({
                                                order: coba
                                            }, 
                                            () => this.clearError())}
                                            // this.handleChange(coba, 'value')}
                                        }
373 374 375 376 377 378 379 380 381 382 383
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
384
                                        // name="order"
385 386 387 388 389
                                    >
                                    </TextField>
                                </div>
                            </div>
                            <div className="column-2">
390
                                <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
391 392 393
                                    <Autocomplete
                                        {...this.state.approvedBy}
                                        option
394
                                        debug
395
                                        id="approvedby"
396
                                        onChange={(event, newInputValue) => this.setState({getApprovedBy: newInputValue}, ()=> this.clearError())}
397 398
                                        renderInput={(params) => 
                                            <TextField {...params} 
399
                                                label="Approver Name"
400 401 402
                                                onChange={(e) => this.handleChange(e, '')}
                                                error={this.state.errorApproved}
                                                helperText={this.state.msgErrApproved}
403 404 405 406 407 408 409 410
                                                InputLabelProps={{
                                                    style: {
                                                        fontSize: 11,
                                                        color: '#7e8085'
                                                    }
                                                }}
                                                InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
                                            />}
411 412
                                        value={this.state.getApprovedBy}
                                    />
413 414 415 416 417
                                </div>
                            </div>
                        </div>
                        <div className="grid grid-2x grid-mobile-none gap-15px">
                            <div className="column-1">
418 419 420 421
                                <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
                                    <Autocomplete
                                        {...this.state.operators}
                                        option
422
                                        debug
423
                                        id="operator"
424
                                        onChange={(event, newInputValue) => this.setState({getOperators: newInputValue}, ()=> this.clearError())}
425 426 427
                                        renderInput={(params) => 
                                            <TextField {...params} 
                                                label="Operator" 
428 429 430
                                                onChange={(e) => this.handleChange(e, '')}
                                                error={this.state.errorOperator}
                                                helperText={this.state.msgErrOperator}
431 432 433 434 435 436 437 438
                                                InputLabelProps={{
                                                    style: {
                                                        fontSize: 11,
                                                        color: '#7e8085'
                                                    }
                                                }}
                                                InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
                                            />}
439 440
                                        value={this.state.getOperators}
                                    />
441 442 443 444 445 446 447 448
                                </div>
                            </div>
                            <div className="column-2">
                                
                            </div>
                        </div>
                        <div className="grid grid-2x grid-mobile-none gap-15px">
                            <div className="column-1">
449 450 451 452
                                <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
                                    <DatePicker
                                        margin="normal"
                                        id="startDate"
453
                                        label="Valid From"
454 455 456 457 458 459
                                        format="dd MMMM yyyy"
                                        value={this.state.startDate}
                                        onChange={(e) => this.handleChange(e, 'start_date')}
                                        KeyboardButtonProps={{
                                            'aria-label': 'change date',
                                        }}
460 461 462 463 464
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
465 466 467 468 469 470
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
471 472
                                        error={this.state.errorStartDate}
                                        helperText={this.state.msgErrorStartDate}
473
                                        style={{padding: 0, margin: 0, width: '100%'}}
474
                                    />
475 476 477
                                </div>
                            </div>
                            <div className="column-2">
478 479 480 481
                                <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
                                    <DatePicker
                                        margin="normal"
                                        id="endDate"
482
                                        label="Valid To"
483
                                        format="dd MMMM yyyy"
484 485 486
                                        error={this.state.errorEndDate}
                                        helperText={this.state.msgErrorEndDate}
                                        minDate={this.state.startDate}
487 488 489 490 491
                                        value={this.state.endDate}
                                        onChange={(e) => this.handleChange(e, 'end_date')}
                                        KeyboardButtonProps={{
                                            'aria-label': 'change date',
                                        }}
492 493 494 495 496
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
497 498 499 500 501 502
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
503 504
                                        style={{padding: 0, margin: 0, width: '100%'}}
                                        />
505 506 507 508 509
                                </div>
                            </div>
                        </div>
                        <div className="grid grid-2x grid-mobile-none gap-15px">
                            <div className="column-1">
510
                                <div className="margin-top-10px" style={{ backgroundColor: '#e8e8e8', padding: 10, borderRadius: 5 }}>
511 512
                                    <TextField
                                        style={{ width: '100%' }}
513
                                        value={this.state.status}
514
                                        id="status"
515 516 517 518 519 520 521 522 523 524 525 526 527
                                        label="Status"
                                        disabled
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
528 529 530 531 532
                                    >
                                    </TextField>
                                </div>
                            </div>
                            <div className="column-2">
533
                                {/* <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
534 535 536 537 538
                                    <TextField
                                        style={{ width: '100%' }}
                                        id="max-value"
                                        label="Max Value"
                                        value="10"
539 540 541 542 543 544 545 546 547 548 549 550
                                        onChange={(e) => this.handleChange(e, '')}
                                        inputProps={{
                                            style: {
                                                fontSize: 11
                                            }
                                        }}
                                        InputLabelProps={{
                                            style: {
                                                fontSize: 11,
                                                color: '#7e8085'
                                            }
                                        }}
551 552
                                    >
                                    </TextField>
553
                                </div> */}
554 555
                            </div>
                        </div>
a.bairuha's avatar
a.bairuha committed
556
                        <div className="margin-top-10px" style={{ paddingTop: 10, paddingBottom: 10, paddingLeft: 10, paddingRight: 20 }}>
557
                            <div style={{ display: 'flex' }}>
a.bairuha's avatar
a.bairuha committed
558
                                <Typography style={{ fontSize: 11, width: '12%' }}>Created By</Typography>
559
                                <Typography style={{ fontSize: 11 }}>: {this.state.created}</Typography>
560 561
                            </div>
                            <div style={{ display: 'flex' }}>
a.bairuha's avatar
a.bairuha committed
562
                                <Typography style={{ fontSize: 11, width: '12%' }}>Updated By</Typography>
563
                                <Typography style={{ fontSize: 11 }}>: {this.state.updated == - null ? "" : this.state.updated}</Typography>
564
                            </div>
565 566 567 568 569
                        </div>
                    </div>
                    <div className="border-top grid grid-2x" style={{ height: 56, backgroundColor: '#f5f5f5', paddingLeft: 20, paddingRight: 20 }}>
                        <div className="column-1" style={{ alignSelf: 'center' }}>
                            <div onClick={() => this.props.onClickClose()} style={{ width: 102, height: 30, border: 'solid 1px #354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center', cursor:"pointer" }}>
570
                                <span style={{ color: '#354960', fontSize: 11 }} >Cancel</span>
571 572 573
                            </div>
                        </div>
                        <div className="column-2" style={{display: 'flex', justifyContent: 'flex-end', alignItems: 'center'}}>
574
                            <div onClick={() => this.validasi()} style={{ width: 102, height: 30, backgroundColor: '#354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center', cursor:"pointer" }}>
575
                                <span style={{ color: '#fff', fontSize: 11 }}>Save</span>
576 577 578 579 580 581 582 583
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}