Merge branch 'main' of https://gitea.corbz.dev/corbz/PYRSS-Website
This commit is contained in:
commit
aca4a65a73
@ -22,7 +22,7 @@ function initSubscriptionTable() {
|
||||
columns: [
|
||||
{
|
||||
// Select row checkbox column
|
||||
title: "",
|
||||
title: '<input type="checkbox" class="form-check-input" />',
|
||||
data: null,
|
||||
orderable: false,
|
||||
className: "text-center",
|
||||
@ -103,7 +103,7 @@ $("#subTable tbody").on("change", "tr td:first-child .form-check-input", functio
|
||||
});
|
||||
|
||||
// Select all rows checkbox
|
||||
$('#subTable thead td:first-child input[type="checkbox"]').on("change", function() {
|
||||
$('#subTable thead th:first-child input[type="checkbox"]').on("change", function() {
|
||||
var selected = $(this).prop("checked");
|
||||
$('#subTable tbody tr').each(function(rowIndex) {
|
||||
var row = subTable.row(rowIndex)
|
||||
|
21
apps/templates/home/includes/submodal.html
Normal file
21
apps/templates/home/includes/submodal.html
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
<div id="subFormModal" class="modal fade" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<form id="subForm" novalidate>
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
Add Subscription
|
||||
</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -43,11 +43,11 @@
|
||||
<div class="table-responsive mt-3">
|
||||
<table id="subTable" class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
{% comment %} <th scope="col" class="text-center no-sort">
|
||||
<!-- <tr>
|
||||
<th scope="col" class="text-center no-sort">
|
||||
<input type="checkbox" class="form-check-input" />
|
||||
</th> {% endcomment %}
|
||||
{% comment %} <th scope="col">Name</th>
|
||||
</th> -->
|
||||
<!-- <th scope="col">Name</th>
|
||||
<th scope="col">RSS URL</th>
|
||||
<th scope="col">Channels</th>
|
||||
<th scope="col">Created</th>
|
||||
@ -57,8 +57,8 @@
|
||||
<a href="#" class="text-body">
|
||||
<i class="bi bi-plus-lg"></i>
|
||||
</a>
|
||||
</th> {% endcomment %}
|
||||
</tr>
|
||||
</th>
|
||||
</tr> -->
|
||||
</thead>
|
||||
<tbody>
|
||||
{% comment %} <tr>
|
||||
@ -98,6 +98,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% include "home/includes/servermodal.html" %}
|
||||
{% include "home/includes/submodal.html" %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block javascript %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user