Vulcan/client/views/users/invites.html
2014-07-31 01:18:17 +02:00

41 lines
No EOL
1.1 KiB
HTML

<template name="invites">
<div class="grid-small grid-block dialog admin">
<h2>Invites</h2>
{{#if canCurrentUserInvite}}
{{#autoForm schema=invitesSchema id="inviteForm" class="form-block" type="method" meteormethod="inviteUserByEmail"}}
<h3>Invite someone</h3>
<div class="control-group">
<label>Email</label>
<div class="controls">
{{> afFieldInput name="invitedUserEmail"}}
</div>
</div>
<div class="form-actions">
{{#if afFieldIsInvalid name="invitedUserEmail"}}
This is not a valid email
{{/if}}
<input type="submit" class="button" value="Invite" />
</div>
{{/autoForm}}
{{/if}}
<table>
<thead>
<tr>
<td>Email</td>
<td>Accepted</td>
</tr>
</thead>
<tbody>
{{#each invites}}
<tr>
<td>{{invitedUserEmail}}</td>
<td>{{#if accepted}}<i class="icon-check"></i>{{/if}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</template>