- Posts: 14
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
You kidding ?krosser wrote: BTW guys, I have figured out why the code from question_index_groups_buttons.twig was not working - buttons were not responsive. The original code was missing the href part from the url question_index_menu.twig.
DenisChenu wrote:
You kidding ?krosser wrote: BTW guys, I have figured out why the code from question_index_groups_buttons.twig was not working - buttons were not responsive. The original code was missing the href part from the url question_index_menu.twig.
question_index_groups_buttons do BUTTON not LINK
And it work and was responsive …
Don't say silly things please
<div class="list-group index-button-full"> <div class="list-group-item"> <div class="h4 list-group-item-heading">{{ gT("Question index") }}</div> </div> {% for step, indexItem in aSurveyInfo.aQuestionIndex.items %} {% set templateClass = '' %} {% if attribute(indexItem.stepStatus, 'index-item-unanswered') is defined and attribute(indexItem.stepStatus, 'index-item-unanswered') == true %} {% set templateClass = templateClass ~ ' list-group-item-warning' %} {% endif %} {% if attribute(indexItem.stepStatus, 'index-item-error') is defined and attribute(indexItem.stepStatus, 'index-item-error') == true %} {% set templateClass = templateClass ~ ' list-group-item-danger' %} {% endif %} {% if attribute(indexItem.stepStatus, 'index-item-current') is defined and attribute(indexItem.stepStatus, 'index-item-current') == true %} {% set templateClass = statusClass ~ ' disabled' %} {% endif %} <button type="submit" name="move" value="{{ indexItem.step }}" class="list-group-item {{ indexItem.coreClass }} {{ templateClass }}" >{{ indexItem.text }}</button> {% endfor %} </div>
data-limesurvey-submit='{{ indexItem.submit }}'
<button type="submit" name="move" value="{{ indexItem.step }}" data-limesurvey-submit='{{ indexItem.submit }}' class="list-group-item {{ indexItem.coreClass }} {{ templateClass }}" >{{ indexItem.text }}</button>
<a href='{{ indexItem.url }}'> <button type="submit" name="move" value="{{ indexItem.step }}" class="list-group-item {{ indexItem.coreClass }} {{ templateClass }}" > {{ indexItem.text }}</button>
It's the reason why i write : «I think you need to learn HTML» , it's clearly not an insult.krosser wrote: I read everything but sometimes it is very difficult to understand what you write. Sorry.