Implement Account model; small style changes; Twig debug setting
This commit is contained in:
parent
7859ef77ee
commit
32add30c9d
10 changed files with 263 additions and 56 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue