Last active
January 3, 2016 09:40
-
-
Save sapanparikh18/16fc16f5e293dd3577f9 to your computer and use it in GitHub Desktop.
Grails fields plugin wrapper customized to be compatible with materializecss. Each _wrapper or _widget files should go under views/_fields. For instance _fields_boolean__wrapper.gsp should go to views/_fields/boolean/_wrapper.gsp
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
<div class="row"> | |
<div class="col l12"> | |
<%= widget %> | |
<label for="${property}" data-error="wrong" data-success="right">${label}</label> | |
</div> | |
</div> |
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
<g:set var="months" value="${new java.text.DateFormatSymbols().months}"/> | |
<g:select class="col l4 m4 s12" name="${property}_day" from="${1..31}" /> | |
<g:select class="col l4 m4 s12" name="{property}_month" from="${months as List}" /> | |
<g:select class="col l4 m4 s12" name="{property}_year" from="${1947..2016}" /> |
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
<div class="row"> | |
<div class="row"> | |
<div class="col l12"> | |
<label for="${property}" data-error="wrong" data-success="right">${label}</label> | |
</div> | |
</div> | |
<div class="row"> | |
<%=widget%> | |
</div> | |
</div> | |
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
<div class="row"> | |
<div class="col l12"> | |
<label for="${property}" data-error="wrong" data-success="right">${label}</label> | |
<%= widget %> | |
</div> | |
</div> |
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
<div class="row"> | |
<div class="input-field col s12"> | |
<%= widget %> | |
<label for="${property}" data-error="wrong" data-success="right">${label}</label> | |
</div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment