diff options
| author | qsm-odoo <qsm@odoo.com> | 2015-08-13 11:36:46 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2015-08-14 13:56:51 +0200 |
| commit | 532d4243a65ab8b6588c502d4b0a11e51dcf2126 (patch) | |
| tree | 3a5d0126b14243682974e0685da84e9a41fc4c0a /addons/web/static/src/xml/base.xml | |
| parent | ef2df79c66ae3e3307318635f17c171d3883a9ed (diff) | |
[IMP] web, website: Split base.xml into base.xml/base_common.xml
This allows to always have the templates in base_common.xml in the
frontend.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 132 |
1 files changed, 3 insertions, 129 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 2ad307f7a1d..a14c1fc7c6c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1,13 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <templates id="template" xml:space="preserve"> -<t t-name="EmptyComponent"> - <div></div> -</t> -<t t-name="Loading"> - <div class="oe_loading"> - Loading... - </div> -</t> + +<div t-name="EmptyComponent"/> +<div t-name="Loading" class="oe_loading">Loading...</div> <t t-name="Notification"> <div class="o_notification" t-translation="off"> <a t-if="widget.sticky" class="fa fa-times o_close" href="#"/> @@ -24,20 +19,6 @@ <span class="o_icon fa fa-3x fa-exclamation"/> </t> </t> -<t t-name="Dialog"> - <div class="modal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content openerp"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title"><t t-raw="title"/><span class="o_subtitle text-muted"><t t-esc="subtitle"/></span></h4> - </div> - <div class="modal-body"/> - <div class="modal-footer"/> - </div> - </div> - </div> -</t> <t t-name="CrashManager.warning"> <div class="o_dialog_warning"> <t t-js="d"> @@ -682,68 +663,6 @@ Unhandled widget <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t> </t> -<t t-name="WidgetLabel.tooltip"> - <div class="oe_tooltip_string" t-if="widget.string"> - <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t> - </div> - <p t-if="widget.node.attrs.help or (widget.field and widget.field.help)" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p> - <ul t-if="debug" class="oe_tooltip_technical"> - <li data-item="field" t-if="widget.name"> - <span class="oe_tooltip_technical_title">Field:</span> - <t t-esc="widget.name"/> - </li> - <li data-item="object" t-if="widget.view and widget.view.fields_view"> - <span class="oe_tooltip_technical_title">Object:</span> - <t t-esc="widget.view.fields_view.model"/> - </li> - <li data-item="type" t-if="widget.field"> - <span class="oe_tooltip_technical_title">Type:</span> - <t t-esc="widget.field.type"/> - </li> - <li t-if="widget.node.attrs.widget" data-item="widget"> - <span class="oe_tooltip_technical_title">Widget:</span> - <t t-esc="widget.node.attrs.widget"/> - </li> - <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size"> - <span class="oe_tooltip_technical_title">Size:</span> - <t t-esc="widget.node.attrs.size || widget.field.size"/> - </li> - <li t-if="widget.node.attrs.context" data-item="context"> - <span class="oe_tooltip_technical_title">Context:</span> - <t t-esc="widget.node.attrs.context"/> - </li> - <li t-if="widget.node.attrs.domain" data-item="domain"> - <span class="oe_tooltip_technical_title">Domain:</span> - <t t-esc="widget.node.attrs.domain"/> - </li> - <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers"> - <span class="oe_tooltip_technical_title">Modifiers:</span> - <t t-esc="widget.node.attrs.modifiers"/> - </li> - <li t-if="widget.field and widget.field.change_default" data-item="change_default"> - <span class="oe_tooltip_technical_title">Change default:</span> - Yes - </li> - <li t-if="widget.node.attrs.on_change" data-item="on_change"> - <span class="oe_tooltip_technical_title">On change:</span> - <t t-esc="widget.node.attrs.on_change"/> - </li> - <li t-if="widget.field and widget.field.relation" data-item="relation"> - <span class="oe_tooltip_technical_title">Relation:</span> - <t t-esc="widget.field.relation"/> - </li> - <li t-if="widget.field and widget.field.selection" data-item="selection"> - <span class="oe_tooltip_technical_title">Selection:</span> - <ul class="oe_tooltip_technical"> - <li t-foreach="widget.field.selection" t-as="option"> - [<t t-esc="option[0]"/>] - <t t-if="option[1]"> - </t> - <t t-esc="option[1]"/> - </li> - </ul> - </li> - </ul> -</t> <t t-name="FieldChar"> <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style"> <t t-if="!widget.get('effective_readonly')"> @@ -1133,51 +1052,6 @@ </div> </div> </t> -<t t-name="WidgetButton"> - <button type="button" t-attf-class="btn btn-sm oe_button #{widget.node.attrs.class or ''}" - t-att-style="widget.node.attrs.style" - t-att-tabindex="widget.node.attrs.tabindex" - t-att-autofocus="widget.node.attrs.autofocus" - t-att-accesskey="widget.node.attrs.accesskey"> - <t t-if="widget.node.attrs.icon"> - <img t-if="!widget.fa_icon" t-att-src="widget.node.attrs.icon"/> - <div t-if="widget.fa_icon" t-attf-class="fa fa-fw #{widget.node.attrs.icon} o_button_icon"/> - </t> - <span t-if="widget.string"><t t-esc="widget.string"/></span> - </button> -</t> -<t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip"> - <t t-jquery="div.oe_tooltip_string" t-operation="replace"> - <div class="oe_tooltip_string" t-if="debug || widget.string"> - <t t-if="debug"> - Button - <t t-if="widget.string">: </t> - <t t-if="!widget.string"> (no string)</t> - </t> - <t t-esc="widget.string"/> - </div> - </t> - <t t-jquery="ul.oe_tooltip_technical" t-operation="append"> - <li t-if="widget.node.attrs.special" data-item="special"> - <span class="oe_tooltip_technical_title">Special:</span> - <t t-esc="widget.node.attrs.special"/> - </li> - <t t-set="button_type" t-value="widget.node.attrs.type"/> - <li t-if="button_type" data-item="button_type"> - <span class="oe_tooltip_technical_title">Button Type:</span> - <t t-esc="button_type"/> - </li> - <li t-if="button_type === 'object'" data-item="button_method"> - <span class="oe_tooltip_technical_title">Method:</span> - <t t-esc="widget.node.attrs.name"/> - </li> - <li t-if="button_type === 'action'" data-item="button_action"> - <span class="oe_tooltip_technical_title">Action ID:</span> - <t t-esc="widget.node.attrs.name"/> - </li> - </t> -</t> - <t t-name="One2Many.formview" t-extend="FormView"> <t t-jquery=".oe_form_buttons" t-operation="inner"> |
