tailbone/tailbone/templates/feedback_dialog.mako
Lance Edgar 8d002f76d2 Convert user feedback mechanism to use modal dialog
instead of navigating to new page.  this is how it should have been done
to begin with...
2017-10-13 08:01:43 -07:00

40 lines
1 KiB
Mako

## -*- coding: utf-8; -*-
<%def name="feedback_dialog()">
<div id="feedback-dialog">
${h.form(url('feedback'))}
${h.csrf_token(request)}
${h.hidden('user', value=request.user.uuid if request.user else None)}
<p>
Questions, suggestions, comments, complaints, etc. <span class="red">regarding this website</span>
are welcome and may be submitted below.
</p>
<div class="field-wrapper referrer">
<label for="referrer">Referring URL</label>
<div class="field"></div>
</div>
% if request.user:
${h.hidden('user_name', value=six.text_type(request.user))}
% else:
<div class="field-wrapper">
<label for="user_name">Your Name</label>
<div class="field">
${h.text('user_name')}
</div>
</div>
% endif
<div class="field-wrapper">
<label for="referrer">Message</label>
<div class="field">
${h.textarea('message', cols=45, rows=15)}
</div>
</div>
${h.end_form()}
</div>
</%def>