Is there a way for me to strip away div classes and other CSS stuff when generating grails views? -
well, there goes question. don't ui, , if there way auto generate essential things fields no divs , classes. know removing css, want raw html rails gives me. know how?
for example, grails generate-views mystuff
generates code looks this:
<table> <tbody> <tr class="prop"> <td valign="top" class="name"> <label for="name">name:</label> </td> <td valign="top" class="value ${haserrors(bean:feedback,field:'name','errors')}"> <input type="text" id="name" name="name" value="${fieldvalue(bean:feedback,field:'name')}"/> </td> </tr> <tr class="prop"> <td valign="top" class="name"> <label for="feedback">feedback:</label> </td> <td valign="top" class="value ${haserrors(bean:feedback,field:'feedback','errors')}"> <input type="text" id="feedback" name="feedback" value="${fieldvalue(bean:feedback,field:'feedback')}"/> </td> </tr> </tbody> </table>
when i'm interested in getting this:
<input type="text" id="name" name="name" value="${fieldvalue(bean:feedback,field:'name')}"/> <input type="text" id="feedback" name="feedback" value="${fieldvalue(bean:feedback,field:'feedback')}"/>
well, stuff manually , not auto-generate, but, no it's not practical when fields many. :(
use install-templates command install templates. can edit/modify templates meet needs.
Comments
Post a Comment