Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Using Sass to resize table columns (Odoo 8 survey module)

By
Yassine TEIMI
on 11/10/15, 4:12 PM 533 views

I created a survey, with matrix type question (among others of course). The matrix columns have the same width, I want to give a column a width smaller than the others, for example, I want to make these two columns smaller (please click the link below) :

Table to resize 

Here is the qweb code generating my table : 

  <template id="matrix" name="Matrix">

<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 type="text" t-if=""/> <!-- the most important line codes--> <input type="number" t-if=""> </td> </tr> </tbody> </table> </template>

I don't know where to start, neither how to write on Sass, I know only the concept. 

Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/10/15, 4:12 PM
Seen: 533 times
Last updated: 11/10/15, 4:16 PM