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="matrix" inherit_id="survey.matrix"> <xpath expr="//table" position="replace"> <table class="table table-hover"> <thead> <tr> <th></th> <th t-foreach="question.labels_ids" t-as="col_label"><span t-field="col_label.value"/></th> </tr> </thead> <tbody> <tr t-foreach="question.labels_ids_2" t-as="row_label"> <th><span t-field="row_label.value"/></th> <td t-foreach="question.labels_ids" t-as="col_label"> <input t-if="question.matrix_subtype == 'simple'" type="radio" t-att-name="'%s_%s' % (prefix, row_label.id)" t-att-value='col_label.id'/> <t t-if="question.matrix_subtype == 'custom_row'"> <t t-if="col_label.type == 'textbox'"> <input type="text" class="form-control" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)"/> </t> <t t-if="col_label.type == 'free_text'"> <textarea class="form-control" rows="3" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)"></textarea> </t> <t t-if="col_label.type == 'numerical_box'"> <input type="number" step="any" class="form-control" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)"/> </t> <t t-if="col_label.type == 'date'"> <div class='input-group date'> <input type="text" date="true" class="form-control date" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)"/> </div> </t> <t t-if="col_label.type == 'dropdown'"> <select t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)" class="form-control" id="seldpbox1"> <option></option> <t t-foreach="col_label.dpvalues" t-as="dpv"> <option t-att-value="dpv.id"><t t-esc="dpv.name"/></option> </t> </select> </t> <t t-if="col_label.type == 'checkbox'"> <input type="checkbox" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)" t-att-value='col_label.id'/> </t> </t> <input t-if="question.matrix_subtype == 'multiple'" type="checkbox" t-att-name="'%s_%s_%s' % (prefix, row_label.id, col_label.id)" t-att-value='col_label.id'/> </td> </tr> </tbody> </table> </xpath> </template>
</odoo>
|