In layout_survey_list.twig, the
aSurveyInfo.publicSurveys object contains settings for all publicly listed active surveys.
So, you could apply attributes and/or classes to the survey list items, something like this:
Code:
<ul class='{{ aSurveyInfo.class.surveylistrowdivbdivul }} list-unstyled ' {{ aSurveyInfo.attr.surveylistrowdivbdivul }}>
{% for key, oSurvey in aSurveyInfo.publicSurveys %}
<li class="{{ aSurveyInfo.class.surveylistrowdivbdivulli }} btn-group col-sm-6 col-xs-12" {{ aSurveyInfo.attr.surveylistrowdivbdivulli }}>
<a
href="{{ oSurvey.sSurveyUrl }}"
title="{{ gT("Start survey") }}"
lang="{{ oSurvey.language }}"
class="{{ aSurveyInfo.class.surveylistrowdivbdivullia }} btn btn-primary col-xs-12 allow-edit-{{oSurvey['alloweditaftercompletion']}}"
data-allow-edit="{{oSurvey['alloweditaftercompletion']}}" >
{{ oSurvey.localizedTitle }}
</a>
</li>
{% endfor %}
</ul>
This would result in HTML something like this which you could manage in your custom.js file.
Code:
<ul class=" surveys-list list-unstyled ">
<li class=" btn-group col-sm-6 col-xs-12">
<a href="/limeSurvey5x/index.php/444444?lang=en" title="Start survey" class=" surveytitle btn btn-primary col-xs-12 allow-edit-N" data-allow-edit="N" lang="en">
Test 1
</a>
</li>
<li class=" btn-group col-sm-6 col-xs-12">
<a href="/limeSurvey5x/index.php/573255?lang=de" title="Start survey" class=" surveytitle btn btn-primary col-xs-12 allow-edit-Y" data-allow-edit="Y" lang="de">
Test 2
</a>
</li>
</ul>