Files
drmaterac.pl/modules/pshowsso/views/templates/admin/configuration.html.twig
2025-10-20 14:10:54 +02:00

75 lines
2.6 KiB
Twig

{# **
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @author PrestaShow.pl <kontakt@prestashow.pl>
* @copyright Since 2014 PrestaShow.pl
* @license https://prestashow.pl/license
* #}
{% extends '@Modules/pshowsso/vendor/prestashow/presta-base-v1/Resources/views/admin/admin_controller.html.twig' %}
{% block module_content %}
{{ form_start(configurationForm) }}
<div class="card">
<h3 class="card-header">
<i class="material-icons">edit</i> {{ serviceName }}
</h3>
<div class="card-body">
<div class="form-wrapper">
{{ form_widget(configurationForm) }}
</div>
</div>
<div class="card-footer">
<div class="d-flex justify-content-end">
<button class="btn btn-primary">{{ 'Save'|trans({}, 'Modules.Pshowsso.Admin') }}</button>
</div>
</div>
</div>
{{ form_end(configurationForm) }}
<div class="alert alert-info d-print-none" role="alert">
<div class="alert-text">
<p>
{{ 'Test logging in with the button:'|trans({}, 'Modules.Pshowsso.Admin') }}
&nbsp;
<a href="{{ frontLoginUrl }}" class="btn btn-default btn-sm btn-xs" target="_blank">
{{ 'Sign in with'|trans({}, 'Modules.Pshowsso.Admin') }} {{ serviceName }}
</a>
</p>
</div>
<p>&nbsp;</p>
<div class="alert-text">
<p>{{ 'You can place the login button anywhere in the template (.tpl) using the code:'|trans({}, 'Modules.Pshowsso.Admin') }}</p>
<p><code>{hook h='displaySSOButton' service='{{ serviceName|lower }}'}</code></p>
</div>
<p>&nbsp;</p>
<div class="alert-text">
<p>
{{ 'Change the appearance of the button by copying the file:'|trans({}, 'Modules.Pshowsso.Admin') }}
<p>
<code>
{{ shopRootDir }}/modules/pshowsso/views/templates/sso_btn/default.tpl
</code>
</p>
<p>{{ 'to:'|trans({}, 'Modules.Pshowsso.Admin') }}</p>
<p>
<code>
{{ currentThemeDir }}modules/pshowsso/views/templates/sso_btn/{{ serviceName|lower }}.tpl
</code>
</p>
</div>
</div>
{% endblock %}
{# {% block javascripts %} #}
{# {{ parent() }} #}
{# #}{# <script src="{{ asset('../modules/blockwishlist/public/form.bundle.js') }}"></script> #}
{# {% endblock %} #}