Ajout de lien hypertext sur les réponses dans la vue KANBAN des questions
authorAlicia FLOREZ <alicflorez@gmail.com>
Wed, 22 May 2013 14:57:05 +0000 (16:57 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Wed, 22 May 2013 14:57:05 +0000 (16:57 +0200)
static/css/faq.css
views/faq_view.xml

index 3301574..74eac36 100644 (file)
@@ -2,7 +2,6 @@
 }
 
 .oe_kanban_record {
-    width: 99%;
 }
 
 .oe_kanban_content{}
index a0bdee2..eed8498 100644 (file)
             <field name="arch" type="xml">
                 <form string="Question Form" version="7.0">
                     <field name="name" />
+                    <field name="theme_id" />
                     <field name="description" />
                     <field name="answers" />
                 </form>
                 <kanban>
                     <templates>
                         <t t-name="kanban-box">
-                            <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit faq_question_panel">
+                            <div class="oe_kanban_card oe_semantic_html_override faq_question_panel">
                                 <div class="oe_dropdown_kanban">
 
                                     <div class="oe_dropdown_toggle">
                                 </div>
 
                                 <div t-attf-class="oe_kanban_content">
-                                    <h2><field name="name" /> (Thème : <field name="theme_id" />)</h2>
+                                    <h2><a t-att-href="'#id='+id+'&amp;view_type=form&amp;model=faq.question'" ><field name="name" /> (Thème : <field name="theme_id" />)</a></h2>
                                     <h3><field name="description" /></h3>
 
                                     <h4>Réponses :</h4>
                             </div>
                         </t>
                         <t t-name="answer_template.sub">
-                            <t t-esc="title"/> (ID : <t t-esc="id"/>)
+                            <a t-att-href="'#id='+id+'&amp;view_type=form&amp;model=faq.answer'" >
+                                <t t-esc="title"/>
+                            </a>
                         </t>
                     </templates>
                 </kanban>