Odoo modules related to surveys
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version="1.0" encoding="utf-8"?> <odoo>
<template id="survey.survey_print" name="Survey"> <t t-call="survey.layout"> <div class="wrap"> <div class="container"> <t t-call="survey.back" /> <div class="row"> <div class='jumbotron mt32' style="width:100%;"> <h1><span t-field='survey.title'/></h1> <t t-if="survey.description"><div t-field='survey.description' class="oe_no_empty"/></t> </div> <div role="form" class="js_surveyform" t-att-name="'%s' % (survey.id)" t-att-data-prefill="'/survey/prefill/%s/%s' % (slug(survey), token)" style="width: -moz-available;"> <t t-foreach="survey.page_ids" t-as="page"> <div class="page-header"> <h1 t-field='page.title' /> <t t-if="page.description"><div t-field='page.description' class="oe_no_empty"/></t> </div> <t t-foreach='page.question_ids' t-as='question'> <t t-set="prefix" t-value="'%s_%s_%s' % (survey.id, page.id, question.id)" /> <div class="js_question-wrapper" t-att-id="prefix"> <h2> <span t-field='question.question' /> <span t-if="question.constr_mandatory" class="text-danger">*</span> <span t-if="quizz_correction" class="badge" t-att-data-score-question="question.id"></span> </h2> <t t-if="question.description"><div class="text-muted oe_no_empty" t-field='question.description'/></t> <t t-if="question.type == 'free_text'"><t t-call="survey.free_text"/></t> <t t-if="question.type == 'textbox'"><t t-call="survey.textbox"/></t> <t t-if="question.type == 'numerical_box'"><t t-call="survey.numerical_box"/></t> <t t-if="question.type == 'date'"><t t-call="survey.date"/></t> <t t-if="question.type == 'simple_choice'"><t t-call="survey.simple_choice"/></t> <t t-if="question.type == 'multiple_choice'"><t t-call="survey.multiple_choice"/></t> <t t-if="question.type == 'matrix'"><t t-call="survey.matrix"/></t> <t t-if="question.type == 'upload_file'"><t t-call="survey_attachment.upload_file"/></t> <div class="js_errzone alert alert-danger" style="display:none;"></div> </div> </t> <hr/> </t> </div> </div> </div> </div> </t> </template>
</odoo>
|