Improve Cookieconsent module design (#932)

* improve Cookieconsent module design

* update info file path
This commit is contained in:
Shamshid authored and GitHub committed 2023-03-10 09:53:08 +02:00
1 parent 214c4208a2
commit bf5073bfc9
1 file changed
+22 -21
@@ -7,30 +7,31 @@
{% set active_menu = 'extensions' %}
{% block content %}
<div class="widget">
<div class="head">
<h5>{{ 'Edit cookie consent message text'|trans }}</h5>
</div>
<div class="help">
<p>{{ 'Here you can specify message which will be shown to user. It will be shown until user will click <strong>Close &times;</strong> button, however it will not be intrusive and will not disturb to perform any actions.'|trans }}</p>
<p>{{ 'If there is a need to change the way notification looks or is being displayed, you can do it by editing'|trans }} <strong>src/modules/Cookieconsent/html_client/mod_cookieconsent_index.html.twig</strong></p>
</div>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ 'Edit cookie consent message text'|trans }}</h3>
</div>
<form method="post" action="{{ 'api/admin/extension/config_save'|link }}" class="api-form"
data-api-msg="{{ 'Configuration updated'|trans }}">
<div class="card-body">
<div class="row">
<div class="col-md-10">
{% set params = admin.extension_config_get({"ext":"mod_cookieconsent"}) %}
<div class="tab_content nopadding" id="tab-new">
<form method="post" action="{{ 'api/admin/extension/config_save'|link }}" class="mainForm api-form" data-api-msg="{{ 'Configuration updated'|trans }}">
<input type="hidden" name="CSRFToken" value="{{ CSRFToken }}"/>
<fieldset>
<div class="rowElem noborder">
<div class="formBottom">
<textarea cols="5" rows="10" name="message" placeholder="{{ 'Add note or todo task'|trans }}" >{% if params.message %}{{params.message}}{% else %}This website uses cookies. By continuing to use this website, you consent to our use of these cookies.{% endif %}</textarea>
<p>{{ 'Here you can specify message which will be shown to user. It will be shown until user will click <strong>Close &times;</strong> button, however it will not be intrusive and will not disturb to perform any actions.'|trans|raw }}</p>
<div class="alert alert-info" role="alert">
{{ 'If there is a need to change the way notification looks or is being displayed, you can do it by editing'|trans }}
<b>{{ constant('PATH_ROOT') }}/modules/Cookieconsent/html_client/mod_cookieconsent_index.html.twig</b>
</div>
{% set params = admin.extension_config_get({"ext":"mod_cookieconsent"}) %}
<textarea class="form-control" cols="5" rows="10" name="message" id="cookie-message"
placeholder="{{ 'Add note or todo task'|trans }}">{% if params.message %}{{ params.message }}{% else %}This website uses cookies. By continuing to use this website, you consent to our use of these cookies.{% endif %}</textarea>
</div>
<div class="fix"></div>
</div>
<input type="hidden" name="ext" value="mod_cookieconsent" />
<input type="submit" value="{{ 'Update'|trans }}" class="greyishBtn submitForm" />
</fieldset>
</div>
<div class="card-footer text-end">
<input type="hidden" name="ext" value="mod_cookieconsent"/>
<button type="submit" class="btn btn-primary">{{ 'Update'|trans }}</button>
</div>
</form>
</div>
</div>
{% endblock %}