blob: 94efeb0c9ef3f7406c88d53a48400d11d2cd741a (
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
|
@layout('layouts.main')
@section('content')
<h2>Import/Export data from another Ferdi server</h2>
@if(flashMessage('error'))
<div class="alert">
{{ flashMessage('error') }}
</div>
@endif
@if(old('message'))
<div class="alert">
{{ old('message') }}
</div>
@endif
@if(flashMessage('notification'))
<div class="alert">
{{ flashMessage('notification.message') }}
</div>
@endif
@if(success === true)
<div class="alert" style="background-color:#28C76F;">
Sucessfully imported your account data
</div>
@endif
<h3>Import data</h3>
<div>
<label>Account data</label>
<div>
<input type="file" name="file" id="file" value="" accept=".json,.ferdi-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>Export data</h3>
<a class="button" style="background-color:#28C76F;margin-bottom:1rem;" href="/user/export">Export data</a>
<div>
<a class="button" href="/user/account">Back to my account</a>
</div>
</div>
<script src="/js/transfer.js"></script>
@endsection
|