summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2015-04-23 17:40:24 +0200
committerSimon Rettberg2015-04-23 17:40:24 +0200
commit47517c76094834d582121b84098c84c0bcb8353f (patch)
tree2d2d174956b0174e645ef246bb78ba1c683885b6 /templates
parent+AGB, +DeleteUser feature (diff)
downloadbwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.tar.gz
bwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.tar.xz
bwlp-webadmin-47517c76094834d582121b84098c84c0bcb8353f.zip
Add AddUser mask for creating test accounts
Diffstat (limited to 'templates')
-rw-r--r--templates/adduser/_page.html68
-rw-r--r--templates/main-menu.html6
2 files changed, 73 insertions, 1 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
diff --git a/templates/main-menu.html b/templates/main-menu.html
index 8e78bc2..2cfe389 100644
--- a/templates/main-menu.html
+++ b/templates/main-menu.html
@@ -10,6 +10,11 @@
<a class="navbar-brand" href="?do=Main"><img src="/img/bwLehrpool_198x46.png" alt="bwLehrpool"></a>
</div>
<div class="navbar-collapse collapse">
+ <ul class="nav navbar-nav">
+ {{#admin}}
+ <li><a href="?do=AddUser">AddUser</a></li>
+ {{/admin}}
+ </ul>
<ul class="nav navbar-nav navbar-right">
{{#user}}
<li>
@@ -28,4 +33,3 @@
</div>
</div>
</div>
-