[FIX] survey: improve printing
Don't use select element when printing a non-filled survey, and small appearances improvements. opw-645011
This commit is contained in:
parent
eb427f64d6
commit
6e090f5d5b
|
@ -0,0 +1,17 @@
|
|||
@media print {
|
||||
.js_surveyform {
|
||||
font-size: 13px;
|
||||
}
|
||||
.js_surveyform textarea.form-control {
|
||||
height: 10em;
|
||||
}
|
||||
.js_surveyform h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
.js_surveyform h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
.js_question-wrapper {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
}
|
|
@ -172,7 +172,7 @@
|
|||
</template>
|
||||
|
||||
<template id="simple_choice" name="Simple choice">
|
||||
<div t-if="question.display_mode == 'dropdown'" class="js_drop row">
|
||||
<div t-if="question.display_mode == 'dropdown' and token" class="js_drop row">
|
||||
<div class="col-md-12">
|
||||
<select class="form-control" t-att-name="prefix">
|
||||
<option disabled="1" selected="1" value="">Choose...</option>
|
||||
|
@ -192,7 +192,7 @@
|
|||
<input type="text" class="form-control" t-att-name="'%s_%s' % (prefix, 'comment')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div t-if="question.display_mode == 'columns' " class="row js_radio">
|
||||
<div t-if="question.display_mode == 'columns' or not token" class="row js_radio">
|
||||
<div t-foreach='question.labels_ids' t-as='label' t-attf-class="col-md-#{question.column_nb}">
|
||||
<label t-att-class="' bg-success ' if quizz_correction and label.quizz_mark > 0.0 else ''">
|
||||
<input type="radio" t-att-name="prefix" t-att-value='label.id' />
|
||||
|
@ -259,6 +259,12 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<template id="assets_frontend_survey" inherit_id="website.assets_frontend" name="Printing Survey assets">
|
||||
<xpath expr="." position="inside">
|
||||
<link href="/survey/static/src/css/survey_print.css" rel="stylesheet" type="text/css"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Printable view of a survey (all pages) -->
|
||||
<template id="survey_print" name="Survey">
|
||||
<t t-call="website.layout">
|
||||
|
|
Loading…
Reference in New Issue