Commit | Line | Data |
---|---|---|
76c9ea6b WKG |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting | |
3 | # Copyright (C) 2011 Free Software Foundation, Inc | |
4 | # | |
5 | # This program is free software: you can redistribute it and/or modify | |
6 | # it under the terms of the GNU Affero General Public License as published by | |
7 | # the Free Software Foundation, either version 3 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU Affero General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU Affero General Public License | |
16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | #} | |
ef7cdac5 CAW |
18 | {% macro render_table(form) -%} |
19 | {% for field in form %} | |
20 | <tr> | |
21 | <th>{{field.label}}</th> | |
22 | <td> | |
23 | {{field}} | |
24 | {% if field.errors %} | |
25 | <br /> | |
26 | <ul class="errors"> | |
27 | {% for error in field.errors %} | |
28 | <li>{{error}}</li> | |
29 | {% endfor %} | |
30 | </ul> | |
31 | {% endif %} | |
32 | </td> | |
33 | </tr> | |
34 | {% endfor %} | |
35 | {%- endmacro %} |