Add setting etc. for user feedback to request reply email

This commit is contained in:
Lance Edgar 2022-08-17 21:07:28 -05:00
parent 7fc606903f
commit f0ce975bc2
4 changed files with 22 additions and 0 deletions

View file

@ -430,5 +430,6 @@ class user_feedback(Email):
'user_name': "Fred Flintstone",
'referrer': request.route_url('home'),
'client_ip': '127.0.0.1',
'please_reply_to': 'fred@mailinator.com',
'message': "Hey there,\n\njust wondered what the heck was going on with this site? It's crap.\n\nFred",
}

View file

@ -88,6 +88,16 @@ class tailbone_buefy_version(Setting):
name = 'buefy_version'
class tailbone_feedback_allows_reply(Setting):
"""
When user leaves Feedback, should we show them the "Please email
me back" option?
"""
namespace = 'tailbone'
name = 'feedback_allows_reply'
data_type = bool
class tailbone_grid_default_pagesize(Setting):
"""
Default page size for grids.

View file

@ -33,6 +33,11 @@
<label>Client IP</label>
<p>${client_ip}</p>
% if please_reply_to:
<label>PLEASE REPLY TO</label>
<p><a href="mailto:${please_reply_to}">${please_reply_to}</a></p>
% endif
<label>Message</label>
<p class="msg">${message}</p>

View file

@ -17,6 +17,12 @@ ${referrer}
**Client IP**
${client_ip}
% if please_reply_to:
**PLEASE REPLY TO**
${please_reply_to}
% endif
**Message**