Figured out that I can use a single endpoint for a tons of additionalPOST requests, which has opened up a lot of doors. Started to create a robust add option. Also added a template button as an idea, but need to see what's possible

This commit is contained in:
Norm Rasmussen
2023-03-07 14:56:01 -05:00
parent 92f4ca2fbc
commit 49de321387
10 changed files with 914 additions and 188 deletions

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
{% include 'head.html' %}
{% include 'header.html' %}
{% include 'logo.html' %}
{% block content %}
<h4>Please find your options below. Some things to note:</h4>
{% if error %}
<p class=error><strong> </strong>{{ error }}</p>
{% endif %}
<p>&nbsp;</p>
<div class="man-csv-opts">
<div class="manual-opts">
<p><label for="Bulk Add People"> Please select the appropriate options below.</label></p>
<form action="{{ url_for("bulk_add")}}" method="post">
<p>Please Copy and Paste Emails of learners you'd like to add</p>
<textarea id="emails" name="emails" rows="4" cols="50"></textarea>
<p>Please paste in the Group Names which these learners should be added to.</p>
<textarea id="groups" name="groups" rows="4" cols="50"></textarea>
<p></p>
<input type="submit" value="Submit"></input>
</form>
</div>
{% include 'csv.html' %}
</div>
</div>
{% include 'table.html' %}
{% endblock %}