Fix batch row status breakdown for Buefy themes
also, fix the "import batch from file" feature UI, per Buefy theme
This commit is contained in:
parent
2100f0461d
commit
2605f5ab79
5 changed files with 33 additions and 5 deletions
|
@ -108,7 +108,9 @@
|
|||
<div class="object-helper">
|
||||
<h3>Row Status Breakdown</h3>
|
||||
<div class="object-helper-content">
|
||||
% if status_breakdown:
|
||||
% if use_buefy:
|
||||
${status_breakdown_grid.render_buefy_table_element(data_prop='statusBreakdownData', empty_labels=True)|n}
|
||||
% elif status_breakdown:
|
||||
<div class="grid full">
|
||||
<table>
|
||||
% for i, (status, count) in enumerate(status_breakdown):
|
||||
|
@ -197,6 +199,12 @@
|
|||
|
||||
<%def name="modify_this_page_vars()">
|
||||
${parent.modify_this_page_vars()}
|
||||
<script type="text/javascript">
|
||||
|
||||
ThisPageData.statusBreakdownData = ${json.dumps(status_breakdown_grid.get_buefy_data()['data'])|n}
|
||||
|
||||
</script>
|
||||
|
||||
% if not batch.executed and request.has_perm('{}.execute'.format(permission_prefix)):
|
||||
<script type="text/javascript">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue