summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-11-09 12:58:32 +0100
committerFabien Meghazi <fme@openerp.com>2011-11-09 12:58:32 +0100
commit200e143ef387e8e8ad104c3af80f69fefd25fcd1 (patch)
tree54cefc787e799b4c3d0afeb81c27a6edeb961f05 /addons/web/static/src/xml
parentf975258f0f88eec867827c318bb27ed5ec50e8e8 (diff)
[REM] Removed TranslateDialog tabs. Focus field correctly and scroll overflow to the focused field
bzr revid: fme@openerp.com-20111109115832-w711t2duob958j7v
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml51
1 files changed, 19 insertions, 32 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index e30e91a81d7..cffed128e33 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -482,38 +482,25 @@
</t>
<t t-name="TranslateDialog">
- <ul class="oe_translate_tabs">
- <li><a t-attf-href="##{widget.element_id}_fields">Fields</a></li>
- <li><a t-attf-href="##{widget.element_id}_view">View labels</a></li>
- <li><a t-attf-href="##{widget.element_id}_sidebar">Sidebar Relates</a></li>
- </ul>
- <div t-attf-id="#{widget.element_id}_fields">
- <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td class="oe_form_separator" width="1%" nowrap="nowrap">
- <div class="separator horizontal">Field</div>
- </td>
- <th t-foreach="widget.languages" align="left">
- <div class="separator horizontal"><t t-esc="name"/></div>
- </th>
- </tr>
- <tr t-foreach="widget.view.translatable_fields" t-as="field">
- <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
- <label class="oe_label"><t t-esc="field.string"/>:</label>
- </td>
- <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
- <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
- <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
- </td>
- </tr>
- </table>
- </div>
- <div t-attf-id="#{widget.element_id}_view">
- Translate view
- </div>
- <div t-attf-id="#{widget.element_id}_sidebar">
- Translate sidebar
- </div>
+ <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tr>
+ <td class="oe_form_separator" width="1%" nowrap="nowrap">
+ <div class="separator horizontal">Field</div>
+ </td>
+ <th t-foreach="widget.languages" align="left">
+ <div class="separator horizontal"><t t-esc="name"/></div>
+ </th>
+ </tr>
+ <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
+ <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
+ <label class="oe_label"><t t-esc="field.string"/>:</label>
+ </td>
+ <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
+ <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
+ <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
+ </td>
+ </tr>
+ </table>
</t>
<t t-name="TreeView">
<select t-if="toolbar" style="width: 30%">