Commit c050639e authored by Chenu Denis's avatar Chenu Denis

[feature] Allow previous and next button in header

parent fd88eead
......@@ -16,7 +16,7 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>6.1.2</version>
<version>6.2.0</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-07 08:54:59</last_update>
......@@ -424,6 +424,8 @@
<file type="view" role="subview">./subviews/navigation/language_changer_top_menu.twig</file>
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
<file type="view" role="subview">./subviews/navigation/question_index_menu.twig</file>
<file type="view" role="subview">./subviews/navigation/previous_link.twig</file>
<file type="view" role="subview">./subviews/navigation/nextsubmit_link.twig</file>
<file type="view" role="subview">./subviews/navigation/navigator.twig</file>
<file type="view" role="subview">./subviews/navigation/navigator_move.twig</file>
<file type="view" role="subview">./subviews/navigation/navigator_complement.twig</file>
......
......@@ -224,7 +224,7 @@
<div class="row action_hide_on_inherit">
<div class='col-sm-12 col-md-6 col-lg-3'>
<div class='form-group row'>
<div id='simple_edit_options_savelink' class='control-label col-xs-4'> {{ gT("Save header link") }} </div>
<label id='simple_edit_options_savelink' class='control-label col-xs-4'> {{ gT("Save header link") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons" role='radiogroup' aria-labelledby='simple_edit_options_savelink' data-default='on'>
<label class="btn btn-default">
......@@ -319,6 +319,56 @@
</div>
</div>
</div>
<div class="row action_hide_on_inherit">
<div class='col-sm-12 col-md-6 col-lg-3'>
<div class='form-group row'>
<label id='simple_edit_options_previouslink' class='control-label col-xs-4'> {{ gT("Move previous header link") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons" role='radiogroup' aria-labelledby='simple_edit_options_previouslink' data-default='off'>
<label class="btn btn-default">
<input type='radio' name='previouslink' value='on' class='selector_option_radio_field simple_edit_options_previouslink ' data-id='languagelink'>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='previouslink' value='off' class='selector_option_radio_field simple_edit_options_previouslink ' data-id='languagelink'>
{{ gT("No") }}
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' name='previouslink' value='inherit' class='selector_option_radio_field simple_edit_options_previouslink ' data-id='languagelink'>
{{ gT("Inherit") }}
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-6 col-lg-3'>
<div class='form-group row'>
<label id='simple_edit_options_nextsubmitlink' class='control-label col-xs-4'> {{ gT("Move next and submit header link") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons" role='radiogroup' aria-labelledby='simple_edit_options_nextsubmitlink' data-default='off'>
<label class="btn btn-default">
<input type='radio' name='nextsubmitlink' value='on' class='selector_option_radio_field simple_edit_options_nextsubmitlink ' data-id='languagelink'>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='nextsubmitlink' value='off' class='selector_option_radio_field simple_edit_options_nextsubmitlink ' data-id='languagelink'>
{{ gT("No") }}
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' name='nextsubmitlink' value='inherit' class='selector_option_radio_field simple_edit_options_nextsubmitlink ' data-id='languagelink'>
{{ gT("Inherit") }}
</label>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="row action_hide_on_inherit">
<hr/>
</div>
......
......@@ -69,6 +69,12 @@
{% if(aSurveyInfo.options.languagelink != 'off') %}
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
{% endif %}
{% if(aSurveyInfo.options.previouslink == 'on') %}
{{ include('./subviews/navigation/previous_link.twig') }}
{% endif %}
{% if(aSurveyInfo.options.nextsubmitlink == 'on') %}
{{ include('./subviews/navigation/nextsubmit_link.twig') }}
{% endif %}
</ul>
</div>
</div>
......
{% if aSurveyInfo.aNavigator.aMoveNext.value == "movesubmit" %}
<!-- Submit -->
<li class="ls-no-js-hidden">
<a href="#" data-limesurvey-submit='{ "move":"movesubmit" }' class='animate'>
{{ gT('Submit') }}
</a>
</li>
{% else %}
<!-- Submit -->
<li class="ls-no-js-hidden">
<a href="#" data-limesurvey-submit='{ "move":"movenext" }' class='animate'>
{{ gT('Next') }}
</a>
</li>
{% endif %}
{% if aSurveyInfo.aNavigator.aMovePrev.show %}
<!-- Previous -->
<li class="ls-no-js-hidden">
<a href="#" data-limesurvey-submit='{ "move":"moveprev" }' class='animate'>
{{ gT('Previous') }}
</a>
</li>
{% 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