This commit is contained in:
sam 2023-10-22 17:14:53 +02:00
parent 2843aec125
commit dea8968f6b
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
11 changed files with 276 additions and 39 deletions

View file

@ -1,5 +1,5 @@
{{#*inline "page"}}
<h1>Error</h1>
<p>An internal error occurred. Sorry :&lpar;</p>
<p>Error: {{message}}</p>
{{/inline}}
{{> root.hbs}}

View file

@ -1,5 +1,10 @@
{{#*inline "page"}}
<h1>New user</h1>
{{#if message}}
<div>
{{message}}
</div>
{{/if}}
<form method="POST">
<label>Username <input type="text" name="username" /></label>
<label>Password <input type="password" name="password" /></label>

View file

@ -0,0 +1,13 @@
{{#*inline "page"}}
<h1>New user created!</h1>
{{#if message}}
<div>
{{message}}
</div>
{{/if}}
<ul>
<li>ID: {{new_user.id}}</li>
<li>Username: {{new_user.username}}</li>
</ul>
{{/inline}}
{{> root.hbs}}