2015-10-14 17:15:39 +03:00
|
|
|
@extends('header')
|
2015-03-17 07:45:25 +10:00
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
@parent
|
|
|
|
|
|
2015-10-14 17:15:39 +03:00
|
|
|
@include('accounts.nav', ['selected' => ACCOUNT_IMPORT_EXPORT])
|
|
|
|
|
|
2015-11-18 19:16:23 +02:00
|
|
|
{!! Former::open('/import_csv')->addClass('warn-on-exit') !!}
|
2017-04-02 16:54:07 +03:00
|
|
|
{!! Former::populateField('timestamp', $timestamp) !!}
|
|
|
|
|
|
|
|
|
|
<div style="display:none">
|
|
|
|
|
{!! Former::text('timestamp') !!}
|
|
|
|
|
</div>
|
2015-04-28 23:13:52 +03:00
|
|
|
|
2016-05-31 23:15:55 +03:00
|
|
|
@foreach (App\Services\ImportService::$entityTypes as $entityType)
|
|
|
|
|
@if (isset($data[$entityType]))
|
|
|
|
|
@include('accounts.partials.map', $data[$entityType])
|
|
|
|
|
@endif
|
|
|
|
|
@endforeach
|
2015-11-24 21:45:38 +02:00
|
|
|
|
2016-05-31 23:15:55 +03:00
|
|
|
{!! Former::actions(
|
2017-06-05 12:13:24 +03:00
|
|
|
Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/cancel_import?timestamp=' . $timestamp))->appendIcon(Icon::create('remove-circle')),
|
2015-11-24 21:45:38 +02:00
|
|
|
Button::success(trans('texts.import'))->submit()->large()->appendIcon(Icon::create('floppy-disk'))) !!}
|
2016-05-31 23:15:55 +03:00
|
|
|
|
2015-11-24 21:45:38 +02:00
|
|
|
{!! Former::close() !!}
|
2015-03-17 07:45:25 +10:00
|
|
|
|
2016-05-31 23:15:55 +03:00
|
|
|
@stop
|