Update the dashboard with an organisations widget

This commit is contained in:
2022-03-07 16:27:52 +00:00
parent 2005a17eef
commit 012b633eaf
10 changed files with 554 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/**
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
*
* Target page: /dashboard
*/
$(document).ready(function() {
// Table of organisations
var organisations = $("#widget-organisations");
if (organisations.length) {
organisations.ufTable({
dataUrl: site.uri.public + "/api/organisations",
useLoadingTransition: site.uf_table.use_loading_transition
});
}
});