.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% for cid in current_cid_users %}
|
||||
|
||||
<li><a href="{% url 'generic:update_cid' cid.pk %}">{{cid.cid}}</a> [{{cid.passcode}}] {{cid.name}} /
|
||||
Email: {{cid.email}}
|
||||
Email: {{cid.email}} <button class="toggle-btn" data-pk="{{cid.pk}}">Toggle<button>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
@@ -21,6 +21,14 @@
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
<a href="{% url 'generic:manage_cids' %}">Manage CIDs here</a>
|
||||
|
||||
|
||||
<a href="{% url 'generic:manage_cids' %}">Manage CIDs here</a>
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
$(".toggle-btn").click((el) => {
|
||||
console.log(el);
|
||||
console.log(el.dataset.pk);
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user