Assume forms support Buefy if theme does; fix basic CRUD views

This commit is contained in:
Lance Edgar 2019-05-23 13:11:26 -05:00
parent 7b1947914e
commit b829cd260c
9 changed files with 67 additions and 73 deletions

View file

@ -1,6 +1,7 @@
## -*- coding: utf-8; -*-
<script type="text/x-template" id="buefy-form-template">
<div>
% if not form.readonly:
${h.form(form.action_url, id=dform.formid, method='post', enctype='multipart/form-data', **form_kwargs)}
${h.csrf_token(request)}
@ -54,6 +55,7 @@
% if not form.readonly:
${h.end_form()}
% endif
</div>
</script>