Finished the manual upload and now working on CSV

This commit is contained in:
Norm Rasmussen
2023-03-08 16:11:32 -05:00
parent 9e3ac00285
commit 030c5541cf
6 changed files with 147 additions and 171 deletions

View File

@ -38,7 +38,7 @@
<p>&nbsp;</p>
<div class="man-csv-opts">
<div class="manual-opts">
<p><label for="Bulk Add People"> Each item must be comma separated or placed on a
<p><label for="Bulk Add"> Each item must be comma separated or placed on a
new line.</label></p>
<form action="{{ url_for("bulk_add")}}" method="post">
<p>Emails</p>
@ -52,5 +52,7 @@
{% include 'csv.html' %}
</div>
</div>
{% include 'table.html' %}
{% if table %}
{% include 'table.html' %}
{% endif %}
{% endblock %}

View File

@ -3,18 +3,19 @@
<h3> If you'd like to upload a CSV. Please do so here:</h3>
<p></p>
<form method="POST"
action="{{ url_for('csv') }}"
action="{{ url_for('upload_file') }}"
enctype="multipart/form-data">
<p><input type="file" name="file"></p>
<div class="radio-options">
<input type="radio" id="all-groups" name="all-groups" value="all-groups">
<label for="all-groups">All Learners in All Groups</label>
<input type="radio" id="all-groups" name="learner-groups" value="all-groups" checked>
<label for="learner-groups">All Learners in All Groups</label>
</div>
<div class="radio-options">
<input type="radio" id="some-groups" name="some-groups" value="some-groups">
<label for="some-groups">Learners Only in Adjacent Groups</label>
<input type="radio" id="some-groups" name="learner-groups" value="some-groups">
<label for="learner-groups">Learners Only in Adjacent Groups</label>
</div>
<p><input type="submit" value="Submit CSV"></p>
<p><input type="submit" name="preview" value="Preview"></p>
<input type="submit" name="submit" value="Submit to Academy"></input>
</form>
</div>