Created
November 23, 2016 10:20
-
-
Save neokoenig/0e432a27ca5466287bed0ebc04d37bb2 to your computer and use it in GitHub Desktop.
CFWheels Bootstrap3 form defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// BS3 form settings | |
set(functionName="startFormTag"); | |
set(functionName="submitTag", class="btn btn-primary", value="Save Changes"); | |
set(functionName="checkBox,checkBoxTag", labelPlacement="aroundRight", prependToLabel="<div class=""checkbox"">", appendToLabel="</div>", uncheckedValue="0"); | |
set(functionName="radioButton,radioButtonTag", labelPlacement="aroundRight", prependToLabel="<div class=""radio"">", appendToLabel="</div>"); | |
set(functionName="textField,textFieldTag,select,selectTag,passwordField,passwordFieldTag,textArea,textAreaTag,fileFieldTag,fileField", | |
class="form-control", | |
labelClass="control-label", | |
labelPlacement="before", | |
prependToLabel="<div class=""form-group"">", | |
prepend="<div class="""">", | |
append="</div></div>" ); | |
set(functionName="dateTimeSelect,dateSelect", prepend="<div class=""form-group"">", append="</div>", timeSeparator="", minuteStep="5", secondStep="10", dateOrder="day,month,year", dateSeparator="", separator=""); | |
set(functionName="errorMessagesFor", class="alert alert-dismissable alert-danger"" style=""margin-left:0;padding-left:26px;"); | |
set(functionName="errorMessageOn", wrapperElement="div", class="alert alert-danger"); | |
set(functionName="flash", prepend="<div class=""alert""><a class=""close"" data-dismiss=""alert"">×</a>", append="</div>"); | |
set(functionName="flashMessages", prependToValue="<div class=""alert alert-dismissable alert-info""><a class=""close"" data-dismiss=""alert"">×</a>", appendToValue="</div>"); | |
set(functionName="paginationLinks", prepend="<ul class=""pagination"">", append="</ul>", prependToPage="<li>", appendToPage="</li>", linkToCurrentPage=true, classForCurrent="active", anchorDivider="<li class=""disabled""><a href=""##"">...</a></li>"); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment