source: tailbone/tailbone/templates/feedback_dialog.mako @ 291ec3a

Last change on this file since 291ec3a was 291ec3a, checked in by Lance Edgar <ledgar@…>, 17 months ago

Hide feedback dialog HTML

so user can't ever see it during page load

  • Property mode set to 100644
File size: 1.0 KB
Line 
1## -*- coding: utf-8; -*-
2
3<%def name="feedback_dialog()">
4  <div id="feedback-dialog" style="display: none;">
5    ${h.form(url('feedback'))}
6    ${h.csrf_token(request)}
7    ${h.hidden('user', value=request.user.uuid if request.user else None)}
8
9    <p>
10      Questions, suggestions, comments, complaints, etc. <span class="red">regarding this website</span>
11      are welcome and may be submitted below.
12    </p>
13
14    <div class="field-wrapper referrer">
15      <label for="referrer">Referring URL</label>
16      <div class="field"></div>
17    </div>
18
19    % if request.user:
20        ${h.hidden('user_name', value=six.text_type(request.user))}
21    % else:
22        <div class="field-wrapper">
23          <label for="user_name">Your Name</label>
24          <div class="field">
25            ${h.text('user_name')}
26          </div>
27        </div>
28    % endif
29
30    <div class="field-wrapper">
31      <label for="referrer">Message</label>
32      <div class="field">
33        ${h.textarea('message', cols=45, rows=15)}
34      </div>
35    </div>
36
37    ${h.end_form()}
38  </div>
39</%def>
Note: See TracBrowser for help on using the repository browser.