[REV] header template extraction
authorXavier Morel <xmo@openerp.com>
Thu, 4 Oct 2012 07:46:10 +0000 (09:46 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 4 Oct 2012 07:46:10 +0000 (09:46 +0200)
bzr revid: xmo@openerp.com-20121004074610-o2wk9nspzgqjj4y1

addons/web/static/src/xml/base.xml
doc/images/templates/ui.Header.png [deleted file]
doc/index.rst
doc/templates.rst [deleted file]

index dfe8603..cead483 100644 (file)
@@ -2,12 +2,6 @@
 <!-- vim:fdl=1:
 -->
 <templates id="template" xml:space="preserve">
-<t t-name="ui.Header">
-    <header>
-        <t t-raw="__content__"/>
-    </header>
-</t>
-
 <t t-name="EmptyComponent">
     <div></div>
 </t>
diff --git a/doc/images/templates/ui.Header.png b/doc/images/templates/ui.Header.png
deleted file mode 100644 (file)
index c5a1e2a..0000000
Binary files a/doc/images/templates/ui.Header.png and /dev/null differ
index a6d2248..6a0d8de 100644 (file)
@@ -22,8 +22,6 @@ Contents:
     list-view
     form-notes
 
-    templates
-
     guides/client-action
 
 Indices and tables
diff --git a/doc/templates.rst b/doc/templates.rst
deleted file mode 100644 (file)
index 3f7a3a1..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-.. highlight:: xml
-
-Generic templates
-=================
-
-Generic template names should be prefixed by ``ui.`` to indicate their
-special role.
-
-Global Header: ``ui.Header``
-----------------------------
-
-Role
-++++
-
-This template is mostly dedicated to client actions taking over the
-whole content area, and full-HTML form views (especially those opening
-in the ``inline`` target).
-
-It is used to display a buttons container (and can also be used for
-status bars). The buttons should simply be placed inside the
-``ui.Header`` body.
-
-Arguments
-+++++++++
-
-The template only uses its body as argument.
-
-Example
-+++++++
-
-::
-
-    <t t-call="ui.Header">
-        <button string="Apply" type="object" name="execute" class="oe_highlight"/>
-        or
-        <button string="Cancel" type="object" name="cancel" class="oe_link"/>
-    </t>
-
-This block demonstrates a common pattern in OpenERP views and widgets:
-a highlighted button, and a discard button styled as a link to cancel
-the action:
-
-.. image:: ./images/templates/ui.Header.*
-
-In this case, both buttons are OpenERP action buttons.