Bulk groups & people changes

This commit is contained in:
Norm Rasmussen
2023-02-22 17:11:14 -05:00
parent 040991ecee
commit d48e982a3f
8 changed files with 370 additions and 71 deletions

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
{% extends 'head.html' %}
{% block content %}
<h4>Hello! Please enter Group Names below.</h4>
{% if error %}
<p class=error><strong> </strong>{{ error }}</p>
{% endif %}
<p><label for="Bulk Add Groups"> Please select the appropriate options below.</label></p>
<form action="{{ url_for("bulk_add_groups")}}" method="post">
<p>Please enter a comma separated list of Groups you'd like to add</p>
<textarea id="groups" name="groups" rows="4" cols="50"></textarea>
<p></p>
<input type="submit" value="Submit"></input>
</form>
<h4>Here is a list of your client's Groups.</h4>
<a id="download" href="/downloadcsv">Click here to download as CSV.</a>
</div>
<div class="panda-table">
{{ table | safe }}
</div>
</div>
</body>
{% endblock %}

View File

@ -6,24 +6,23 @@
<p class=error><strong> </strong>{{ error }}</p>
{% endif %}
<p><label for="Bulk Add"> Please select the appropriate options below.</label></p>
<form action="{{ url_for("bulk_add")}}" method="post">
<p><label for="Bulk Add People"> Please select the appropriate options below.</label></p>
<form action="{{ url_for("bulk_add_ppl")}}" 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 UUIDs which these learners should be added to.</p>
<textarea id="groups" name="groups" rows="4" cols="50"></textarea>
<option></option>
<input type="submit" value="Submit"></select>
<p></p>
<input type="submit" value="Submit"></input>
</form>
<h4>Here is a list of your client's Groups.</h4>
<a id="download" href="/downloadcsv">Click here to download as CSV.</a>
</div>
<div class="panda-table">
<!-- Display Converted Table -->
<h2> {{ titles }} </h2>
{{ table }}
{{ table | safe }}
</div>
</div>
</div>
</body>
{% endblock %}

View File

@ -12,8 +12,7 @@
style="cursor:pointer;">
<i class="ri-car-line card__icon"></i>
<p class="card__name">Get People</p>
</a>
</form>
</a></form>
<form class="card"
id="get_courses"
@ -24,19 +23,29 @@
style="cursor:pointer;">
<i class="ri-plane-line card__icon"></i>
<p class="card__name">Get Courses</p>
</a>
</form>
</a></form>
<form class="card"
id="add_options"
action="{{ url_for('add_options')}}"
id="add_ppl_options"
action="{{ url_for('add_ppl_options')}}"
method="post">
<a class="a-card"
onclick="document.forms['add_options'].submit()"
onclick="document.forms['add_ppl_options'].submit()"
style="cursor:pointer;">
<i class="ri-send-plane-line card__icon"></i>
<p class="card__name">Bulk Add People</p>
</a>
</a></form>
<form class="card"
id="add_groups_options"
action="{{ url_for('add_groups_options')}}"
method="post">
<a class="a-card"
onclick="document.forms['add_groups_options'].submit()"
style="cursor:pointer;">
<i class="ri-shape-2-line card__icon"></i>
<p class="card__name">Bulk Add Groups</p>
</a></form>
</div>
</body>

View File

@ -1,4 +1,3 @@
<!DOCTYPE html>
{% extends 'head.html' %}
{% block content %}
@ -6,11 +5,7 @@
<a id="download" href="/downloadcsv">Click here to download as CSV.</a>
</div>
<div class="panda-table">
<!-- Display Converted Table -->
{% for table in tables %}
<h2> {{ titles }}</h2>
{{ table | safe }}
{% endfor %}
</div>
</div>
</body>