- Posts: 136
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
It's already a btn-lg .LouisGac wrote: getbootstrap.com/docs/3.3/css/#buttons
I'd rather add the Bootstrap CSS class: btn-lg
The original request was to push the width to 100%.I'd rather add the Bootstrap CSS class: btn-lg
{# create a shortcut for aSurveyInfo.aNavigator #} {% set aNavigator = aSurveyInfo.aNavigator %} <!-- PRESENT THE NAVIGATOR --> <div class="{{ aSurveyInfo.class.navigatorcontainer }} row navigator " id="{{ aSurveyInfo.id.navigatorcontainer }}{{ navigatorid }}" {{ aSurveyInfo.attr.navigatorcontainer }}> <!-- Previous button container --> <div class="{{ aSurveyInfo.class.navigatorbuttonl }} col-xs-6 text-left" {{ aSurveyInfo.attr.navigatorbuttonl }}> {# Previous button must be set to ON in survey settings (and it's not shown in first page, in All in One survey mode, etc) #} {% if aNavigator.aMovePrev.show %} <!-- Button previous --> <button {{ str_replace("ls-button-previous","ls-button-previous"~navigatorid,aSurveyInfo.attr.navigatorbuttonprev) }} class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonprev }} btn btn-lg btn-block btn-default " > {{ gT("Previous") }} </button> {% endif %} </div> <div class="{{ aSurveyInfo.class.navigatorbuttonr }} col-xs-6 text-right"> {# Next button is not always shown (last page, all in one mode, etc) #} {% if aNavigator.aMoveNext.show %} {# On last page, Next button become submit button. #} {% if aNavigator.aMoveNext.value == "movesubmit" %} <!-- Button submit --> <button {{ str_replace("ls-button-submit","ls-button-submit"~navigatorid,aSurveyInfo.attr.navigatorbuttonsubmit) }} class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonsubmit }} btn btn-lg btn-block btn-primary"> {{ gT("Submit") }} </button> {% else %} <!-- Button Next --> <button {{ str_replace("ls-button-submit","ls-button-submit"~navigatorid,aSurveyInfo.attr.navigatorbuttonnext) }} {{ aSurveyInfo.attr.navigatorbuttonnext }} class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonnext }} btn btn-lg btn-block btn-primary " > {{ gT("Next") }} </button> {% endif %} {% endif %} </div> </div>