-
+
+
+
-
+
diff --git a/source/pages/invite_list/style.css b/source/pages/invitation_list/style.css
similarity index 97%
rename from source/pages/invite_list/style.css
rename to source/pages/invitation_list/style.css
index 0bcc5a1..d1dcda0 100644
--- a/source/pages/invite_list/style.css
+++ b/source/pages/invitation_list/style.css
@@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with thi
.
*/
-.invite_list-links
+.invitation_list-links
{
margin-bottom: 16px;
}
diff --git a/source/pages/invite_view/logic.ts b/source/pages/invitation_view/logic.ts
similarity index 93%
rename from source/pages/invite_view/logic.ts
rename to source/pages/invitation_view/logic.ts
index dcb95b8..443bdf8 100644
--- a/source/pages/invite_view/logic.ts
+++ b/source/pages/invitation_view/logic.ts
@@ -14,13 +14,13 @@ You should have received a copy of the GNU General Public License along with thi
*/
lib_plankton.zoo_page.register(
- "invite_view",
+ "invitation_view",
async (parameters, target_element) => {
// functions
const get_url = (item) => {
const url : URL = new URL(window.location.toString());
url.hash = lib_plankton.string.coin(
- "#invite_handle,key={{key}}",
+ "#invitation_handle,key={{key}}",
{
"key": item.key,
}
@@ -31,9 +31,9 @@ lib_plankton.zoo_page.register(
// parameters
const id : int = parseInt(parameters["id"]);
- target_element.appendChild(_espe.helpers.template_request("invite_view"));
+ target_element.appendChild(_espe.helpers.template_request("invitation_view"));
- target_element.querySelector(".invite_view-title").textContent = lib_plankton.translate.get("page.invite_view.title");
+ target_element.querySelector(".invitation_view-title").textContent = lib_plankton.translate.get("page.invitation_view.title");
const indent = str => (/*"... " + */str);
@@ -74,7 +74,7 @@ lib_plankton.zoo_page.register(
}
/**
- * @todo unify with form of "invite_create"
+ * @todo unify with form of "invitation_create"
*/
const form = new lib_plankton.zoo_form.class_form<
{
@@ -162,12 +162,12 @@ lib_plankton.zoo_page.register(
{
"name": "url",
"input": new lib_plankton.zoo_input.class_input_text({"read_only": true}),
- "label": lib_plankton.translate.get("domain.invite.url.label"),
+ "label": lib_plankton.translate.get("domain.invitation.url.label"),
},
{
"name": "key",
"input": new lib_plankton.zoo_input.class_input_text({"read_only": true}),
- "label": lib_plankton.translate.get("domain.invite.key.label"),
+ "label": lib_plankton.translate.get("domain.invitation.key.label"),
},
{
"name": "name",
@@ -275,14 +275,14 @@ lib_plankton.zoo_page.register(
}
)
),
- "label": lib_plankton.translate.get("domain.invite.expiry.label"),
+ "label": lib_plankton.translate.get("domain.invitation.expiry.label"),
},
]
),
[
]
);
- await form.setup(target_element.querySelector(".invite_view-form") as HTMLElement);
+ await form.setup(target_element.querySelector(".invitation_view-form") as HTMLElement);
const data : {
key: string;
@@ -295,7 +295,7 @@ lib_plankton.zoo_page.register(
email_address_value : (null | string);
groups_changeable : boolean;
groups_value : Array
;
- } = await _espe.backend.invite_read(id);
+ } = await _espe.backend.invitation_read(id);
form.input_write(data);
}
diff --git a/source/pages/invite_view/structure.html b/source/pages/invitation_view/structure.html
similarity index 86%
rename from source/pages/invite_view/structure.html
rename to source/pages/invitation_view/structure.html
index a6c5c78..747512b 100644
--- a/source/pages/invite_view/structure.html
+++ b/source/pages/invitation_view/structure.html
@@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with thi
.
-->
-
-
-
+
+
+
diff --git a/source/pages/invitation_view/style.css b/source/pages/invitation_view/style.css
new file mode 100644
index 0000000..86eb75a
--- /dev/null
+++ b/source/pages/invitation_view/style.css
@@ -0,0 +1,39 @@
+/*
+Espe | Ein schlichtes Werkzeug zur Mitglieder-Verwaltung | Frontend
+Copyright (C) 2024 Christian Fraß
+
+This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
+License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with this program. If not, see
+.
+ */
+
+
+.invitation_view-form .plankton_input_group_field .plankton_input_group
+{
+ padding-left: 32px;
+}
+
+.invitation_view-form .plankton_input_group_field .plankton_input_group > *
+{
+ display: inline-block;
+ margin-right: 16px;
+ vertical-align: top;
+}
+
+.invitation_view:not([rel]) .invitation_view-message {display: none;}
+.invitation_view:not([rel]) .invitation_view-form {display: none;}
+
+.invitation_view[rel="fill"] .invitation_view-message {}
+.invitation_view[rel="fill"] .invitation_view-form {}
+
+.invitation_view[rel="wait"] .invitation_view-message {}
+.invitation_view[rel="wait"] .invitation_view-form {display: none;}
+
+.invitation_view[rel="done"] .invitation_view-message {}
+.invitation_view[rel="done"] .invitation_view-form {display: none;}
diff --git a/source/pages/invite_handle/style.css b/source/pages/invite_handle/style.css
deleted file mode 100644
index 7fb9805..0000000
--- a/source/pages/invite_handle/style.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
-Espe | Ein schlichtes Werkzeug zur Mitglieder-Verwaltung | Frontend
-Copyright (C) 2024 Christian Fraß
-
-This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
-License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
-version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
-warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along with this program. If not, see
-.
- */
-
-
-.invite_handle:not([rel]) .invite_handle-message {display: none;}
-.invite_handle:not([rel]) .invite_handle-form {display: none;}
-
-.invite_handle[rel="fill"] .invite_handle-message {}
-.invite_handle[rel="fill"] .invite_handle-form {}
-
-.invite_handle[rel="wait"] .invite_handle-message {}
-.invite_handle[rel="wait"] .invite_handle-form {display: none;}
-
-.invite_handle[rel="done"] .invite_handle-message {}
-.invite_handle[rel="done"] .invite_handle-form {display: none;}
diff --git a/source/resources/backend.ts b/source/resources/backend.ts
index f6229b7..1998cfe 100644
--- a/source/resources/backend.ts
+++ b/source/resources/backend.ts
@@ -446,7 +446,7 @@ namespace _espe.backend
/**
*/
- export async function invite_list(
+ export async function invitation_list(
) : Promise<
Array<
{
@@ -474,7 +474,7 @@ namespace _espe.backend
/**
*/
- export async function invite_read(
+ export async function invitation_read(
id : int
) : Promise<
{
@@ -505,7 +505,7 @@ namespace _espe.backend
/**
*/
- export async function invite_create(
+ export async function invitation_create(
data : {
name_changeable : boolean;
name_value : string;
@@ -542,7 +542,7 @@ namespace _espe.backend
/**
*/
- export async function invite_examine(
+ export async function invitation_examine(
key : string
) : Promise<
{
@@ -571,7 +571,7 @@ namespace _espe.backend
/**
*/
- export async function invite_accept(
+ export async function invitation_accept(
key : string,
data : {
name : string;
diff --git a/tools/makefile b/tools/makefile
index c01a763..cce13e5 100644
--- a/tools/makefile
+++ b/tools/makefile
@@ -49,10 +49,10 @@ ${dir_temp}/logic-unlinked.js: \
${dir_source}/pages/member_view/logic.ts \
${dir_source}/pages/password_change_init/logic.ts \
${dir_source}/pages/password_change_exec/logic.ts \
- ${dir_source}/pages/invite_list/logic.ts \
- ${dir_source}/pages/invite_view/logic.ts \
- ${dir_source}/pages/invite_create/logic.ts \
- ${dir_source}/pages/invite_handle/logic.ts \
+ ${dir_source}/pages/invitation_list/logic.ts \
+ ${dir_source}/pages/invitation_view/logic.ts \
+ ${dir_source}/pages/invitation_create/logic.ts \
+ ${dir_source}/pages/invitation_handle/logic.ts \
${dir_source}/logic/main.ts
@ ${cmd_log} "logic | compile …"
@ ${cmd_mkdir} $(dir $@)
@@ -75,10 +75,10 @@ ${dir_build}/style.css: \
${dir_source}/pages/member_view/style.css \
${dir_source}/pages/password_change_init/style.css \
${dir_source}/pages/password_change_exec/style.css \
- ${dir_source}/pages/invite_list/style.css \
- ${dir_source}/pages/invite_view/style.css \
- ${dir_source}/pages/invite_create/style.css \
- ${dir_source}/pages/invite_handle/style.css
+ ${dir_source}/pages/invitation_list/style.css \
+ ${dir_source}/pages/invitation_view/style.css \
+ ${dir_source}/pages/invitation_create/style.css \
+ ${dir_source}/pages/invitation_handle/style.css
@ ${cmd_log} "style …"
@ ${cmd_mkdir} $(dir $@)
@ ${cmd_cat} $^ > $@
@@ -95,10 +95,10 @@ ${dir_build}/index.html: \
${dir_source}/pages/member_view/structure.html \
${dir_source}/pages/password_change_init/structure.html \
${dir_source}/pages/password_change_exec/structure.html \
- ${dir_source}/pages/invite_list/structure.html \
- ${dir_source}/pages/invite_view/structure.html \
- ${dir_source}/pages/invite_create/structure.html \
- ${dir_source}/pages/invite_handle/structure.html
+ ${dir_source}/pages/invitation_list/structure.html \
+ ${dir_source}/pages/invitation_view/structure.html \
+ ${dir_source}/pages/invitation_create/structure.html \
+ ${dir_source}/pages/invitation_handle/structure.html
@ ${cmd_log} "structure …"
@ ${cmd_mkdir} $(dir $@)
@ tools/make-index $^ > $@