This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-11-27 16:07:59 +01:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.invites.title')
|
|
|
|
|
2017-12-01 16:40:02 +01:00
|
|
|
.filters
|
|
|
|
.filter-subset
|
|
|
|
%strong= t('admin.invites.filter.title')
|
|
|
|
%ul
|
|
|
|
%li= filter_link_to t('admin.invites.filter.all'), available: nil, expired: nil
|
|
|
|
%li= filter_link_to t('admin.invites.filter.available'), available: 1, expired: nil
|
|
|
|
%li= filter_link_to t('admin.invites.filter.expired'), available: nil, expired: 1
|
|
|
|
|
2017-11-27 16:07:59 +01:00
|
|
|
- if policy(:invite).create?
|
|
|
|
%p= t('invites.prompt')
|
|
|
|
|
|
|
|
= render 'invites/form'
|
|
|
|
|
|
|
|
%hr/
|
|
|
|
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
%th= t('invites.table.uses')
|
|
|
|
%th= t('invites.table.expires_at')
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
= render @invites
|
|
|
|
|
|
|
|
= paginate @invites
|