Skip to content

Instantly share code, notes, and snippets.

View lb-'s full-sized avatar

LB (Ben Johnston) lb-

View GitHub Profile
@lb-
lb- / 415db2b70bda500d69c7383f9c6c47bce43d27ef.diff
Created February 20, 2022 06:41
Diff - adding Diagram via jQuery
diff --git a/products/edit_handlers.py b/products/edit_handlers.py
new file mode 100644
index 0000000000000000000000000000000000000000..44c5faabbb435ca9962b92985115543e60924f2e
--- /dev/null
+++ b/products/edit_handlers.py
@@ -0,0 +1,29 @@
+from wagtail.images.edit_handlers import ImageChooserPanel
+from wagtail.images.widgets import AdminImageChooser
+
+
@lb-
lb- / budget_group_panel.html
Created October 4, 2022 00:34
Creating an interactive event budgeting tool within Wagtail (Tutorial)
<div
data-controller="budget"
data-action="change->budget#updateTotals focusout->budget#updateTotals"
data-budget-per-price-value="PP"
>
{% include "wagtailadmin/panels/multi_field_panel.html" %}
<output for="{{ field_ids|join:' ' }}">
<h3>Budget summary</h3>
<dl>
<dt>Total price per</dt>