edit.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Edit - {{ filepath }}</title>
  6. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
  8. </head>
  9. <body class="bg-light">
  10. <nav class="navbar navbar-dark shadow-sm py-2 mb-4" style="background-color: #0B61A4;">
  11. <div class="container">
  12. <span class="navbar-brand mb-0 h4"><i class="bi bi-pencil-square me-2"></i>Overlay Editor</span>
  13. <a href="/" class="btn btn-outline-light btn-sm"><i class="bi bi-arrow-left me-1"></i>Back to Manager</a>
  14. </div>
  15. </nav>
  16. <div class="container">
  17. <div class="card shadow border-0 rounded-3">
  18. <div class="card-header bg-white pt-3 pb-2 d-flex justify-content-between align-items-center">
  19. <span class="font-monospace fw-bold text-primary">{{ filepath }}</span>
  20. </div>
  21. <div class="card-body p-0">
  22. <form action="/edit" method="post">
  23. <input type="hidden" name="filepath" value="{{ filepath }}">
  24. <textarea name="content" class="form-control border-0 font-monospace text-bg-dark rounded-0 p-3" rows="25" style="resize: none;" spellcheck="false">{{ content }}</textarea>
  25. <div class="p-3 bg-light text-end rounded-bottom-3">
  26. <a href="/" class="btn btn-secondary me-2">Cancel</a>
  27. <button type="submit" class="btn btn-success fw-bold"><i class="bi bi-save2-fill me-2"></i>Commit Changes</button>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. </div>
  33. </body>
  34. </html>