Commit feda516d authored by Chenu Denis's avatar Chenu Denis

[feature] Allow to hide and show header link

parent d078f455
......@@ -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.0.0</version>
<version>6.1.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-03 09:50:38</last_update>
......@@ -72,6 +72,10 @@
<removeback>on</removeback>
<fixnumauto>disable</fixnumauto>
<dynamicvalidity>off</dynamicvalidity>
<savelink>on</savelink>
<clearalllink>on</clearalllink>
<indexlink>on</indexlink>
<languagelink>on</languagelink>
<availablevariations>{
"contrast": {
"name": "Contrast",
......
......@@ -22,7 +22,6 @@
<div class="row">
{# Begin template option form #}
<form class='form action_update_options_string_form' action=''>
{# If this is a surveyspecific settings page, offer the possibility to do a full inheritance of the parent template #}
{# CSS variation : #}
{% if oParentOptions.availablevariations is null %}
......@@ -197,6 +196,105 @@
</div>
</div>
</div>
<h3 class="h4">{{ gT("Top link actions") }}</h3>
<div class='row'>
<div class='col-sm-12 col-md-6 col-lg-3'>
<div class='form-group row'>
<label for='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">
<label class="btn btn-default">
<input type='radio' name='savelink' value='on' class='selector_option_radio_field simple_edit_options_savelink ' data-id='savelink'/>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='savelink' value='off' class='selector_option_radio_field simple_edit_options_savelink ' data-id='savelink'/>
{{ 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='savelink' value='inherit' class='selector_option_radio_field simple_edit_options_savelink ' data-id='savelink'/>
{{ 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 for='simple_edit_options_clearalllink' class='control-label col-xs-4'> {{ gT("Clear all header link") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='clearalllink' value='on' class='selector_option_radio_field simple_edit_options_clearalllink ' data-id='clearalllink'/>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='clearalllink' value='off' class='selector_option_radio_field simple_edit_options_clearalllink ' data-id='clearalllink'/>
{{ 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='clearalllink' value='inherit' class='selector_option_radio_field simple_edit_options_clearalllink ' data-id='clearalllink'/>
{{ 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 for='simple_edit_options_indexlink' class='control-label col-xs-4'> {{ gT("Index header links") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='indexlink' value='on' class='selector_option_radio_field simple_edit_options_indexlink ' data-id='indexlink'/>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='indexlink' value='off' class='selector_option_radio_field simple_edit_options_indexlink ' data-id='indexlink'/>
{{ 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='indexlink' value='inherit' class='selector_option_radio_field simple_edit_options_indexlink ' data-id='indexlink'/>
{{ 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 for='simple_edit_options_languagelink' class='control-label col-xs-4'> {{ gT("Langage changer header links") }} </label>
<div class='col-xs-8'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='languagelink' value='on' class='selector_option_radio_field simple_edit_options_languagelink ' data-id='languagelink'/>
{{ gT("Yes") }}
</label>
<label class="btn btn-default">
<input type='radio' name='languagelink' value='off' class='selector_option_radio_field simple_edit_options_languagelink ' 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='languagelink' value='inherit' class='selector_option_radio_field simple_edit_options_languagelink ' data-id='languagelink'/>
{{ gT("Inherit") }}
</label>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class='row'>
<hr/>
</div>
......
......@@ -57,10 +57,18 @@
</div>
<div id="{{ aSurveyInfo.id.navbar }}" class="{{ aSurveyInfo.class.navbarcollapse }}" {{ aSurveyInfo.attr.navbarcollapse }} >
<ul class="{{ aSurveyInfo.class.navbarlink }} navbar-right" {{ aSurveyInfo.attr.navbarlink }}>
{{ include('./subviews/navigation/save_links.twig') }}
{{ include('./subviews/navigation/clearall_links.twig') }}
{{ include('./subviews/navigation/question_index_menu.twig') }}
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
{% if(aSurveyInfo.options.savelink != 'off') %}
{{ include('./subviews/navigation/save_links.twig') }}
{% endif %}
{% if(aSurveyInfo.options.clearalllink != 'off') %}
{{ include('./subviews/navigation/clearall_links.twig') }}
{% endif %}
{% if(aSurveyInfo.options.indexlink != 'off') %}
{{ include('./subviews/navigation/question_index_menu.twig') }}
{% endif %}
{% if(aSurveyInfo.options.languagelink != 'off') %}
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
{% endif %}
</ul>
</div>
</div>
......
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