You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

save.html 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Save current moment</title>
  7. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
  8. <link rel="stylesheet" href=
  9. "https://use.fontawesome.com/releases/v5.6.3/css/all.css"
  10. integrity=
  11. "sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
  12. crossorigin="anonymous">
  13. </head>
  14. <body>
  15. <div class="container">
  16. <h3 class="text-center">Save current moment</h3>
  17. <div class="row mt-4">
  18. <div class="col-md-6 offset-md-3">
  19. <form "card-text" method="POST" action="">
  20. <input class="form-control" id="filename" name="filename" placeholder="File name" value="{{suggestion}}" />
  21. <input type="submit" class="btn btn-success form-control" value="Save">
  22. </form>
  23. </div>
  24. </div>
  25. <div class="row mt-1">
  26. <div class="col-md-6 offset-md-3">
  27. <select size=10 class="form-select" onchange="document.getElementById('filename').value=this.value">
  28. <option value="">[type filename or select existing file from list below]</option>
  29. {% for file in files %}
  30. <option value="{{file}}">{{file}}</option>
  31. {% endfor %}
  32. </select>
  33. </div>
  34. </div>
  35. </div>
  36. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
  37. </body>
  38. </html>