diff options
author | 2019-10-19 15:41:31 +0200 | |
---|---|---|
committer | 2019-10-19 15:41:31 +0200 | |
commit | 5bf9eb5898f14afc66f690c866637b4815195bad (patch) | |
tree | 08e772531561928f9152a559b43c1e74909886c5 /resources/views/dashboard/transfer.edge | |
parent | Bump version number (diff) | |
download | ferdium-server-5bf9eb5898f14afc66f690c866637b4815195bad.tar.gz ferdium-server-5bf9eb5898f14afc66f690c866637b4815195bad.tar.zst ferdium-server-5bf9eb5898f14afc66f690c866637b4815195bad.zip |
Add page to transfer user accounts
Diffstat (limited to 'resources/views/dashboard/transfer.edge')
-rw-r--r-- | resources/views/dashboard/transfer.edge | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/resources/views/dashboard/transfer.edge b/resources/views/dashboard/transfer.edge new file mode 100644 index 0000000..94efeb0 --- /dev/null +++ b/resources/views/dashboard/transfer.edge | |||
@@ -0,0 +1,52 @@ | |||
1 | @layout('layouts.main') | ||
2 | |||
3 | @section('content') | ||
4 | <h2>Import/Export data from another Ferdi server</h2> | ||
5 | @if(flashMessage('error')) | ||
6 | <div class="alert"> | ||
7 | {{ flashMessage('error') }} | ||
8 | </div> | ||
9 | @endif | ||
10 | @if(old('message')) | ||
11 | <div class="alert"> | ||
12 | {{ old('message') }} | ||
13 | </div> | ||
14 | @endif | ||
15 | @if(flashMessage('notification')) | ||
16 | <div class="alert"> | ||
17 | {{ flashMessage('notification.message') }} | ||
18 | </div> | ||
19 | @endif | ||
20 | @if(success === true) | ||
21 | <div class="alert" style="background-color:#28C76F;"> | ||
22 | Sucessfully imported your account data | ||
23 | </div> | ||
24 | @endif | ||
25 | |||
26 | <h3>Import data</h3> | ||
27 | <div> | ||
28 | <label>Account data</label> | ||
29 | <div> | ||
30 | <input type="file" name="file" id="file" value="" accept=".json,.ferdi-data" required> | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <form action="/user/transfer" method="POST"> | ||
35 | {{ csrfField() }} | ||
36 | <input type="hidden" name="file" id="fileoutput" value=""> | ||
37 | <div> | ||
38 | <button style="background-color:#28C76F;margin-bottom:1rem;" id="submit" disabled>Import data</button> | ||
39 | </div> | ||
40 | </form> | ||
41 | |||
42 | <h3>Export data</h3> | ||
43 | <a class="button" style="background-color:#28C76F;margin-bottom:1rem;" href="/user/export">Export data</a> | ||
44 | |||
45 | <div> | ||
46 | <a class="button" href="/user/account">Back to my account</a> | ||
47 | </div> | ||
48 | |||
49 | </div> | ||
50 | <script src="/js/transfer.js"></script> | ||
51 | |||
52 | @endsection \ No newline at end of file | ||