Commit 80043c2f authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Add templates for admin pages

parent 117bd957
<h1>Suche</h1>
<p>Suche beachtet Groß-/Kleinschreibung. Das Prozentzeichen % ist ein Wildcart in der Namenssuche. Die Suche gibt nur bis zu 30 Ergebnisse aus, auch wenn es mehr gibt!</p>
<p>
<form action="/admin/user/" method="post">
ID:<br>
<input type="text" name="id">
<br><br>
<input type="submit" value="search">
</form>
</p>
<p>
<form action="/admin/user/" method="post">
Vorname:<br>
<input type="text" name="firstname">
<br>
Nachname:<br>
<input type="text" name="lastname" autofocus>
<br><br>
<input type="submit" value="search">
</form>
</p>
<p>
<form action="/admin/user/" method="post">
Logincode:<br>
<input type="text" name="logincode">
<br><br>
<input type="submit" value="search">
</form>
</p>
<p>
<form action="/admin/user/" method="post">
PMS-ID:<br>
<input type="text" name="pmsid">
<br><br>
<input type="submit" value="search">
</form>
</p>
<h1>Gruppe: {{group.name}}</h1>
<p><a href="/admin/user/{{group_admin_id}}">Gruppen-Administrator: {{group_admin_id}}</a></p>
<p>Gruppencode: {{group.code}}<br>
Marker: {{group.tag}}</p>
<h2>Mitglieder</h2>
<table>
<tr>
<th>Name</th>
<th>Logincode</th>
<th>Jahrgangstufe</th>
</tr>
{{#each member}}
<tr>
<td><a href="/admin/user/{{id}}">{{firstname}} {{lastname}}</a></td>
<td>{{logincode}}</td>
<td>{{grade}}</td>
</tr>
{{/each}}
</table>
<h1>Ergebnisse</h1>
<ul>
{{#each result}}
<li><a href="{{this.0}}">({{this.0}}) {{this.1}} {{this.2}}</li>
{{/each}}
</ul>
<h1>Benutzer: {{firstname}} {{lastname}}</h1>
Benutzername: {{username}}<br>
{{#if teacher}}Ist Lehrer <br>{{/if}}
{{#if logged_id}}Ist eingeloggt <br>{{/if}}
<h2>Gruppen</h2>
{{#if group}}
<h3>Admin von</h3>
<ul>
{{#each group}}
<li><a href="/admin/group/{{id}}">{{name}}</a>, {{code}}, {{tag}}</li>
{{/each}}
</ul>
{{/if}}
{{#if group_id }}
<h3>Mitglied von</h3>
<ul>
<li><a href="/admin/group/{{group_id}}">{{group_name}}</a></li>
</ul>
{{/if}}
../default/admin.hbs
\ No newline at end of file
../default/admin_group.hbs
\ No newline at end of file
../default/admin_search_results.hbs
\ No newline at end of file
../default/admin_user.hbs
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment