diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-02-08 13:21:53 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-02-08 13:21:53 +0100 |
| commit | fe31030bd2300670f179061e25a2b02be5848e60 (patch) | |
| tree | ee9838c1f85e2ce155a7bd774b72955e6d9cb3e7 /addons/web/static/src/xml | |
| parent | 320b2d2e2e404b704cba46dce3895f949c9ff610 (diff) | |
[ADD] UI for set_default in form view sidebar
bzr revid: xmo@openerp.com-20120208122153-k11n7u47n1bo63sv
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 66 |
1 files changed, 61 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 6b068679310..fd1fda36753 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -529,11 +529,11 @@ </div> </t> <t t-name="Sidebar.section.items"> - <li t-foreach="items" t-as="item" t-att-class="item.classname"> - <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#"> - <t t-esc="item.label"/> - </a> - </li> + <li t-foreach="items" t-as="item" t-att-class="item.classname"> + <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#"> + <t t-esc="item.label"/> + </a> + </li> </t> <t t-name="TranslateDialog"> @@ -791,6 +791,62 @@ </li> </ul> </t> +<form t-name="FormView.set_default" class="oe_forms oe_frame"> + <t t-set="args" t-value="widget.dialog_options.args"/> + <table style="width: 100%"> + <tr> + <td> + <label for="formview_default_fields" + class="oe_label oe_align_right"> + Default: + </label> + </td> + <td class="required"> + <select id="formview_default_fields"> + <option value=""/> + <option t-foreach="args.fields" t-as="field" + t-att-value="field.name"> + <t t-esc="field.string"/> = <t t-esc="field.value"/> + </option> + </select> + </td> + </tr> + <tr t-if="args.conditions.length"> + <td> + <label for="formview_default_conditions" + class="oe_label oe_align_right"> + Condition: + </label> + </td> + <td> + <select id="formview_default_conditions"> + <option value=""/> + <option t-foreach="args.conditions" t-as="cond" + t-att-value="cond.name + '=' + cond.value"> + <t t-esc="cond.string"/>=<t t-esc="cond.value"/> + </option> + </select> + </td> + </tr> + <tr> + <td colspan="2"> + <input type="radio" id="formview_default_self" + value="self" name="scope" checked="checked"/> + <label for="formview_default_self" class="oe_label" + style="display: inline;"> + Only you + </label> + <br/> + <input type="radio" id="formview_default_all" + value="all" name="scope"/> + <label for="formview_default_all" class="oe_label" + style="display: inline;"> + All users + </label> + </td> + </tr> + </table> +</form> <t t-name="Widget"> Unhandled widget <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t> |
