2014-08-06 15:34:08 +04:00
|
|
|
<header>
|
|
|
|
{{#link-to 'settings' class='btn btn-default'}}Back{{/link-to}}
|
2014-07-02 07:44:39 +04:00
|
|
|
<h2 class="title">Users</h2>
|
|
|
|
<section class="page-actions">
|
2014-08-06 15:34:08 +04:00
|
|
|
<button class="btn btn-green" {{action "openModal" "invite-new-user"}} >New User</button>
|
2014-07-02 07:44:39 +04:00
|
|
|
</section>
|
|
|
|
</header>
|
|
|
|
|
2014-07-20 20:42:03 +04:00
|
|
|
{{#view "settings/users/users-list-view" tagName="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-18 12:02:35 +04:00
|
|
|
<section class="object-list invited-users">
|
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>
|
2014-07-19 04:58:27 +04:00
|
|
|
{{#if pending}}
|
|
|
|
<span class="red">Invitation not sent - please try again</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="description">Invitation sent: {{created_at}}</span>
|
|
|
|
{{/if}}
|
2014-07-06 19:56:29 +04:00
|
|
|
</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
|
|
|
|
2014-08-10 19:15:10 +04:00
|
|
|
<section class="object-list active-users">
|
2014-07-02 07:44:39 +04:00
|
|
|
|
|
|
|
<h4 class="object-list-title">Active users</h4>
|
|
|
|
|
|
|
|
{{#each activeUsers itemController="settings/users/user"}}
|
2014-07-17 06:16:31 +04:00
|
|
|
{{#link-to 'settings.users.user' this class="object-list-item" }}
|
2014-07-22 23:13:30 +04:00
|
|
|
<span class="object-list-item-figure" {{bind-attr style=image}}>
|
|
|
|
<span class="hidden">Photo of {{unbound name}}</span>
|
|
|
|
</span>
|
2014-07-02 07:44:39 +04:00
|
|
|
|
|
|
|
<div class="object-list-item-body">
|
2014-07-06 19:56:29 +04:00
|
|
|
<span class="name">
|
2014-07-29 09:50:34 +04:00
|
|
|
{{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>
|
|
|
|
<aside class="object-list-item-aside">
|
2014-07-29 09:50:34 +04:00
|
|
|
{{#unless isAuthor}}
|
|
|
|
{{#each roles}}
|
|
|
|
<span class="role-label {{unbound lowerCaseName}}">{{name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
{{/unless}}
|
2014-07-02 07:44:39 +04:00
|
|
|
</aside>
|
2014-07-06 19:56:29 +04:00
|
|
|
{{/link-to}}
|
2014-07-02 07:44:39 +04:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</section>
|
2014-07-20 20:42:03 +04:00
|
|
|
{{/view}}
|