form_builder render template

edited April 2013 in Modules
Is there a tutorial or example anywhere on how to implement a template file for the form_builder? I'm not sure what directory to place a template in nor exactly how to build it.
Thanks

Comments

  • edited 5:13AM
    There currently is not. You can place the template file anywhere in your views. I'll usually put it in a sub views folder called "_admin". Below is an example of one where you use the {...} as placeholders for the field names. Note the {fields} and closing {/fields} values that enclose them since it loops through the repeatable div.

    <div class="repeatable_container" data-depth="1" data-min="3" data-max="4"> {fields} <div class="repeatable"> <h4><u>Column <span class="num_1">{num}</span></u></h4><br /> <table class="form"> <tbody> <tr> <td class="label"><label>Image:</label></td> <td class="value">{image}</td> </tr> <tr> <td class="label"><label>Title:</label></td> <td class="value">{title}</td> </tr> <tr> <td class="label"><label>Content:</label></td> <td class="value"><label>{content}</td> </tr> </tbody> </table> <br /><br /> </div> {/fields} </div>
Sign In or Register to comment.