+ <!-- Result for comments -->
+ <template id="result_comments" name="Text Result">
+ <!-- a 'comments' variable must be set an must contain a list of browse records of user input lines -->
+ <table class="table table-hover table-condensed" t-att-id="'table_question_%d' % question.id">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr t-foreach="comments" t-as="user_input">
+ <td><a t-att-href="'%s/%s' % (user_input.user_input_id.print_url, user_input.user_input_id.token)"><t t-esc="user_input_index + 1"></t></a></td>
+ <td>
+ <span t-field="user_input.value_text"></span><br/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </template>
+
+