Add ability to send email in bulk

This commit is contained in:
rubenwardy
2020-12-05 19:38:16 +00:00
parent 683b855584
commit 3efda30b98
7 changed files with 107 additions and 39 deletions

View File

@@ -104,7 +104,7 @@
<td>Admin</td>
<td>
{% if user.email %}
<a class="btn btn-primary" href="{{ url_for('users.send_email', username=user.username) }}">
<a class="btn btn-primary" href="{{ url_for('admin.send_single_email', username=user.username) }}">
Email
</a>
{% else %}

View File

@@ -1,18 +0,0 @@
{% extends "base.html" %}
{% block title %}
Send Email
{% endblock %}
{% block content %}
<h1>Send Email</h1>
{% from "macros/forms.html" import render_field, render_submit_field %}
<form action="" method="POST" class="form" role="form">
{{ form.hidden_tag() }}
{{ render_field(form.subject) }}
{{ render_field(form.text, fieldclass="form-control markdown") }}
{{ render_submit_field(form.submit) }}
</form>
{% endblock %}