diff --git a/tailbone/static/js/tailbone.buefy.form.js b/tailbone/static/js/tailbone.buefy.form.js new file mode 100644 index 00000000..e6aa7fa8 --- /dev/null +++ b/tailbone/static/js/tailbone.buefy.form.js @@ -0,0 +1,7 @@ + +let TailboneForm = { + template: '#tailbone-form-template', + methods: {} +} + +let TailboneFormData = {} diff --git a/tailbone/templates/form.mako b/tailbone/templates/form.mako index 290c989a..52a5e297 100644 --- a/tailbone/templates/form.mako +++ b/tailbone/templates/form.mako @@ -31,17 +31,20 @@ -<%def name="make_buefy_form_app()"> +<%def name="modify_tailbone_form()"> + ## NOTE: if you override this, must use @@ -51,5 +54,5 @@ ${self.render_form_complete()} % if form.use_buefy: - ${self.make_buefy_form_app()} + ${self.make_tailbone_form_app()} % endif diff --git a/tailbone/templates/forms/deform_buefy.mako b/tailbone/templates/forms/deform_buefy.mako index 56be0a31..69767de9 100644 --- a/tailbone/templates/forms/deform_buefy.mako +++ b/tailbone/templates/forms/deform_buefy.mako @@ -1,6 +1,6 @@ ## -*- coding: utf-8; -*- - -
- +
+
diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako index a47a121d..38af7862 100644 --- a/tailbone/templates/master/view.mako +++ b/tailbone/templates/master/view.mako @@ -84,5 +84,5 @@ ${self.render_form_complete()} % endif % if form.use_buefy: - ${self.make_buefy_form_app()} + ${self.make_tailbone_form_app()} % endif diff --git a/tailbone/templates/themes/falafel/base.mako b/tailbone/templates/themes/falafel/base.mako index cf92c242..0cac1e11 100644 --- a/tailbone/templates/themes/falafel/base.mako +++ b/tailbone/templates/themes/falafel/base.mako @@ -291,6 +291,7 @@ ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.datepicker.js') + '?ver={}'.format(tailbone.__version__))} ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.oncebutton.js') + '?ver={}'.format(tailbone.__version__))} ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.timepicker.js') + '?ver={}'.format(tailbone.__version__))} + ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.form.js') + '?ver={}'.format(tailbone.__version__))}