Refactory Buefy templates to use WholePage and ThisPage components
plus add `GridFilter.set_choices()` method
This commit is contained in:
parent
c64fca852c
commit
1bb0330ab5
36 changed files with 806 additions and 613 deletions
|
@ -1,13 +1,18 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/view.mako" />
|
||||
|
||||
<%def name="page_content()">
|
||||
${parent.page_content()}
|
||||
|
||||
<h2>Employees</h2>
|
||||
|
||||
% if employees:
|
||||
<p>The following employees are assigned to this department:</p>
|
||||
${employees.render_grid()|n}
|
||||
% else:
|
||||
<p>No employees are assigned to this department.</p>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
||||
|
||||
<h2>Employees</h2>
|
||||
|
||||
% if employees:
|
||||
<p>The following employees are assigned to this department:</p>
|
||||
${employees.render_grid()|n}
|
||||
% else:
|
||||
<p>No employees are assigned to this department.</p>
|
||||
% endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue