Commit d896d89c authored by Chenu Denis's avatar Chenu Denis

[feature] start-group end-group and no-question system

parent 7798b07c
......@@ -6041,10 +6041,6 @@ table.ls-answers {
.boilerplate .answer-container {
display: none;
}
/* Basic question css */
.question-container {
margin-bottom: 2em;
}
/* .navbar-brand with little screen */
@media only screen and (max-width: 48em) {
.navbar-brand {
......@@ -6052,6 +6048,13 @@ table.ls-answers {
display: inline;
}
}
/* Basic question css */
.question-container {
margin-bottom: 1.5em;
}
.question-container.no-footer-spacer {
margin-bottom: 0;
}
/* Global question part */
.question-text,
.question-text h2,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -83,6 +83,11 @@ table.ls-answers thead th,table.ls-answers thead td,table.ls-answers .ls-heading
}
/* hide (then disable tab) for input other in multiple choice */
.checkbox-text-item .other-checkbox[aria-hidden]{display:none}
/* group system : need fix for panel */
.panel .panel.question-container{border:0 none transparent;
-webkit-box-shadow: initial;
box-shadow: initial;
}
/* Limesurvey vanilla part */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -28,9 +28,10 @@
{# Showing question code/number is a survey level setting, so it's inside the array aSurveyInfo #}
{% set aShow = aSurveyInfo.aShow %}
<!-- Question {{ aQuestion.code }} -->
{# Question Text #}
{{ include('./subviews/survey/question_subviews/question_text_container.twig') }}
{% if not no_include_text %}
{{ include('./subviews/survey/question_subviews/question_text_container.twig') }}
{% endif %}
{% if panel %} <div class="panel-body"> {% endif %}
{% set ariadescribe = '' %}
{% if aQuestion.mandatory != '' %}
......@@ -60,5 +61,5 @@
{% if not aQuestion.help.show %}
{{ aQuestion.help.text | raw }}
{% endif %}
{% if panel %} </div> {% endif %}
{% if (panel) %} </div>{% endif %}
<!-- End of question {{ aQuestion.code }} -->
......@@ -28,6 +28,8 @@
{% set questioncolor = '' %}
{% set questioncontainerclass = '' %}
{% set questionsize = aSurveyInfo.options.questionsize %}
{% set start_group = 0 %}
{% set end_group = 0 %}
{% if ( aSurveyInfo.options.questioncolor and aSurveyInfo.options.questioncolor !='none' ) %}
{% set questioncolor = aSurveyInfo.options.questioncolor %}
......@@ -84,6 +86,9 @@
{% set panel = false %}
{% if ( questionwrap =='panel' ) %}
{% set panel = true %}
{% set start_panel_body = 1 %}
{% set close_panel_body = 1 %}
{% set panel_heading = 1 %}
{% if ( questioncolor ) %}
{% set questioncontainerclass = 'panel panel-'~questioncolor %}
{% set questioncolor = '' %}
......@@ -93,9 +98,30 @@
{% else %}
{% set questioncolor = 'text-'~questioncolor %}
{% endif %}
{% if(in_array('skel-start-group',aQuestionsClasses)) %}
{% set start_group = 1 %}
{% endif %}
{% if(in_array('skel-end-group',aQuestionsClasses)) %}
{% set end_group = 1 %}
{% endif %}
{% if(in_array('skel-no-question',aQuestionsClasses)) %}
{% set no_include_text = 1 %}
{% endif %}
{# End of Options #}
<!-- Question {{ aQuestion.qid }} -->
<{{ tagSection }} {{ aQuestion.attributes }} class="{{ questioncontainerclass }} {{ aQuestion.class }} {% if aQuestion.input_error_class %}submitted-error{% endif %} {{ aSurveyInfo.class.questioncontainer }}" {{ aSurveyInfo.attr.questioncontainer }}>
{% if (start_group) %}
<{{ tagSection }} class="{{ questioncontainerclass }}">
{% if(panel) %}
{{ include('./subviews/survey/question_subviews/question_text_container.twig') }}
{% set no_include_text = 1 %}
{% endif %}
<{{ tagSection }} {{ aQuestion.attributes }} class="{{ aQuestion.class }} {% if aQuestion.input_error_class %}submitted-error{% endif %} {{ aSurveyInfo.class.questioncontainer }}" {{ aSurveyInfo.attr.questioncontainer }}>
{% else %}
<{{ tagSection }} {{ aQuestion.attributes }} class="{{ questioncontainerclass }} {{ aQuestion.class }} {% if aQuestion.input_error_class %}submitted-error{% endif %} {{ aSurveyInfo.class.questioncontainer }}" {{ aSurveyInfo.attr.questioncontainer }}>
{% endif %}
{{ include('./subviews/survey/question.twig') }}
{% if (end_group) %}
</{{ tagSection }} >
{% endif %}
</{{ tagSection }}>
<!-- End of question {{ aQuestion.qid }} -->
<!-- Question text -->
<{{ tagHeader }} class="{{ aSurveyInfo.class.questiontitlecontainer }}{% if panel %} panel-heading {% endif %} clearfix" {{ aSurveyInfo.attr.questiontitlecontainer }} >
<{{ tagHeader }} class="{{ aSurveyInfo.class.questiontitlecontainer }}{% if panel_heading %} panel-heading {% endif %} clearfix" {{ aSurveyInfo.attr.questiontitlecontainer }} >
{{ include('./subviews/survey/question_subviews/question_text_content.twig') }}
</{{ tagHeader }}>
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