Skip to content

Commit a41045a

Browse files
committed
[FIX] tutorials,howtos: change all instances of kanban-box to kanban-card
closes #15053 X-original-commit: 56a1777 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 86d0410 commit a41045a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/developer/howtos/javascript_view.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ can be done in a few steps:
5757
5858
<kanban js_class="custom_kanban">
5959
<templates>
60-
<t t-name="kanban-box">
60+
<t t-name="kanban-card">
6161
<!--Your comment-->
6262
</t>
6363
</templates>

content/developer/tutorials/server_framework_101/14_qwebintro.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ looks like:
4444
4545
<kanban>
4646
<templates>
47-
<t t-name="kanban-box">
47+
<t t-name="kanban-card">
4848
<div>
4949
<field name="name"/>
5050
</div>
@@ -55,9 +55,9 @@ looks like:
5555
Let's break down this example:
5656

5757
- ``<templates>``: defines a list of :ref:`reference/qweb` templates. Kanban views *must* define at
58-
least one root template ``kanban-box``, which will be rendered once for each record.
59-
- ``<t t-name="kanban-box">``: ``<t>`` is a placeholder element for QWeb directives. In this case,
60-
it is used to set the ``name`` of the template to ``kanban-box``
58+
least one root template ``kanban-card``, which will be rendered once for each record.
59+
- ``<t t-name="kanban-card">``: ``<t>`` is a placeholder element for QWeb directives. In this case,
60+
it is used to set the ``name`` of the template to ``kanban-card``
6161
- ``<field name="name"/>``: this will add the ``name`` field to the view.
6262

6363
.. exercise:: Make a minimal kanban view.
@@ -76,7 +76,7 @@ conditionally, we can use the ``t-if`` directive (see :ref:`reference/qweb/condi
7676
<kanban>
7777
<field name="state"/>
7878
<templates>
79-
<t t-name="kanban-box">
79+
<t t-name="kanban-card">
8080
<div>
8181
<field name="name"/>
8282
<div t-if="record.state.raw_value == 'new'">

0 commit comments

Comments
 (0)