phoenix/templates/import.html.tmpl
Ivan R. 6396c160f2
feat: export and import
The list of links can now be exported to a json file,
and later imported back.
2024-04-01 23:35:46 +05:00

28 lines
702 B
Cheetah

<!DOCTYPE html>
<html lang="en">
<head>
{{template "head" .}}
<link rel="stylesheet" href="assets/css/import.css" />
</head>
<body>
<h1>Import</h1>
<a href="/settings">Settings</a>
<p>
Importing does not erase existing links, but may create duplicates.
</p>
<form action="/import" method="POST">
<label for="exportFile">JSON data</label>
<textarea
id="exportFile"
name="exportFile"
placeholder="{ groups: [] }"
required
></textarea>
<button type="submit">Submit</button>
</form>
</body>
</html>