diff --git a/CHANGELOG.md b/CHANGELOG.md index 34f59cb..4caea83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to wuttaweb will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## v0.13.1 (2024-08-26) + +### Fix + +- allow custom base template to add params to feedback form + ## v0.13.0 (2024-08-26) ### Feat diff --git a/pyproject.toml b/pyproject.toml index fac1e9b..25ef9bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "WuttaWeb" -version = "0.13.0" +version = "0.13.1" description = "Web App for Wutta Framework" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] diff --git a/src/wuttaweb/templates/base.mako b/src/wuttaweb/templates/base.mako index dbad2e2..55b2aa8 100644 --- a/src/wuttaweb/templates/base.mako +++ b/src/wuttaweb/templates/base.mako @@ -526,16 +526,21 @@ }) }, - sendFeedback() { - this.sendingFeedback = true - - const params = { + getParams() { + return { referrer: this.referrer, user_uuid: this.userUUID, user_name: this.userName, message: this.message.trim(), + ...this.getExtraParams(), } + }, + getExtraParams() {}, + + sendFeedback() { + this.sendingFeedback = true + const params = this.getParams() this.wuttaPOST(this.action, params, response => { this.$buefy.toast.open({