Commit ff79b5be authored by Chenu Denis's avatar Chenu Denis

[fix] Bootsrap alert modal Close button need a label

parent a0b2cd5a
...@@ -313,6 +313,8 @@ ...@@ -313,6 +313,8 @@
<error> <error>
<file type="view" role="layout">layout_errors.twig</file> <file type="view" role="layout">layout_errors.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file> <file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/messages/warnings.twig</file>
<file type="view" role="subview">./subviews/messages/bootstrap_alert_modal.twig</file>
</error> </error>
<clearall> <clearall>
......
{#
(¯`·._.·(¯`·._.· Bootstrap Modal Alert ·._.·´¯)·._.·´¯)
This is the modal that shows most of the alert messages.
The conversion from pure JavaScript alert to Bootstrap modal is done in theme-core.js
About Bootstrap modal, see: http://getbootstrap.com/javascript/#modals
#}
{# Register script for modal #}
{% if( empty(json_decode(aSurveyInfo.jPopup)) == false ) %}
{{ registerScript('startPopup',"LSvar.startPopups = " ~ aSurveyInfo.jPopup , "POS_HEAD") }}
{{ registerScript('showStartPopups',"window.templateCore.alertSurveyDialog(" ~ aSurveyInfo.jPopup ~ ");", "POS_END") }}
{% endif %}
<!-- Bootstrap Modal Alert -->
{% if(aSurveyInfo.id.alertmodal)%}
<div id="{{ aSurveyInfo.id.alertmodal }}" class="{{ aSurveyInfo.class.alertmodal }}" {{ aSurveyInfo.attr.alertmodal }}>
<div class="{{ aSurveyInfo.class.modaldialog }}" {{ aSurveyInfo.attr.modaldialog }}>
<div class="{{ aSurveyInfo.class.modalcontent }}" {{ aSurveyInfo.attr.modalcontent }} >
<div class="{{ aSurveyInfo.class.modalheader }}" {{ aSurveyInfo.attr.modalheader }} >
<button {{ aSurveyInfo.attr.modalclosebutton }} aria-label="{{ gT('Close') }}" class="{{ aSurveyInfo.class.modalclosebutton }}" ><span aria-hidden="true">&times;</span><span class="sr-only">{{ gT("Close") }}</span></button>
<div class="{{ aSurveyInfo.class.modaltitle }}" {{ aSurveyInfo.attr.modaltitle }}>&nbsp;</div>
</div>
<div class="{{ aSurveyInfo.class.modalbody }}" {{ aSurveyInfo.attr.modalbody }}>
</div>
<div class="{{ aSurveyInfo.class.modalfooter }}" {{ aSurveyInfo.attr.modalfooter }}>
<a {{ aSurveyInfo.attr.modalfooterlink }} class="{{ aSurveyInfo.class.modalfooterlink }}">{{ gT("Close") }}</a>
</div>
</div>
</div>
</div>
{% endif %}
{# {#
LimeSurvey
Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Warnings ·._.·´¯)·._.·´¯) (¯`·._.·(¯`·._.· Warnings ·._.·´¯)·._.·´¯)
Show various warnings on top of the form Show various warnings on top of the form
...@@ -29,7 +17,7 @@ ...@@ -29,7 +17,7 @@
{% if aSurveyInfo.active != 'Y' %} {% if aSurveyInfo.active != 'Y' %}
<!-- Preview mode warning --> <!-- Preview mode warning -->
<div class="{{ aSurveyInfo.class.activealert }} alert alert-warning alert-dismissible fade in alert-dismissible" {{ aSurveyInfo.attr.activealert }} > <div class="{{ aSurveyInfo.class.activealert }} alert alert-warning alert-dismissible fade in alert-dismissible" {{ aSurveyInfo.attr.activealert }} >
<button {{ aSurveyInfo.attr.activealertbutton }} class="{{ aSurveyInfo.class.activealertbutton }} close" ><span aria-hidden="true">×</span><span class="sr-only">{{ gT("Close") }}</span></button> <button {{ aSurveyInfo.attr.activealertbutton }} class="{{ aSurveyInfo.class.activealertbutton }} close" ><span aria-hidden="true">&times;</span><span class="sr-only">{{ gT("Close") }}</span></button>
{{ gT("This survey is currently not active. You will not be able to save your responses.") }} {{ gT("This survey is currently not active. You will not be able to save your responses.") }}
</div> </div>
{% endif %} {% endif %}
...@@ -38,7 +26,7 @@ ...@@ -38,7 +26,7 @@
{% if aSurveyInfo.datasecuritynotaccepted == true %} {% if aSurveyInfo.datasecuritynotaccepted == true %}
<!-- Preview mode warning --> <!-- Preview mode warning -->
<div class="{{ aSurveyInfo.class.activealert }} alert alert-danger alert-dismissible fade in alert-dismissible" {{ aSurveyInfo.attr.activealert }} > <div class="{{ aSurveyInfo.class.activealert }} alert alert-danger alert-dismissible fade in alert-dismissible" {{ aSurveyInfo.attr.activealert }} >
<button {{ aSurveyInfo.attr.activealertbutton }} class="{{ aSurveyInfo.class.activealertbutton }} close" ><span aria-hidden="true">×</span><span class="sr-only">{{ gT("Close") }}</span></button> <button {{ aSurveyInfo.attr.activealertbutton }} class="{{ aSurveyInfo.class.activealertbutton }} close" ><span aria-hidden="true">&times;</span><span class="sr-only">{{ gT("Close") }}</span></button>
{{ aSurveyInfo.datasecurity_error }} {{ aSurveyInfo.datasecurity_error }}
</div> </div>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment