Implement account creation; add base class FormData to validate forms
This commit is contained in:
parent
23127dd193
commit
48925f283f
13 changed files with 392 additions and 96 deletions
|
|
@ -16,21 +16,11 @@
|
|||
<h3>Edit account data</h3>
|
||||
|
||||
<form action="/accounts/{{ id }}/edit" method="POST">
|
||||
{% if success is defined %}
|
||||
<div class="success_box">
|
||||
<h4>Success</h4>
|
||||
{{ success }}
|
||||
</div>
|
||||
{% elseif error is defined %}
|
||||
<div class="error_box">
|
||||
<h4>Error</h4>
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ include('includes/form_result_box.html.twig') }}
|
||||
|
||||
<input type="hidden" name="user_id" value="{{ id }}"/>
|
||||
|
||||
<div class="edit_box">
|
||||
<div class="form_box">
|
||||
<h4>Username</h4>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
@ -60,7 +50,7 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="edit_box">
|
||||
<div class="form_box">
|
||||
<h4>Password</h4>
|
||||
<p>The new password will be hashed using the current default hash algorithm.</p>
|
||||
<table>
|
||||
|
|
@ -75,7 +65,7 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="edit_box">
|
||||
<div class="form_box">
|
||||
<h4>Account status</h4>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
@ -99,7 +89,7 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="edit_box">
|
||||
<div class="form_box">
|
||||
<h4>Home directory</h4>
|
||||
<p><b>Important:</b> Changing the home directory here will <b>NOT</b> move any existing mail data, this needs to be done
|
||||
manually!</p>
|
||||
|
|
@ -117,7 +107,7 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="edit_box">
|
||||
<div class="form_box">
|
||||
<h4><label for="edit_memo">Admin memo</label></h4>
|
||||
<p>This field is only readable by admins.</p>
|
||||
<table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue