aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/resources/views/transfer.edge
blob: f1d7b73327b2234de074f31469a4751b10bf5b46 (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
@layout('layouts.main')

@section('content')
<h2>Import/Export data from another Ferdium server</h2>
@if(success === true)
    <div class="alert" style="background-color:#28C76F;">
        Successfully 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,.ferdium-data,.ferdi-data" required>
  </div>
</div>

<form action="/transfer" method="POST">
    <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="/export">Export data</a>

</div>
<script src="/js/transfer.js"></script>

@endsection