Update the dashboard with an organisations widget
This commit is contained in:
1 parent
2005a17eef
commit
012b633eaf
10 files changed
+554
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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