Implement Account model; small style changes; Twig debug setting

This commit is contained in:
Lexi / Zoe 2021-08-14 23:37:23 +02:00
parent 7859ef77ee
commit 32add30c9d
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
10 changed files with 263 additions and 56 deletions

View file

@ -18,15 +18,15 @@
<table class="bordered_table vertical_table_headers">
<tr>
<th style="min-width: 10em">User ID</th>
<td style="min-width: 20em">{{ accountData['user_id'] }}</td>
<td style="min-width: 20em">{{ account.getId() }}</td>
</tr>
<tr>
<th>Username</th>
<td>{{ accountData['username'] }}</td>
<td>{{ account.getUsername() }}</td>
</tr>
<tr>
<th>Domain</th>
<td><a href="/accounts?domain={{ accountData['domain'] | escape('url') }}">{{ accountData['domain'] }}</a></td>
<td><a href="/accounts?domain={{ account.getDomain() | escape('url') }}">{{ account.getDomain() }}</a></td>
</tr>
<tr>
<th>Password</th>
@ -42,23 +42,23 @@
</tr>
<tr>
<th>Status</th>
<td>{{ accountData['is_active'] == '1' ? '<span class="green">Active</span>' : '<span class="red">Inactive</span>' }}</td>
<td>{{ account.isActive() ? '<span class="green">Active</span>' : '<span class="red">Inactive</span>' }}</td>
</tr>
<tr>
<th>Home directory</th>
<td><span class="gray">/srv/vmail/</span>{{ accountData['home_dir'] }}</td>
<td><span class="gray">/srv/vmail/</span>{{ account.getHomeDir() }}</td>
</tr>
<tr>
<th>Admin memo</th>
<td>{{ accountData['memo'] | nl2br }}</td>
<td>{{ account.getMemo() | nl2br }}</td>
</tr>
<tr>
<th>Created at</th>
<td>{{ accountData['created_at'] }}</td>
<td>{{ account.getCreatedAt() | date }}</td>
</tr>
<tr>
<th>Last modified at</th>
<td>{{ accountData['modified_at'] }}</td>
<td>{{ account.getModifiedAt() | date }}</td>
</tr>
</table>