Tweak batch view template "object helpers" for easier customization

This commit is contained in:
Lance Edgar 2019-01-09 12:35:26 -06:00
parent 5bdacc70e5
commit 98fc4608da

View file

@ -75,14 +75,11 @@
% endif
</%def>
<div style="display: flex; justify-content: space-between;">
<div class="form-wrapper">
${form.render(form_id='batch-form', buttons=capture(buttons))|n}
</div><!-- form-wrapper -->
<div style="display: flex; align-items: flex-start;">
<%def name="object_helpers()">
${self.render_status_breakdown()}
</%def>
<%def name="render_status_breakdown()">
% if status_breakdown is not Undefined and status_breakdown is not None:
<div class="object-helper">
<h3>Row Status Breakdown</h3>
@ -104,6 +101,19 @@
</div>
</div>
% endif
</%def>
<div style="display: flex; justify-content: space-between;">
<div class="form-wrapper">
${form.render(form_id='batch-form', buttons=capture(buttons))|n}
</div><!-- form-wrapper -->
<div style="display: flex; align-items: flex-start;">
<div class="object-helpers">
${self.object_helpers()}
</div>
<ul id="context-menu">
${self.context_menu_items()}