Update the dashboard with an organisations widget
This commit is contained in:
@@ -6,4 +6,16 @@
|
||||
}
|
||||
.membership-pending {
|
||||
color: #ffd24a !important;
|
||||
}
|
||||
|
||||
.widget-organisations .widget-user-username, .widget-organisations .widget-user-desc {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.widget-organisations .widget-user-desc {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
displaY: inline-block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
17
assets/organisations/js/pages/dashboard.js
Normal file
17
assets/organisations/js/pages/dashboard.js
Normal 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
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user