[IMP] mail_client_extension: login template adjustments

More precisely the template which asks for the permission to generate
a key. The message was changed, and the possibility of adding a
description for the key was removed. The link to manage databases
was removed.

closes odoo/odoo#57951

X-original-commit: a7acf158cca892624df5beda21438c5fcb2973b3
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
Florimond Husquinet (fhu)
2020-09-17 13:19:59 +00:00
parent c5f46533dd
commit 7a74ccf13d
@@ -2,26 +2,19 @@
<odoo>
<template id="mail_client_extension.app_auth" name="Accept app">
<t t-call="web.login_layout">
<t t-set="disable_database_manager" t-value="1"/>
<form class="oe_login_form" role="form" method="post" action="/mail_client_extension/auth/confirm">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
<input type="hidden" name="redirect" t-att-value="redirect"/>
<input type="hidden" name="scope" t-att-value="scope"/>
<input type="hidden" name="friendlyname" t-att-value="friendlyname"/>
<p>
<t t-esc="friendlyname" /> wants to access Odoo.
<p class="text-center">
Let <t t-esc="friendlyname" /> access your Odoo database?
</p>
<p class="text-justify">If you allow it, an access-key will be created in your profile. You can manage your keys in your Preferences. You can give more information related to this key here, to recognize it easier later.</p>
<div class="form-group">
<label for="info">Additional information</label>
<input type="text" name="info" t-att-value="info" class="form-control" maxlength="100"/>
</div>
<div class="text-center">
<p class="text-center">
<button type="submit" name="do" value="1" class="btn btn-link btn-sm">Allow</button>
<button type="submit" name="do" class="btn btn-link btn-sm">Deny</button>
</div>
</p>
</form>
</t>
</template>