flectra/addons/auth_oauth/views/res_config_settings_views.xml

38 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.auth.oauth</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="msg_module_auth_oauth" position="replace">
<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" attrs="{'invisible': [('module_auth_oauth','=',False)]}">
<div class="o_setting_left_pane">
<field name="auth_oauth_google_enabled"/>
</div>
<div class="o_setting_right_pane">
<label string="Google Authentication" for="auth_oauth_google_enabled"/>
<div class="text-muted">
Allow users to sign in with their Google account
</div>
<div class="content-group" attrs="{'invisible': [('auth_oauth_google_enabled','=',False)]}">
<div class="row mt16">
<label for="auth_oauth_google_client_id" string="Client ID:" class="col-md-3 o_light_label"/>
<field name="auth_oauth_google_client_id" placeholder="e.g. 1234-xyz.apps.googleusercontent.com"/>
</div>
2018-01-16 11:34:37 +01:00
<a href="https://www.flectra.com/documentation/user/online/general/auth/google.html" target="_blank" class="oe_link"><i class="fa fa-fw fa-arrow-right"/>Tutorial</a>
</div>
</div>
</div>
</div>
</field>
</record>
2018-01-16 11:34:37 +01:00
</flectra>