Send invites
This commit is contained in:
2
bookwyrm/templates/email/invite/html_content.html
Normal file
2
bookwyrm/templates/email/invite/html_content.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
<a href="{{ invite_link }}">{% blocktrans %}Join {{ site_name }}{% endblocktrans %}</a>
|
2
bookwyrm/templates/email/invite/subject.html
Normal file
2
bookwyrm/templates/email/invite/subject.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}You're invited! Join {{ site_name }}{% endblocktrans %}
|
2
bookwyrm/templates/email/invite/text_content.html
Normal file
2
bookwyrm/templates/email/invite/text_content.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% load i18n %}
|
||||
{% blocktrans %}Join {{ site_name }}: {{ invite_link }}{% endblocktrans %}
|
@ -15,8 +15,8 @@
|
||||
<h2 class="menu-label">{% trans "Manage Users" %}</h2>
|
||||
<ul class="menu-list">
|
||||
<li>
|
||||
{% url 'settings-invites' as url %}
|
||||
{% url 'settings-invite-requests' as alt_url %}
|
||||
{% url 'settings-invite-requests' as url %}
|
||||
{% url 'settings-invites' as alt_url %}
|
||||
<a href="{{ url }}"{% if url in request.path or request.path in alt_url %} class="is-active" aria-selected="true"{% endif %}>{% trans "Invites" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -49,27 +49,29 @@
|
||||
{% trans "Requested" %}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if req.invite and not req.invite.times_used %}
|
||||
<button class="button is-danger is-light is-small">{% trans "Revoke invite" %}</button>
|
||||
{% else %}
|
||||
<div class="field is-grouped">
|
||||
<form name="send-invite" method="post" action="{% url 'settings-invite-requests' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
||||
<button type="submit" class="button is-link is-light is-small">{% trans "Send invite" %}</button>
|
||||
</form>
|
||||
<td class="field is-grouped">
|
||||
<form name="send-invite" method="post" action="{% url 'settings-invite-requests' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
||||
{% if not req.invite %}
|
||||
<button type="submit" class="button is-link is-light is-small">{% trans "Send invite" %}</button>
|
||||
{% else %}
|
||||
<button type="submit" class="button is-link is-light is-small">{% trans "Re-send invite" %}</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
|
||||
<form name="ignore-request" method="post" action="{% url 'settings-invite-requests-ignore' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
||||
{% if not req.ignored %}
|
||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Ignore" %}</button>
|
||||
{% else %}
|
||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Un-gnore" %}</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
{% if req.invite and not req.invite.times_used %}
|
||||
{# <button class="button is-danger is-light is-small">{% trans "Revoke invite" %}</button> #}
|
||||
{% else %}
|
||||
<form name="ignore-request" method="post" action="{% url 'settings-invite-requests-ignore' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="invite-request" value="{{ req.id }}">
|
||||
{% if not req.ignored %}
|
||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Ignore" %}</button>
|
||||
{% else %}
|
||||
<button type="submit" class="button is-danger is-light is-small">{% trans "Un-gnore" %}</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user