Add setting etc. for user feedback to request reply email
This commit is contained in:
parent
7fc606903f
commit
f0ce975bc2
|
@ -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",
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -17,6 +17,12 @@ ${referrer}
|
|||
**Client IP**
|
||||
|
||||
${client_ip}
|
||||
% if please_reply_to:
|
||||
|
||||
**PLEASE REPLY TO**
|
||||
|
||||
${please_reply_to}
|
||||
% endif
|
||||
|
||||
**Message**
|
||||
|
||||
|
|
Loading…
Reference in a new issue