diff options
author | Simon Rettberg | 2015-04-23 17:40:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-04-23 17:40:24 +0200 |
commit | 47517c76094834d582121b84098c84c0bcb8353f (patch) | |
tree | 2d2d174956b0174e645ef246bb78ba1c683885b6 /templates/adduser | |
parent | +AGB, +DeleteUser feature (diff) | |
download | bwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.tar.gz bwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.tar.xz bwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.zip |
Add AddUser mask for creating test accounts
Diffstat (limited to 'templates/adduser')
-rw-r--r-- | templates/adduser/_page.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/templates/adduser/_page.html b/templates/adduser/_page.html new file mode 100644 index 0000000..857c2c4 --- /dev/null +++ b/templates/adduser/_page.html @@ -0,0 +1,68 @@ +<h2>Neuen Benutzer hinzufügen</h2> + +<form method="post" action="?do=AddUser"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="add"> + <div class="form-narrow"> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Einrichtung + </span> + <select class="form-control" name="organization" onchange="setorg(this)"> + {{#orgs}} + <option value="{{organizationid}}">{{name}}</option> + {{/orgs}} + </select> + </div> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Login + </span> + <input class="form-control" name="login" placeholder="mmuster@einrichtung" id="login"> + </div> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Passwort + </span> + <input class="form-control" name="password" placeholder="letmein"> + </div> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Vorname + </span> + <input class="form-control" name="firstname" placeholder="Max"> + </div> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Nachname + </span> + <input class="form-control" name="lastname" placeholder="Muster"> + </div> + + <div class="input-group"> + <span class="input-group-addon slx-ga"> + Mail + </span> + <input class="form-control" name="email" placeholder="spam@aol.com"> + </div> + + <div class="pull-right"> + <button type="submit" class="btn btn-primary">Anlegen</button> + </div> + + </div> +</form> + +<script type="text/javascript"> +function setorg(e) { + var l = $('#login'); + if (l.val().length !== 0 && l.val().charAt(0) !== '@') + return; + l.val('@' + $(e).val()); +} +</script>
\ No newline at end of file |