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

@ -37,15 +37,15 @@
</tr>
{% if accountList %}
{% for account in accountList -%}
<tr{% if account['is_active'] != 1 %} class="inactive"{% endif %}>
<td><a href="/accounts/{{ account['user_id'] }}">{{ account['username'] }}</a></td>
<td><a href="/accounts?domain={{ account['domain'] }}">{{ account['domain'] }}</a></td>
<td>{{ account['alias_count'] }}</td>
<td>{{ account['is_active'] == 1 ? 'Yes' : 'No' }}</td>
<td class="detail_column"><span class="gray">vmail/</span>{{ account['home_dir'] }}</td>
<td class="detail_column">{{ account['memo'] }}</td>
<td>{{ account['created_at'] }}</td>
<td class="detail_column">{{ account['modified_at'] }}</td>
<tr{% if not account.isActive() %} class="inactive"{% endif %}>
<td><a href="/accounts/{{ account.getId() }}">{{ account.getUsername() }}</a></td>
<td><a href="/accounts?domain={{ account.getDomain() }}">{{ account.getDomain() }}</a></td>
<td>{{ account.getAliasCount() }}</td>
<td>{{ account.isActive() ? 'Yes' : 'No' }}</td>
<td class="detail_column"><span class="gray">vmail/</span>{{ account.getHomeDir() }}</td>
<td class="detail_column">{{ account.getMemo() }}</td>
<td>{{ account.getCreatedAt() | date }}</td>
<td class="detail_column">{{ account.getModifiedAt() | date }}</td>
</tr>
{% endfor %}
{% else %}