2014-07-13 21:03:48 +04:00
|
|
|
<header>
|
|
|
|
{{#link-to 'settings' class='button-back button'}}Back{{/link-to}}
|
2014-07-02 07:44:39 +04:00
|
|
|
<h2 class="title">Users</h2>
|
|
|
|
<section class="page-actions">
|
2014-07-14 21:33:47 +04:00
|
|
|
<button class="button-add" {{action "openModal" "invite-new-user" this}} >New User</button>
|
2014-07-02 07:44:39 +04:00
|
|
|
</section>
|
|
|
|
</header>
|
|
|
|
|
2014-07-13 21:03:48 +04:00
|
|
|
<section class="content settings-users">
|
2014-07-06 19:56:29 +04:00
|
|
|
{{#if invitedUsers}}
|
2014-07-02 07:44:39 +04:00
|
|
|
|
2014-07-06 19:56:29 +04:00
|
|
|
<section class="object-list">
|
2014-07-02 07:44:39 +04:00
|
|
|
|
2014-07-06 19:56:29 +04:00
|
|
|
<h4 class="object-list-title">Invited users</h4>
|
|
|
|
|
|
|
|
{{#each invitedUsers itemController="settings/users/user"}}
|
|
|
|
<div class="object-list-item">
|
|
|
|
<span class="object-list-item-icon icon-mail">ic</span>
|
|
|
|
|
|
|
|
<div class="object-list-item-body">
|
|
|
|
<span class="name">{{email}}</span><br>
|
|
|
|
<span class="description">Invitation sent: {{created_at}}</span>
|
|
|
|
</div>
|
|
|
|
<aside class="object-list-item-aside">
|
|
|
|
<a class="object-list-action" href="#" {{action "revoke"}}>Revoke</a>
|
|
|
|
<a class="object-list-action" href="#" {{action "resend"}}>Resend</a>
|
|
|
|
</aside>
|
2014-07-02 07:44:39 +04:00
|
|
|
</div>
|
2014-07-06 19:56:29 +04:00
|
|
|
{{/each}}
|
2014-07-02 07:44:39 +04:00
|
|
|
|
2014-07-06 19:56:29 +04:00
|
|
|
</section>
|
2014-07-02 07:44:39 +04:00
|
|
|
|
2014-07-06 19:56:29 +04:00
|
|
|
{{/if}}
|
2014-07-02 07:44:39 +04:00
|
|
|
|
|
|
|
<section class="object-list">
|
|
|
|
|
|
|
|
<h4 class="object-list-title">Active users</h4>
|
|
|
|
|
|
|
|
{{#each activeUsers itemController="settings/users/user"}}
|
2014-07-06 19:56:29 +04:00
|
|
|
{{#link-to 'settings.users.user' slug class="object-list-item" }}
|
2014-07-02 07:44:39 +04:00
|
|
|
<img class="object-list-item-figure"
|
|
|
|
src="{{unbound imageUrl}}"
|
|
|
|
alt="Photo of {{unbound name}}" />
|
|
|
|
|
|
|
|
<div class="object-list-item-body">
|
2014-07-06 19:56:29 +04:00
|
|
|
<span class="name">
|
2014-07-02 07:44:39 +04:00
|
|
|
{{user.name}}
|
2014-07-06 19:56:29 +04:00
|
|
|
</span>
|
2014-07-02 07:44:39 +04:00
|
|
|
<br>
|
|
|
|
<span class="description">Last seen: {{unbound last_login}}</span>
|
|
|
|
</div>
|
|
|
|
<!-- @TODO: replace these with real access level once API and data model are updated -->
|
|
|
|
<aside class="object-list-item-aside">
|
|
|
|
<span class="role-label editor">Editor</span>
|
|
|
|
<span class="role-label owner">Owner</span>
|
|
|
|
</aside>
|
2014-07-06 19:56:29 +04:00
|
|
|
{{/link-to}}
|
2014-07-02 07:44:39 +04:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|