baselogin.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!--
  2. Copyright (C) 2023 Nicola Murino
  3. This WebUI uses the KeenThemes Mega Bundle, a proprietary theme:
  4. https://keenthemes.com/products/templates-mega-bundle
  5. KeenThemes HTML/CSS/JS components are allowed for use only within the
  6. SFTPGo product and restricted to be used in a resealable HTML template
  7. that can compete with KeenThemes products anyhow.
  8. This WebUI is allowed for use only within the SFTPGo product and
  9. therefore cannot be used in derivative works/products without an
  10. explicit grant from the SFTPGo Team ([email protected]).
  11. -->
  12. {{- define "baselogin"}}
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <title>{{.Branding.Name}} - {{template "title" .}}</title>
  17. <meta charset="utf-8" />
  18. <meta name="description" content="" />
  19. <meta name="viewport" content="width=device-width, initial-scale=1" />
  20. <link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
  21. {{- template "fonts" . }}
  22. {{- range .Branding.DefaultCSS}}
  23. <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
  24. {{- end}}
  25. {{- template "globalstyle" .CSPNonce }}
  26. {{- range .Branding.ExtraCSS}}
  27. <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
  28. {{- end}}
  29. {{- template "commonjs" .CSPNonce}}
  30. </head>
  31. <body class="app-blank">
  32. {{- template "theme-setup" .CSPNonce}}
  33. <div class="d-flex flex-column flex-root">
  34. <div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed">
  35. <div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
  36. <div class="w-lg-500px w-md-450px w-sm-400px bg-body rounded shadow-sm p-10 p-lg-15 mx-auto">
  37. {{template "content" .}}
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/global/plugins.bundle.js"></script>
  43. <script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/js/scripts.bundle.js"></script>
  44. {{- template "basejs" .CSPNonce }}
  45. <script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
  46. KTUtil.onDOMContentLoaded(function () {
  47. $('#sign_in_form').submit(function (event) {
  48. let submitButton = document.querySelector('#sign_in_submit');
  49. submitButton.setAttribute('data-kt-indicator', 'on');
  50. submitButton.disabled = true;
  51. });
  52. });
  53. </script>
  54. </body>
  55. </html>
  56. {{- end}}