Vue KANBAN thème : ajout d'une liste à puces pour les réponses
authorAlicia FLOREZ <alicflorez@gmail.com>
Wed, 22 May 2013 12:14:04 +0000 (14:14 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Wed, 22 May 2013 12:14:04 +0000 (14:14 +0200)
static/css/faq.css
views/faq_view.xml

index ea873a5..da6a997 100644 (file)
@@ -5,4 +5,9 @@
     width: 99%;
 }
 
-.oe_kanban_content{}
\ No newline at end of file
+.oe_kanban_content{}
+
+li.bullet{
+    list-style-type: disc !important;
+    margin-left: 30px !important;
+}
index 0bae2bc..b3871a9 100644 (file)
 
                                 </div>
                             </div>
-                        </t><!--
+                        </t>
                         <t t-name="question_template.sub">
                             <p><t t-esc="title"/> (ID : <t t-esc="id"/>)</p>
-                            <ul t-if="answers">
-                                <li t-foreach="answers" t-as="answer" t-att-class="answer_parity">
-                                    <t t-call="answer2_template.sub">
+                            <ul t-if="answers" >
+                                <li t-foreach="answers" t-as="answer" class="bullet">
+                                    <t t-call="answer_template.sub">
                                         <t t-set="title" t-value="answer.name"/>
                                         <t t-set="id" t-value="answer.id"/>
                                     </t>
                                 </li>
                             </ul>
-                            <p t-if="answers == ''">Pas de réponse pour cette question.</p>
+                            <ul t-if="answers == ''"><li>Pas de réponse pour cette question.</li></ul>
                         </t>
-                        <t t-name="answer2_template.sub">
-                            <t t-esc="title"/> (ID : <t t-esc="id"/>)
-                        </t>-->
+                        <t t-name="answer_template.sub">
+                            <t t-esc="title"/>
+                        </t>
+
+
+                        <!-- Exemple sans le template
                         <t t-name="question_template.sub">
                             <h4><t t-esc="title"/> (ID : <t t-esc="id"/>)</h4>
 
@@ -86,7 +89,7 @@
                             </ul>
 
                             <ul t-if="answers == ''"><li>Pas de réponse pour cette question.</li></ul>
-                        </t>
+                        </t>-->
                     </templates>
                 </kanban>
             </field>