Improve "employees" list when viewing a department, for buefy themes
This commit is contained in:
parent
3b6b1aa5b6
commit
ec5ff8a788
2 changed files with 72 additions and 12 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
<%def name="page_content()">
|
||||
${parent.page_content()}
|
||||
|
||||
% if not use_buefy:
|
||||
<h2>Employees</h2>
|
||||
|
||||
% if employees:
|
||||
|
@ -12,7 +12,16 @@
|
|||
% else:
|
||||
<p>No employees are assigned to this department.</p>
|
||||
% endif
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
<%def name="modify_this_page_vars()">
|
||||
${parent.modify_this_page_vars()}
|
||||
<script type="text/javascript">
|
||||
|
||||
${form.component_studly}Data.employeesData = ${json.dumps(employees_data)|n}
|
||||
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue