Working user and link list, (big)restructure

This is now a workspace consisting of:
  * the pslink app (a wasm frontend for the admin interface)
  * the pslink binary
  * shared - modules for communication between the two above.
This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent 1611cfb9a2
commit fc9b18141f
60 changed files with 2238 additions and 396 deletions
+28
View File
@@ -0,0 +1,28 @@
{% extends "admin.html" %}
{% block admin %}
<div class="center">
<h1>{{ fluent(key="edit-link-headline", lang=user.language, linktitle=link.title) }}</h1>
<form action="" method="POST">
<div>
<label for="title">{{ fluent(key="link-description", lang=user.language) }}:</label>
<input type="text" name="title" value="{{ link.title }}">
</div>
<div>
<label for="target">{{ fluent(key="link-target", lang=user.language) }}:</label>
<input type="text" name="target" value="{{link.target}}">
</div>
<div>
<label for="code">{{ fluent(key="link-code", lang=user.language) }}:</label>
<input type="text" name="code" value="{{link.code}}">
</div>
<div class="actions danger">
<h2>{{ fluent(key="danger-zone", lang=user.language) }}</h2>
<h3>{{ fluent(key="danger-zone-text", lang=user.language) }}</h3>
<input type="submit" value='{{ fluent(key="save-edits", lang=user.language) }}'>
<a class="button" href="/admin/delete/link/{{link.code}}">{{ fluent(key="delete-link", lang=user.language)
}}</a>
</div>
</form>
</div>
{% endblock %}