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

index da6a997..3301574 100644 (file)
@@ -11,3 +11,11 @@ li.bullet{
     list-style-type: disc !important;
     margin-left: 30px !important;
 }
+
+.question_frame{
+    padding: 0px 5px 10px 10px !important;
+    border-radius: 5px;
+    border: 1px solid #A4A4A4;
+    margin: 10px !important;
+    background: #FAFAFA;
+}
\ No newline at end of file
index ae41c49..b8e169b 100644 (file)
@@ -27,7 +27,7 @@
                         <field name="questions" invisible="1" />
                         <field name="question_items" invisible="1" />
                         <t t-name="kanban-box">
-                            <div class="oe_kanban_card oe_semantic_html_override oe_resource_details oe_kanban_global_click_edit faq_question_panel">
+                            <div class="oe_kanban_card oe_semantic_html_override oe_resource_details faq_question_panel">
                                 <div class="oe_dropdown_kanban">
 
                                     <div class="oe_dropdown_toggle">
@@ -46,8 +46,8 @@
 
                                     <h2>Questions :</h2>
 
-                                    <ul t-if="record.question_items.value">
-                                        <li t-foreach="record.question_items.value" t-as="question" t-att-class="question_parity">
+                                    <ul t-if="record.question_items.value" t-att-class="question_parity">
+                                        <li t-foreach="record.question_items.value" t-as="question" class="question_frame">
                                             <t t-call="question_template.sub">
                                                 <t t-set="title" t-value="question.name"/>
                                                 <t t-set="id" t-value="question.id"/>
                             </div>
                         </t>
                         <t t-name="question_template.sub">
-                            <p><t t-esc="title"/> (ID : <t t-esc="id"/>)</p>
-                            <ul t-if="answers">
+                            <a t-att-href="'#id='+id+'&amp;view_type=form&amp;model=faq.question'" >
+                                <t t-esc="title"/>
+                            </a>
+                            <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"/>