memberships: modal for errors (#133)
* unpolished version of error modal rendering
* rework of html files. template implemented
* new html files
* minor fixes.
* minor fixes
* title changes
diff --git a/core/auth/memberships/memberships-tmpl/base.html b/core/auth/memberships/memberships-tmpl/base.html
new file mode 100644
index 0000000..39a7755
--- /dev/null
+++ b/core/auth/memberships/memberships-tmpl/base.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en" data-theme="light">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{ block "title" . }}{{ end }}</title>
+ <link rel="stylesheet" href="/static/pico.2.0.6.min.css">
+ <link rel="stylesheet" href="/static/main.css">
+</head>
+<body class="container">
+ {{- block "content" . }}
+ {{- end }}
+ {{ if ne .ErrorMessage "" }}
+ <dialog id="error-message" open>
+ <article>
+ <h2>Error</h2>
+ <p id="error-message-content">{{ .ErrorMessage }}</p>
+ <footer>
+ <button id="error-cancel-button" class="secondary error-cancel-button">Close</button>
+ </footer>
+ </article>
+ </dialog>
+ {{ end }}
+ <script src="/static/main.js"></script>
+</body>
+</html>