diff --git a/tailbone/api/users.py b/tailbone/api/users.py index f237c885..0f5a22d0 100644 --- a/tailbone/api/users.py +++ b/tailbone/api/users.py @@ -44,6 +44,7 @@ class UserView(APIMasterView): return { 'username': user.username, 'person': six.text_type(user.person or ''), + 'active': user.active, } @view(permission='users.list') diff --git a/tailbone/templates/users/vue_index.mako b/tailbone/templates/users/vue_index.mako index 8558a7ce..6f4d7c7c 100644 --- a/tailbone/templates/users/vue_index.mako +++ b/tailbone/templates/users/vue_index.mako @@ -1,6 +1,13 @@ ## -*- coding: utf-8; -*- <%inherit file="/users/index.mako" /> +## <%def name="head_tags()"> +## ${parent.head_tags()} +## ## TODO: this is needed according to Bulma docs? +## ## https://bulma.io/documentation/overview/start/#code-requirements +## +## + <%def name="extra_javascript()"> ${parent.extra_javascript()} @@ -12,22 +19,31 @@ ${h.javascript_link('https://cdn.jsdelivr.net/npm/vue-tables-2@1.4.70/dist/vue-tables-2.min.js')} + ## ${h.javascript_link(request.static_url('tailbone:static/js/lib/vue-tables.js'))} ${h.stylesheet_link('https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css')} -## + + + + + ## TODO: just, ugh. -


+
## TODO: need to make endpoint a bit more configurable somehow - + + ## // TODO: why on earth doesn't it render bool as string by default? + {{ props.row.active }} +