blob: bdae1f4e5ef5f18446faf2f02efb851a6b1de9a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
@layout('layouts.v2')
@section('content')
<div class="w-screen bg-purple-200 flex items-center justify-center">
<div class="w-full max-w-lg bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<h1 class="text-gray-700 text-center text-2xl pb-5">Import/Export data from another Ferdium server</h1>
@if(flashMessage('error'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ flashMessage('error') }}
</div>
@endif
@if(old('message'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ old('message') }}
</div>
@endif
@if(flashMessage('notification'))
<div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
{{ flashMessage('notification.message') }}
</div>
@endif
@if(success === true)
<div class="bg-green-100 border-l-4 border-green-500 text-white p-4" style="background-color:#28C76F;">
Sucessfully imported your account data
</div>
@endif
<h3 class="text-gray-600 text-xl">Import data</h3>
<div>
<div>
<input type="file" name="file" id="file" value="" accept=".json,.ferdi-data,.ferdium-data" required>
</div>
</div>
<form action="/user/transfer" method="POST">
{{ csrfField() }}
<input type="hidden" name="file" id="fileoutput" value="">
<div>
<button style="background-color:#28C76F;margin-bottom:1rem;" id="submit" disabled>Import data</button>
</div>
</form>
<h3 class="text-gray-600 text-xl">Export data</h3>
<a class="button" style="background-color:#28C76F;margin-bottom:1rem;" href="/user/export">Export data</a>
<div class="text-center">
<a class="w-full font-bold text-sm text-gray-500 hover:text-gray-800 mb-3" href="/user/account">Back to My
Account</a>
</div>
</div>
<script src="/js/transfer.js"></script>
</div>
</div>
@endsection
|