edit_notes.tmpl 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="ro">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Editează notița</title>
  7. <script src="https://cdn.tailwindcss.com"></script>
  8. </head>
  9. <body class="bg-[#0b0d12] text-white font-sans min-h-screen">
  10. <div class="max-w-4xl mx-auto px-6 py-10">
  11. <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-8">
  12. <div>
  13. <h1 class="text-3xl md:text-4xl font-bold tracking-tight text-white">
  14. Editează notița
  15. </h1>
  16. <p class="text-gray-400 mt-2 text-sm md:text-base">
  17. Modifică titlul și conținutul, apoi salvează schimbările.
  18. </p>
  19. </div>
  20. <div class="flex gap-3">
  21. <a href="/list_notes"
  22. class="inline-flex items-center justify-center rounded-xl border border-[#313846] bg-[#171b22] px-4 py-3 text-sm font-semibold text-gray-200 transition hover:bg-[#20252f] hover:text-white">
  23. Înapoi la listă
  24. </a>
  25. <a href="/notes/?note={{.Path}}"
  26. class="inline-flex items-center justify-center rounded-xl border border-[#313846] bg-[#171b22] px-4 py-3 text-sm font-semibold text-gray-200 transition hover:bg-[#20252f] hover:text-white">
  27. Vezi notița
  28. </a>
  29. </div>
  30. </div>
  31. <div class="rounded-2xl border border-[#2a3140] bg-[#11151b] shadow-2xl overflow-hidden">
  32. <div class="border-b border-[#252b37] bg-[#181d27] px-6 py-5">
  33. <h2 class="text-xl md:text-2xl font-bold text-[#b899ff]">
  34. Formular editare
  35. </h2>
  36. <p class="text-sm text-gray-400 mt-1">
  37. Editezi notița selectată.
  38. </p>
  39. </div>
  40. <div class="p-6 md:p-8">
  41. <form method="POST" action="/api/update_note" class="space-y-6">
  42. <input type="hidden" name="path" value="{{.Path}}">
  43. <div>
  44. <label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
  45. Titlu fișier
  46. </label>
  47. <input type="text" name="titlu" value="{{.Titlu}}" placeholder="Titlul notiței"
  48. class="w-full rounded-xl border border-[#323949] bg-[#1a1f29] px-4 py-3 text-sm text-gray-200 outline-none transition placeholder:text-gray-500 focus:border-[#7b58ad] focus:ring-2 focus:ring-[#7b58ad]/30">
  49. </div>
  50. <div>
  51. <label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
  52. Conținut notiță
  53. </label>
  54. <textarea name="notita" rows="18" placeholder="Conținutul notiței..."
  55. class="w-full rounded-xl border border-[#323949] bg-[#1a1f29] px-4 py-3 text-sm text-gray-200 outline-none transition placeholder:text-gray-500 focus:border-[#7b58ad] focus:ring-2 focus:ring-[#7b58ad]/30 resize-y">{{.Continut}}</textarea>
  56. </div>
  57. <div class="flex flex-col sm:flex-row gap-3 pt-2">
  58. <button type="submit"
  59. class="flex-1 rounded-xl bg-[#7b58ad] px-5 py-3 text-sm font-bold text-white transition hover:bg-[#9974d0] shadow-lg shadow-purple-900/20">
  60. Salvează modificările
  61. </button>
  62. <a href="/notes/?note={{.Path}}"
  63. class="flex-1 rounded-xl border border-[#3a3f4b] bg-[#171a21] px-5 py-3 text-center text-sm font-semibold text-gray-200 transition hover:bg-[#20242d] hover:text-white">
  64. Anulează
  65. </a>
  66. </div>
  67. </form>
  68. </div>
  69. <div class="border-t border-[#252b37] bg-[#12151b] px-6 py-4 flex justify-between items-center text-[11px] uppercase tracking-widest text-gray-500">
  70. <span>Status: Edit Mode</span>
  71. <span class="flex items-center gap-2">
  72. <span class="w-2 h-2 rounded-full bg-amber-400"></span>
  73. Loaded
  74. </span>
  75. </div>
  76. </div>
  77. </div>
  78. </body>
  79. </html>