Files
ingress_migrate_annotations/templates/view.html
2026-01-05 13:15:49 +09:00

34 lines
734 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<h2>{{ title }}</h2>
<div class="card">
{% if editable %}
<form method="post">
<textarea name="content" class="editor">{{ content }}</textarea>
<div class="actions-row" style="margin-top:16px;">
<button type="submit">Save</button>
<button type="button" onclick="history.back()">Cancel</button>
</div>
</form>
{% else %}
<pre>{{ content }}</pre>
{% endif %}
</div>
{% if not editable %}
<div class="card actions-row">
<button onclick="history.back()">Back</button>
</div>
{% endif %}
</div>
</body>
</html>