Skip to content
Snippets Groups Projects
Commit a0309fcd authored by leo.muff's avatar leo.muff
Browse files

more frontend ptdr

parent 83bbfcbe
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,6 @@ pub async fn get_html_clients(db_conn:DbConnection, id: i32) -> Result<Template, ...@@ -53,7 +53,6 @@ pub async fn get_html_clients(db_conn:DbConnection, id: i32) -> Result<Template,
let info = get_sysinfo(&db_conn, id).await?; let info = get_sysinfo(&db_conn, id).await?;
let ports = get_ports(&db_conn, info.id).await?; let ports = get_ports(&db_conn, info.id).await?;
Ok(Template::render("client", context! {client, keys, info, ports, id})) Ok(Template::render("client", context! {client, keys, info, ports, id}))
} }
#[post("/info", data="<sysinfo>")] #[post("/info", data="<sysinfo>")]
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<body> <body>
{% block content %}{% endblock content %} {% block content %}{% endblock content %}
{% block scripts %} {% block scripts %}
<script src="/static/bootstrap/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script> <script src="/static/bootstrap/js/bootstrap.min.js" crossorigin="anonymous"></script>
{% endblock scripts %} {% endblock scripts %}
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -41,7 +41,10 @@ ...@@ -41,7 +41,10 @@
</div> </div>
</div> </div>
<h3 class="mt-5" style="text-align:center">Data sent</h3> <h3 class="mt-5" style="text-align:center">Data sent</h3>
<div class="w-75 mx-auto mt-2"> <button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#keys" aria-expanded="false" aria-controls="keys">
Show keys
</button>
<div class="w-75 mx-auto mt-2 collapse" id="keys">
<table class="table" id="data"> <table class="table" id="data">
<thead> <thead>
<tr> <tr>
...@@ -65,8 +68,12 @@ ...@@ -65,8 +68,12 @@
{% block scripts %} {% block scripts %}
<script src="/static/jquery/jquery-3.7.0.min.js"></script> <script src="/static/jquery/jquery-3.7.0.min.js"></script>
<script src="/static/datatables/datatables.min.js"></script> <script src="/static/datatables/datatables.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script> <script>
new DataTable('#ports'); new DataTable('#ports');
new DataTable('#data'); new DataTable('#data');
</script> </script>
{% endblock scripts %} {% endblock scripts %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment