|
@@ -4,6 +4,7 @@
|
|
|
<head>
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
+ <link rel="icon" type="image/png" href="/favicon.png">
|
|
|
<title>Editează notița</title>
|
|
<title>Editează notița</title>
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
</head>
|
|
</head>
|
|
@@ -26,6 +27,7 @@
|
|
|
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">
|
|
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">
|
|
|
Înapoi la listă
|
|
Înapoi la listă
|
|
|
</a>
|
|
</a>
|
|
|
|
|
+
|
|
|
<a href="/notes/?note={{.Path}}"
|
|
<a href="/notes/?note={{.Path}}"
|
|
|
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">
|
|
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">
|
|
|
Vezi notița
|
|
Vezi notița
|
|
@@ -46,22 +48,37 @@
|
|
|
<div class="p-6 md:p-8">
|
|
<div class="p-6 md:p-8">
|
|
|
<form method="POST" action="/api/update_note" class="space-y-6">
|
|
<form method="POST" action="/api/update_note" class="space-y-6">
|
|
|
|
|
|
|
|
|
|
+ <!-- PATH către fișier -->
|
|
|
<input type="hidden" name="path" value="{{.Path}}">
|
|
<input type="hidden" name="path" value="{{.Path}}">
|
|
|
|
|
|
|
|
|
|
+ <!-- DIRECTORUL în care se află -->
|
|
|
|
|
+ <input type="hidden" name="director" value="{{.Folder}}">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Afișare folder (doar vizual) -->
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
|
|
|
|
|
+ Folder
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="w-full rounded-xl border border-[#323949] bg-[#1a1f29] px-4 py-3 text-sm text-gray-300">
|
|
|
|
|
+ {{.Folder}}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div>
|
|
<div>
|
|
|
<label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
|
|
<label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
|
|
|
Titlu fișier
|
|
Titlu fișier
|
|
|
</label>
|
|
</label>
|
|
|
- <input type="text" name="titlu" value="{{.Titlu}}" placeholder="Titlul notiței"
|
|
|
|
|
- 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">
|
|
|
|
|
|
|
+ <input type="text" name="titlu" value="{{.Titlu}}"
|
|
|
|
|
+ class="w-full rounded-xl border border-[#323949] bg-[#1a1f29] px-4 py-3 text-sm text-gray-200 outline-none transition focus:border-[#7b58ad] focus:ring-2 focus:ring-[#7b58ad]/30">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
<div>
|
|
|
<label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
|
|
<label class="block text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">
|
|
|
Conținut notiță
|
|
Conținut notiță
|
|
|
</label>
|
|
</label>
|
|
|
- <textarea name="notita" rows="18" placeholder="Conținutul notiței..."
|
|
|
|
|
- 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>
|
|
|
|
|
|
|
+ <textarea name="notita" rows="18"
|
|
|
|
|
+ class="w-full rounded-xl border border-[#323949] bg-[#1a1f29] px-4 py-3 text-sm text-gray-200 outline-none transition focus:border-[#7b58ad] focus:ring-2 focus:ring-[#7b58ad]/30 resize-y">{{.Continut}}</textarea>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex flex-col sm:flex-row gap-3 pt-2">
|
|
<div class="flex flex-col sm:flex-row gap-3 pt-2">
|
|
@@ -70,11 +87,12 @@
|
|
|
Salvează modificările
|
|
Salvează modificările
|
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
- <a href="/notes/?note={{.Path}}"
|
|
|
|
|
|
|
+ <a href="/list_notes/"
|
|
|
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">
|
|
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">
|
|
|
Anulează
|
|
Anulează
|
|
|
</a>
|
|
</a>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|