Vulcan/packages/telescope-invites/lib/client/templates/user_invites.html

41 lines
1.1 KiB
HTML
Raw Normal View History

<template name="userInvites">
<div class="grid-small grid-block dialog admin">
2015-05-08 11:00:15 +09:00
<h3>Invites</h3>
{{#if canCurrentUserInvite}}
{{#autoForm schema=invitesSchema id="inviteForm" class="form-block" type="method" meteormethod="inviteUser"}}
<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 btn btn-primary" 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>