Skip to content
Snippets Groups Projects
Commit 84dc52d7 authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[FIX] auth_ldap,auth_oauth,base_gengo: Hide config fields if unchecked option

In general settings
parent 39e5dcc1
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
<field name="inherit_id" ref="base_setup.base_config_settings_view_form"/>
<field name="arch" type="xml">
<div name='auth_ldap_right_pane' position="inside">
<div>
<div attrs="{'invisible': [('module_auth_ldap','=',False)]}">
<button type="action" name="%(auth_ldap.action_ldap_installer)d" string="LDAP Server" icon="fa-arrow-right" class="btn-link"/>
</div>
</div>
......
......@@ -6,14 +6,14 @@
<field name="inherit_id" ref="base_setup.base_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="msg_module_auth_oauth" position="replace">
<div class="content-group">
<div class="content-group" attrs="{'invisible': [('module_auth_oauth','=',False)]}">
<div class="mt16">
<button type="action" name="%(auth_oauth.action_oauth_provider)d" string="OAuth Providers" icon="fa-arrow-right" class="btn-link"/>
</div>
</div>
</div>
<div id="module_auth_oauth" position="after">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="col-xs-12 col-md-6 o_setting_box" attrs="{'invisible': [('module_auth_oauth','=',False)]}">
<div class="o_setting_left_pane">
<field name="auth_oauth_google_enabled"/>
</div>
......
......@@ -7,32 +7,32 @@
<field name="arch" type="xml">
<xpath expr="//div[@name='base_gengo_right_pane']" position="inside">
<div name="base_gengo_right_pane" position="replace">
<label for="id" string="Public Key"/>
<div name="gengo_public_key">
<label for="id" string="Public Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/>
<div name="gengo_public_key" attrs="{'invisible': [('module_base_gengo','=',False)]}">
<div name="gengo_public_key">
<field name="gengo_public_key" nolabel="1" placeholder="Add Gengo login Public Key..."/>
</div>
</div>
<label for="id" string="Private Key"/>
<div name="gengo_private_key">
<label for="id" string="Private Key" attrs="{'invisible': [('module_base_gengo','=',False)]}"/>
<div name="gengo_private_key" attrs="{'invisible': [('module_base_gengo','=',False)]}">
<div name="gengo_private_key">
<field name="gengo_private_key" password="True" nolabel="1" placeholder="Add Gengo login Private Key..."/>
</div>
</div>
<div name="gengo_auto_approve">
<div name="gengo_auto_approve" attrs="{'invisible': [('module_base_gengo','=',False)]}">
<div name="gengo_auto_approve">
<field name="gengo_auto_approve"/>
<label for="id" string="Auto Approve Translation"/>
</div>
</div>
<div name="gengo_sandbox">
<div name="gengo_sandbox" attrs="{'invisible': [('module_base_gengo','=',False)]}">
<div name="gengo_sandbox">
<field name="gengo_sandbox"/>
<label for="id" string="Sandbox Mode"/>
</div>
</div>
<label for="id" string="Comment"/>
<div name="gengo_comment">
<label for="id" string="Comment" attrs="{'invisible': [('module_base_gengo','=',False)]}"/>
<div name="gengo_comment" attrs="{'invisible': [('module_base_gengo','=',False)]}">
<div name="gengo_comment">
<field name="gengo_comment" nolabel="1" placeholder="Add your comments here for translator...."/>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment