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,
let info = get_sysinfo(&db_conn, id).await?;
let ports = get_ports(&db_conn, info.id).await?;
Ok(Template::render("client", context! {client, keys, info, ports, id}))
}
#[post("/info", data="<sysinfo>")]
......
......@@ -10,7 +10,7 @@
<body>
{% block content %}{% endblock content %}
{% 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 %}
</body>
</html>
\ No newline at end of file
......@@ -41,7 +41,10 @@
</div>
</div>
<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">
<thead>
<tr>
......@@ -65,8 +68,12 @@
{% block scripts %}
<script src="/static/jquery/jquery-3.7.0.min.js"></script>
<script src="/static/datatables/datatables.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script>
new DataTable('#ports');
new DataTable('#data');
</script>
{% 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 to comment