Travail préparatoire sur Kanban Theme (tests)
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 16 Apr 2013 09:38:30 +0000 (11:38 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 16 Apr 2013 09:38:30 +0000 (11:38 +0200)
static/css/faq.css
views/faq_view.xml

index 1a24441..dd5990b 100644 (file)
@@ -1,3 +1,7 @@
 .faq_question_panel {
-    color: red !important;
+    color: green;
+}
+
+.oe_kanban_record {
+    width: 98%;
 }
\ No newline at end of file
index 5a3081b..eb38129 100644 (file)
             <field name="arch" type="xml">
                 <kanban>
                     <templates>
+                        <field name="name" invisible="1" />
+                        <field name="description" invisible="1" />
+                        <field name="questions" invisible="1" />
                         <t t-name="kanban-box">
-                            <div class="oe_kanban_card oe_semantic_html_override oe_resource_details oe_kanban_global_click_edit">
+                            <div class="oe_kanban_card oe_semantic_html_override oe_resource_details oe_kanban_global_click_edit faq_question_panel">
                                 <div class="oe_dropdown_kanban">
 
                                     <div class="oe_dropdown_toggle">
                                     <div class="oe_clear" />
                                 </div>
 
-                                <div t-attf-class="oe_kanban_content faq_question_panel">
-                                    <h2><field name="name" /></h2>
-                                    <field name="description" />
+                                <div t-attf-class="oe_kanban_content faq_question_content">
+                                    <h2><t t-esc="record.name.value" /></h2>
+
+                                    <h4>Description</h4>
+                                    <t t-esc="record.description.value" />
+
+                                    <h4>Questions</h4>
+                                    <t t-foreach="record.questions.raw_value" t-as="question">
+                                        <p><t t-esc="question" /></p>
+                                    </t>
+
+                                    <p>Domain: <t t-esc="record.questions.domain" /></p>
+                                    <p>String: <t t-esc="record.questions.string" /></p>
+                                    <p>Views: <t t-esc="record.questions.views" /></p>
+                                    <p>Relation: <t t-esc="record.questions.relation" /></p>
+                                    <p>Context: <t t-esc="record.questions.context" /></p>
+                                    <p>Relation_field: <t t-esc="record.questions.relation_field" /></p>
+                                    <p>Selectable: <t t-esc="record.questions.selectable" /></p>
+                                    <p>Type: <t t-esc="record.questions.type" /></p>
+                                    <p>Value: <t t-esc="record.questions.value" /></p>
+                                    <p>Raw_value: <t t-esc="record.questions.raw_value" /></p>
+
                                 </div>
 
                             </div>