diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-07-25 09:40:53 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-07-25 09:40:53 +0200 |
| commit | 1d766a2bc6109b8801a3939880bdad45542ecd37 (patch) | |
| tree | 35b13cfce6690bdec8ccdd934b788001cf89e80a /addons/web/static/src/xml/base.xml | |
| parent | fceb94cb8ac1af2fdb6f88e6b86632552075baf1 (diff) | |
| parent | 930dd711ed9369e5a918d2df45878e5421001057 (diff) | |
[MERGE] trunk
bzr revid: al@openerp.com-20120725074053-e3gltrdfzm8bb7j8
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 58 |
1 files changed, 39 insertions, 19 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index da19e6da0a3..5d55a0ece15 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -370,6 +370,7 @@ </t> <t t-name="WebClient"> + <div class="openerp openerp_webclient_container"> <table class="oe_webclient"> <tr> <td colspan="2" class="oe_topbar"> @@ -393,6 +394,13 @@ </td> </tr> </table> + </div> +</t> + +<t t-name="EmbedClient"> + <div class="openerp"> + <div class="oe_application"></div> + </div> </t> <t t-name="ViewManager"> @@ -621,9 +629,9 @@ <button type="button" class="oe_button oe_list_add oe_highlight"> <t t-esc="widget.options.addable"/> </button> - <t t-if="widget.options.import_enabled"> + <span class="oe_alternative" t-if="widget.options.import_enabled"> <span class="oe_fade">or</span> <a href="#" class="oe_bold oe_list_button_import">Import</a> - </t> + </span> </t> </div> <t t-name="ListView.pager"> @@ -643,6 +651,7 @@ <tr t-name="ListView.row" t-att-class="row_parity" t-att-data-id="record.get('id')" t-att-style="view.style_for(record)"> + <t t-set="asData" t-value="record.toForm().data"/> <t t-foreach="columns" t-as="column"> <td t-if="column.meta"> @@ -654,23 +663,26 @@ <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/> </th> <t t-foreach="columns" t-as="column"> - <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/> + <t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/> + <t t-set="modifiers" t-value="column.modifiers_for(asData)"/> <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help" - t-att-class="'oe_list_field_cell' + (align ? ' oe_number' : '') - + (column.tag === 'button' ? ' oe_button' : '')" - t-att-data-field="column.id"> - <t t-raw="render_cell(record, column)"/> - </td> + t-attf-class="oe_list_field_cell oe_list_field_#{column.widget or column.type} #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''}" + t-att-data-field="column.id" + ><t t-raw="render_cell(record, column)"/></td> </t> <td t-if="options.deletable" class='oe_list_record_delete' width="1"> <button type="button" name="delete" class="oe_i">d</button> </td> </tr> -<t t-name="ListView.row.save"> - <td> - <button class='oe_i oe_list_edit_row_save' type='button' name='save'/> - </td> +<t t-extend="ListView.buttons"> + <t t-jquery="button.oe_list_add" t-operation="after"> + <button class="oe_button oe_list_save oe_highlight" + type="button">Save</button> + </t> + <t t-jquery="a.oe_list_button_import" t-operation="after"> + <a href="#" class="oe_bold oe_list_discard">discard</a> + </t> </t> <t t-name="FormView"> @@ -786,7 +798,7 @@ </div> </t> <t t-name="FormRenderingSeparator"> - <div t-attf-class="oe_horizontal_separator #{classnames}"> + <div t-attf-class="oe_horizontal_separator oe_clear #{classnames}"> <t t-esc="string"/> </div> </t> @@ -942,9 +954,12 @@ </t> <t t-name="FieldMany2One"> <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style"> - <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri"/> + <t t-if="widget.get('effective_readonly')"> + <a href="#" class="oe_form_uri"/> + <span class="oe_form_m2o_follow"/> + </t> <t t-if="!widget.get('effective_readonly')"> - <a href="#" class="oe_m2o_cm_button oe_e oe_right">/</a> + <a href="#" tabindex="-1" class="oe_m2o_cm_button oe_e oe_right">/</a> <div> <input type="text" t-att-id="widget.id_for_label" @@ -1204,6 +1219,8 @@ <div class="oe_searchview_clear"/> <div class="oe_searchview_unfold_drawer" title="Advanced Search..."/> <div class="oe_searchview_drawer"/> + <button type="button" class="oe_searchview_search" + title="Search Again">Search</button> </div> <div t-name="SearchView.InputView" @@ -1464,8 +1481,11 @@ </div> </t> <t t-name="SelectCreatePopup.search.buttons"> - <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button> - <button type="button" class="oe_button oe_selectcreatepopup-search-close">Cancel</button> + <t t-if="! widget.options.disable_multiple_selection"> + <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button> + or + </t> + <a class="oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a> </t> <t t-name="AbstractFormPopup.buttons"> <t t-if="! multi_select"> @@ -1475,7 +1495,7 @@ <button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save & New</button> <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save & Close</button> </t> - <button type="button" class="oe_button oe_abstractformpopup-form-close">Cancel</button> + or <a class="oe_button oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a> </t> <t t-extend="ListView.row"> <!-- adds back padding to row being rendered after edition, if necessary @@ -1483,7 +1503,7 @@ missing columns --> <t t-jquery="> :last" t-operation="after"> - <td t-if="edited and !options.deletable" class="oe_list_padding"/> + <td t-if="edited and !options.deletable" class="oe-listview-padding"/> </t> </t> |
