#2736 Move simple-datatables to base

This commit is contained in:
Cayo Puigdefabregas 2022-03-01 10:30:47 +01:00
parent 3886076f50
commit ab89b7eff0
5 changed files with 2 additions and 14 deletions

View File

@ -19,10 +19,12 @@
<!-- JS Files --> <!-- JS Files -->
<script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}"></script> <script src="{{ url_for('static', filename='js/jquery-3.6.0.min.js') }}"></script>
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest"></script>
<!-- Vendor CSS Files --> <!-- Vendor CSS Files -->
<link href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet"> <link href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='vendor/bootstrap-icons/bootstrap-icons.css') }}" rel="stylesheet"> <link href="{{ url_for('static', filename='vendor/bootstrap-icons/bootstrap-icons.css') }}" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<!-- Template Main CSS File --> <!-- Template Main CSS File -->

View File

@ -1,6 +1,5 @@
{% extends "ereuse_devicehub/base_site.html" %} {% extends "ereuse_devicehub/base_site.html" %}
{% block main %} {% block main %}
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<div class="pagetitle"> <div class="pagetitle">
<h1>Inventory</h1> <h1>Inventory</h1>

View File

@ -1,6 +1,5 @@
{% extends "ereuse_devicehub/base_site.html" %} {% extends "ereuse_devicehub/base_site.html" %}
{% block main %} {% block main %}
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<div class="pagetitle"> <div class="pagetitle">
<h1>Inventory</h1> <h1>Inventory</h1>
@ -386,14 +385,9 @@
{% include "inventory/trade.html" %} {% include "inventory/trade.html" %}
{% include "inventory/alert_export_error.html" %} {% include "inventory/alert_export_error.html" %}
<!-- CDN -->
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest"></script>
<!-- Custom Code --> <!-- Custom Code -->
<script> <script>
const table = new simpleDatatables.DataTable("table") const table = new simpleDatatables.DataTable("table")
</script>
<script>
</script> </script>
<script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script> <script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script>
{% endblock main %} {% endblock main %}

View File

@ -1,6 +1,5 @@
{% extends "ereuse_devicehub/base_site.html" %} {% extends "ereuse_devicehub/base_site.html" %}
{% block main %} {% block main %}
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<div class="pagetitle"> <div class="pagetitle">
<h1>Inventory</h1> <h1>Inventory</h1>

View File

@ -1,6 +1,5 @@
{% extends "ereuse_devicehub/base_site.html" %} {% extends "ereuse_devicehub/base_site.html" %}
{% block main %} {% block main %}
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<div class="pagetitle"> <div class="pagetitle">
<h1>Inventory</h1> <h1>Inventory</h1>
@ -77,13 +76,8 @@
</div> </div>
</section> </section>
<!-- CDN -->
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest"></script>
<!-- Custom Code --> <!-- Custom Code -->
<script> <script>
const table = new simpleDatatables.DataTable("table") const table = new simpleDatatables.DataTable("table")
</script>
<script>
</script> </script>
{% endblock main %} {% endblock main %}