mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-29 16:14:36 +00:00
dont show user creation form on spu page
This commit is contained in:
parent
d190f228f5
commit
9122ec18b0
1 changed files with 10 additions and 8 deletions
|
@ -532,14 +532,16 @@ end
|
||||||
|
|
||||||
local function r_users(show_special)
|
local function r_users(show_special)
|
||||||
return respond(200, "Abrechenbarkeit", function()
|
return respond(200, "Abrechenbarkeit", function()
|
||||||
print(format([[
|
if not show_special then
|
||||||
<form action="/" method="GET" id="user_creation">
|
print(format([[
|
||||||
<h3>{+index.form.create_user}</h3>
|
<form action="/" method="GET" id="user_creation">
|
||||||
<label for="username">{+field.username}: </label>
|
<h3>{+index.form.create_user}</h3>
|
||||||
<input type="text" name="create_user" id="username" />
|
<label for="username">{+field.username}: </label>
|
||||||
<input type="submit" value="{+index.form.create_user.submit}" class="button amount-ntr" />
|
<input type="text" name="create_user" id="username" />
|
||||||
</form>
|
<input type="submit" value="{+index.form.create_user.submit}" class="button amount-ntr" />
|
||||||
]]))
|
</form>
|
||||||
|
]]))
|
||||||
|
end
|
||||||
print([[<div class="userlist"></div>]]) -- for printing
|
print([[<div class="userlist"></div>]]) -- for printing
|
||||||
print([[<ul class="userlist">]])
|
print([[<ul class="userlist">]])
|
||||||
for _, user in ipairs(get_active_users()) do
|
for _, user in ipairs(get_active_users()) do
|
||||||
|
|
Loading…
Reference in a new issue