adminsetup.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <title>SFTPGo - Setup</title>
  10. <link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
  11. <!-- Custom styles for this template-->
  12. <link href="{{.StaticURL}}{{.Branding.DefaultCSS}}" rel="stylesheet">
  13. <style>
  14. {{template "commoncss" .}}
  15. </style>
  16. </head>
  17. <body class="bg-gradient-primary">
  18. <div class="container">
  19. <!-- Outer Row -->
  20. <div class="row justify-content-center">
  21. <div class="col-xl-7 col-lg-8 col-md-10">
  22. <div class="card o-hidden border-0 shadow-lg my-5">
  23. <div class="card-body p-0">
  24. <!-- Nested Row within Card Body -->
  25. <div class="row">
  26. <div class="col-lg-12">
  27. <div class="p-5">
  28. <div class="text-center">
  29. <h1 class="h5 text-gray-900 mb-4">To start using SFTPGo you need to create an admin user</h1>
  30. </div>
  31. {{if .Error}}
  32. <div class="card mb-4 border-left-warning">
  33. <div class="card-body text-form-error">{{.Error}}</div>
  34. </div>
  35. {{end}}
  36. <form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
  37. class="user-custom">
  38. {{if .HasInstallationCode}}
  39. <div class="form-group">
  40. <input type="text" class="form-control form-control-user-custom" id="inputInstallCode"
  41. name="install_code" placeholder="{{.InstallationCodeHint}}" value="" required>
  42. </div>
  43. {{end}}
  44. <div class="form-group">
  45. <input type="text" class="form-control form-control-user-custom" id="inputUsername"
  46. name="username" placeholder="Username" value="{{.Username}}" required>
  47. </div>
  48. <div class="form-group">
  49. <input type="password" class="form-control form-control-user-custom" id="inputPassword"
  50. name="password" placeholder="Password" required>
  51. </div>
  52. <div class="form-group">
  53. <input type="password" class="form-control form-control-user-custom" id="inputConfirmPassword"
  54. name="confirm_password" placeholder="Repeat password" required>
  55. </div>
  56. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  57. <button type="submit" class="btn btn-primary btn-user-custom btn-block">
  58. Create admin
  59. </button>
  60. </form>
  61. {{if not .HideSupportLink}}
  62. <hr>
  63. <div class="text-center">
  64. <a class="small" href="https://github.com/drakkan/sftpgo#sponsors">SFTPGo needs your help</a>
  65. </div>
  66. {{end}}
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <!-- Bootstrap core JavaScript-->
  76. <script src="{{.StaticURL}}/vendor/jquery/jquery.min.js"></script>
  77. <script src="{{.StaticURL}}/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  78. <!-- Core plugin JavaScript-->
  79. <script src="{{.StaticURL}}/vendor/jquery-easing/jquery.easing.min.js"></script>
  80. <!-- Custom scripts for all pages-->
  81. <script src="{{.StaticURL}}/js/sb-admin-2.min.js"></script>
  82. </body>
  83. </html>