Merge branch 'master' of gitosis@git.auf:auf_savoirs_en_partage_django
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / render_field.html
index 636d7b4..d93f2de 100644 (file)
@@ -1,14 +1,15 @@
 <tr>
     {% if field.is_hidden %}
-    {{ field }}
-    {% else %}
-    <td{{ field.row_attrs }} class="required" style="width: 150px;">
-        {{ field.label_tag }}
-        {% if field.errors %}
-        {{ field.errors }}
-        {% endif %}
-        </td><td>
         {{ field }}
-    </td>
+    {% else %}
+        <td{{ field.row_attrs }} class="required" style="width: 150px;">
+            {{ field.label_tag }}
+            {% if field.errors %}
+                {{ field.errors }}
+            {% endif %}
+        </td>
+        <td>{{ field }} {% if field.field.required %}*{% endif %}
+        {% if field.field.help_text %}<p class="help">{{ field.field.help_text|safe }}</p>{% endif %}
+        </td>
     {% endif %}
 </tr>