diff options
author | vantezzen <hello@vantezzen.io> | 2020-04-02 15:32:18 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-04-02 15:32:18 +0200 |
commit | ddd002094d5c80ca4065b7d181e7f5b9471556da (patch) | |
tree | 1c5d9d018878595b32b4ec6bd3734bef698237d5 /resources/views/dashboard/transfer.edge | |
parent | Merge branch 'master' of https://github.com/getferdi/ferdi-server (diff) | |
download | ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.tar.gz ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.tar.zst ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.zip |
Update dashboard design
Diffstat (limited to 'resources/views/dashboard/transfer.edge')
-rw-r--r-- | resources/views/dashboard/transfer.edge | 81 |
1 files changed, 42 insertions, 39 deletions
diff --git a/resources/views/dashboard/transfer.edge b/resources/views/dashboard/transfer.edge index 94efeb0..d2feedc 100644 --- a/resources/views/dashboard/transfer.edge +++ b/resources/views/dashboard/transfer.edge | |||
@@ -1,52 +1,55 @@ | |||
1 | @layout('layouts.main') | 1 | @layout('layouts.v2') |
2 | 2 | ||
3 | @section('content') | 3 | @section('content') |
4 | <h2>Import/Export data from another Ferdi server</h2> | 4 | <div class="w-screen h-screen bg-purple-200 flex items-center justify-center"> |
5 | @if(flashMessage('error')) | 5 | <div class="w-full max-w-lg bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> |
6 | <div class="alert"> | 6 | <h1 class="text-gray-700 text-center text-2xl pb-5">Import/Export data from another Ferdi server</h1> |
7 | {{ flashMessage('error') }} | 7 | @if(flashMessage('error')) |
8 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> | ||
9 | {{ flashMessage('error') }} | ||
8 | </div> | 10 | </div> |
9 | @endif | 11 | @endif |
10 | @if(old('message')) | 12 | @if(old('message')) |
11 | <div class="alert"> | 13 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> |
12 | {{ old('message') }} | 14 | {{ old('message') }} |
13 | </div> | 15 | </div> |
14 | @endif | 16 | @endif |
15 | @if(flashMessage('notification')) | 17 | @if(flashMessage('notification')) |
16 | <div class="alert"> | 18 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> |
17 | {{ flashMessage('notification.message') }} | 19 | {{ flashMessage('notification.message') }} |
18 | </div> | 20 | </div> |
19 | @endif | 21 | @endif |
20 | @if(success === true) | 22 | @if(success === true) |
21 | <div class="alert" style="background-color:#28C76F;"> | 23 | <div class="bg-green-100 border-l-4 border-green-500 text-white p-4" style="background-color:#28C76F;"> |
22 | Sucessfully imported your account data | 24 | Sucessfully imported your account data |
23 | </div> | 25 | </div> |
24 | @endif | 26 | @endif |
25 | 27 | ||
26 | <h3>Import data</h3> | 28 | <h3 class="text-gray-600 text-xl">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> | 29 | <div> |
38 | <button style="background-color:#28C76F;margin-bottom:1rem;" id="submit" disabled>Import data</button> | 30 | <div> |
31 | <input type="file" name="file" id="file" value="" accept=".json,.ferdi-data" required> | ||
32 | </div> | ||
39 | </div> | 33 | </div> |
40 | </form> | ||
41 | 34 | ||
42 | <h3>Export data</h3> | 35 | <form action="/user/transfer" method="POST"> |
43 | <a class="button" style="background-color:#28C76F;margin-bottom:1rem;" href="/user/export">Export data</a> | 36 | {{ csrfField() }} |
37 | <input type="hidden" name="file" id="fileoutput" value=""> | ||
38 | <div> | ||
39 | <button style="background-color:#28C76F;margin-bottom:1rem;" id="submit" disabled>Import data</button> | ||
40 | </div> | ||
41 | </form> | ||
44 | 42 | ||
45 | <div> | 43 | <h3 class="text-gray-600 text-xl">Export data</h3> |
46 | <a class="button" href="/user/account">Back to my account</a> | 44 | <a class="button" style="background-color:#28C76F;margin-bottom:1rem;" href="/user/export">Export data</a> |
47 | </div> | ||
48 | 45 | ||
49 | </div> | 46 | <div class="text-center"> |
50 | <script src="/js/transfer.js"></script> | 47 | <a class="w-full font-bold text-sm text-gray-500 hover:text-gray-800 mb-3" href="/user/account">Back to My |
48 | Account</a> | ||
49 | </div> | ||
51 | 50 | ||
52 | @endsection \ No newline at end of file | 51 | </div> |
52 | <script src="/js/transfer.js"></script> | ||
53 | </div> | ||
54 | </div> | ||
55 | @endsection | ||