Table not working randomly. H2 repeating in the loop. Function upgrades.
This commit is contained in:
@ -3,22 +3,27 @@
|
||||
{% block content %}
|
||||
<h4>Hello! Please enter the emails below.</h4>
|
||||
{% if error %}
|
||||
<p class=error><strong> </strong>{{ error }}
|
||||
<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>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 select which Groups these learners should be added to. </p>
|
||||
<select name="groups" id="groups" multiple>
|
||||
<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>
|
||||
</form>
|
||||
|
||||
</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 }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="{{ url_for('static', filename='getallgroups.js')}}"></script>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename="css/styles.css") }}" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -27,14 +27,17 @@
|
||||
</a>
|
||||
</form>
|
||||
|
||||
<div class="card" >
|
||||
<a class="a-card" href="{{ url_for('add_options')}}"
|
||||
style="cursor:pointer; color: inherit; text-decoration: none">
|
||||
<i class="ri-building-line card__icon"></i>
|
||||
<p class="card__name">Bulk Add</p>
|
||||
<form class="card"
|
||||
id="add_options"
|
||||
action="{{ url_for('add_options')}}"
|
||||
method="post">
|
||||
<a class="a-card"
|
||||
onclick="document.forms['add_options'].submit()"
|
||||
style="cursor:pointer;">
|
||||
<i class="ri-send-plane-line card__icon"></i>
|
||||
<p class="card__name">Bulk Add People</p>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
||||
@ -14,4 +14,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user