N°3169 - Add feature to connect Gsuite mail box with OAuth

N°2504 - Add feature to connect Office mail box with OAuth2 for Microsoft Graph
N°5102 - Allow to send emails (eg. notifications) using GSuite SMTP and OAuth
 * migration to iTop 3.0
This commit is contained in:
Eric Espie
2022-06-07 09:02:53 +02:00
parent a0c78a94c6
commit c94c727058
3 changed files with 38 additions and 35 deletions

View File

@@ -1,13 +1,11 @@
{# @copyright Copyright (C) 2010-2022 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
<div class="ibo-oauth-wizard">
<h1>{{ 'UI:OAuth:Wizard:Page:Title'|dict_s }}</h1>
{% UIContentBlock Standard {AddCSSClasses:["ibo-oauth-wizard"]} %}
<div class="ibo-oauth-wizard">
<div class="ibo-oauth-wizard--form--container">
<div id="select_layout">
{% UIPanel Neutral {sTitle:'UI:OAuth:Wizard:Form:Panel:Title'|dict_s, AddCSSClasses:['ibo-oauth-wizard']} %}
{% UIContentBlock Standard {AddCSSClasses:["ibo-oauth-wizard--form--container"]} %}
{% UIContentBlock Standard {sId:'select_layout'} %}
{% set sIsChecked = 'checked' %}
{% for aSelect in aProviders %}
<input type="radio" name="provider" {{ sIsChecked }} value="{{ aSelect.name }}" id="layout_{{ aSelect.name }}" data-color1="{{ aSelect.colors.0 }}" data-color2="{{ aSelect.colors.1 }}" data-color3="{{ aSelect.colors.2 }}" data-color4="{{ aSelect.colors.3 }}">
@@ -17,37 +15,25 @@
{% set sIsChecked = '' %}
{% endfor %}
</div>
</div>
{% EndUIContentBlock %}
{% EndUIContentBlock %}
{% set aCSSClasses = ['ibo-oauth-wizard--form'] %}
{% for aSelect in aProviders %}
{% set aCSSClasses = aCSSClasses|merge(['ibo-oauth-wizard--form-' ~ aSelect.name]) %}
{% endfor %}
{% UIForm Standard {AddCSSClasses:aCSSClasses} %}
{% UIInput ForHidden {sName:'url', sValue:''} %}
{% for sName, aInput in aInputs %}
{% UIInput ForInputWithLabel {sLabel:aInput.label, sInputName:sName, sInputValue:aInput.value, sInputId:"wizard_input_"~sName, sInputType:aInput.type} %}
{% endfor %}
{% UIButton ForPrimaryAction {sLabel:'UI:OAuth:Wizard:Form:Button:Submit:Label'|dict_s, sName:'value', sValue:'value', bIsSubmit:true, sId:'value', AddCSSClasses:["ibo-oauth-wizard--form--submit"]} %}
{% EndUIForm %}
{% EndUIPanel %}
<fieldset>
<legend>{{ 'UI:OAuth:Wizard:Form:Panel:Title'|dict_s }}</legend>
<form class="ibo-oauth-wizard--form">
<input type="hidden" name="url" value="">
{% for sName, aInput in aInputs %}
<div class="details">
<div class="field_container field_small">
<div class="field_label label"><label for="wizard_input_{{ sName }}">{{ aInput.label }}</label></div>
<div class="field_data">
<input
type="{{ aInput.type }}"
id="wizard_input_{{ sName }}"
name="{{ sName }}"
{% if aInput.read_only %} readonly {% endif %}
value="{{ aInput.value }}"
size="100"
>
</div>
</div>
</div>
{% endfor %}
<button class="ibo-oauth-wizard--form--submit" type="submit">{{ 'UI:OAuth:Wizard:Form:Button:Submit:Label'|dict_s }}</button>
</form>
</fieldset>
</div>
{% for sTemplate in aAdditionalBlocks %}
{% include sTemplate %}
{% endfor %}
</div>
{% EndUIContentBlock %}