sharelogin.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {{- template "baselogin" .}}
  13. {{- define "content"}}
  14. <form class="form w-100" id="sign_in_form" action="{{.CurrentURL}}" method="POST">
  15. <div class="container mb-10">
  16. <div class="row align-items-center">
  17. <div class="col-5 align-items-center">
  18. <img alt="Logo" src="{{.StaticURL}}{{.Branding.LogoPath}}" class="h-80px h-md-90px h-lg-100px" />
  19. </div>
  20. <div class="col-7">
  21. <h1 class="text-gray-900 mb-3 ms-3">
  22. {{.Branding.ShortName}}
  23. </h1>
  24. </div>
  25. </div>
  26. </div>
  27. {{template "errmsg" .Error}}
  28. <div class="fv-row mb-10">
  29. <input data-i18n="[placeholder]login.password" class="form-control form-control-lg form-control-solid" type="password" name="share_password" placeholder="Password" spellcheck="false" required />
  30. </div>
  31. <div class="text-center">
  32. <input type="hidden" name="_form_token" value="{{.CSRFToken}}">
  33. <button type="submit" id="sign_in_submit" class="btn btn-lg btn-primary w-100 mb-5">
  34. <span data-i18n="login.signin" class="indicator-label">Sign in</span>
  35. <span data-i18n="general.wait" class="indicator-progress">
  36. Please wait...
  37. <span class="spinner-border spinner-border-sm align-middle ms-2"></span>
  38. </span>
  39. </button>
  40. </div>
  41. </form>
  42. {{- end}}