Skip to content

Instantly share code, notes, and snippets.

Created April 21, 2011 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/935491 to your computer and use it in GitHub Desktop.
Save anonymous/935491 to your computer and use it in GitHub Desktop.
formfu field tt file (fields wrapped by li tag)
<li [% IF self.errors %]class="error"[% END %]>
[% IF self.container_tag.defined %]
<[% self.container_tag %][% process_attrs(self.container_attributes) %]>
[% END %]
[% IF self.label.defined && self.label_tag == 'legend' %]
[% INCLUDE $self.label_filename %]
[% END %]
[% IF self.label.defined && self.label_tag != 'legend' && !self.reverse_single %]
[% INCLUDE $self.label_filename %][% END %][% IF self.container_tag.defined %]
[% END %]
[% IF self.label.defined && self.label_tag != 'legend' && self.reverse_single %]
[% INCLUDE $self.label_filename %]
[% END %]
[% IF self.comment.defined %]
<span[% process_attrs(self.comment_attributes) %]>
[% self.comment %]
</span>
[% END %]
[% content %]
[% IF self.errors %]
[% FOREACH error = self.errors %]
<p class="error">[% error.message %]</p>
[% END %]
[% END %]
[% IF self.container_tag.defined %]
</[% self.container_tag %]>
[% END %]
[% IF self.javascript.defined %]
<script type="text/javascript">
[% self.javascript %]
</script>
[% END %]
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment