blob: 9bbf0087b2715ef05f244ee16fc25b597a666ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.Title}}</title>
<link rel="stylesheet" href="/static/css/output.css">
</head>
<body class="min-h-screen bg-gray-900 text-slate-200 p-4">
<div class="max-w-lg mx-auto pt-6">
<a href="/" class="text-sm text-slate-400 hover:text-slate-200 mb-4 inline-block">← Dashboard</a>
{{if .Saved}}<p class="text-green-400 text-sm mb-3">Saved.</p>{{end}}
<div class="bg-gray-800 rounded-xl p-5 mt-2">
<h1 class="font-semibold text-lg mb-4">{{.Title}}</h1>
{{if eq .Source "todoist"}}
<form method="post" action="/tasks/update">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<input type="hidden" name="id" value="{{.ID}}">
<input type="hidden" name="source" value="{{.Source}}">
<label class="block text-sm font-medium text-slate-400 mb-1">Description</label>
<textarea name="description" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-3 py-2 text-sm mb-4 h-32 text-slate-200">{{.Description}}</textarea>
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm font-medium">Save</button>
</form>
{{else}}
<p class="text-sm text-slate-400">Source: {{.Source}}</p>
{{end}}
</div>
</div>
</body>
</html>
|