diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-04-10 12:29:51 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-04-10 12:29:51 +0200 |
| commit | e0c57cbadf325b3eb96b58306d6098c48fc3060b (patch) | |
| tree | 3c74a98da9b1e476f6baa110f02a500257d132b3 /addons/web/static/src/xml/base.xml | |
| parent | 3ecbccb0d18521a07bb27df5003d4796bebe7fb3 (diff) | |
[ADD] Added support for @layout attribute in form views. Support for <sheet/> tag
bzr revid: fme@openerp.com-20120410102951-vnzvqms09uytaydx
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5077adf6b63..2806d57ce1d 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -792,16 +792,19 @@ </table> </form> +<t t-name="FormRenderingForm.manual"> + <div class="oe_form_manual_layout"/> +</t> <t t-name="FormRenderingForm"> <div class="oe_form_sheetbg"> - <div class="oe_form_sheet oe_form_sheet_width"> - <group t-if="legacy_mode" col="4"/> + <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}"> + <group col="4"/> </div> </div> </t> <t t-name="FormRenderingGroup"> <t t-set="table"> - <table border="0" cellpadding="0" cellspacing="0" width="100%"/> + <table border="0" cellpadding="0" cellspacing="0" width="100%" t-att-class="classnames"/> </t> <t t-if="string"> <fieldset class="oe_group_box"> @@ -815,7 +818,7 @@ </t> <t t-name="FormRenderingNotebook"> <div> - <ul class="oe_form_notebook"> + <ul t-attf-class="oe_form_notebook #{classnames}"> <li t-foreach="pages" t-as="page"> <a t-attf-href="##{page.id}"> <t t-esc="page.string"/> @@ -825,19 +828,19 @@ </div> </t> <t t-name="FormRenderingNotebookPage"> - <div class="oe_form_notebook_page" t-att-id="id"> - <group t-if="legacy_mode" col="4"/> + <div t-attf-class="oe_form_notebook_page #{classnames}" t-att-id="id"> + <group t-if="layout === 'auto'" col="4"/> </div> </t> <t t-name="FormRenderingSeparator"> - <div class="oe_horizontal_separator"> + <div t-attf-class="oe_horizontal_separator #{classnames}"> <t t-esc="string"/> </div> </t> <t t-name="FormRenderingLabel"> <label t-att-for="_for" t-att-title="help" - t-attf-class="oe_form_label#{help ? '_help' : ''} oe_align_#{align}"> + t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}"> <t t-esc="string"/> <span t-if="help">?</span> : |
