|
0
|
1 |
{% load i18n %} |
|
|
2 |
{% if form.non_field_errors %}<tr><td class="label"></td><td><span class="error-text">{{ form.non_field_errors }}</span></td></tr>{% endif %} |
|
|
3 |
|
|
|
4 |
{% for field in form %} |
|
|
5 |
<tr> |
|
|
6 |
<td class="label">{{ field.label_tag }}{% if field.field.required %} <span class="required_star">*</span>{% endif %} <div><br/></div></td> |
|
|
7 |
<td> |
|
|
8 |
<div {% if field.errors %}class="error"{% endif %}>{{ field }} |
|
|
9 |
{% ifequal field.name "format" %} |
|
321
|
10 |
{% ifequal form_type "create_content" %} |
|
|
11 |
<a class="tip" href="#" title="{% blocktrans %}Markdown (or rst) is a structured format which permit simple formatting with simple textual syntax. We recommend you use the 'markown' format unless you want to paste HTML (in which case you should use the 'html' format).{% endblocktrans %}"> </a> |
|
|
12 |
{% endifequal %} |
|
|
13 |
{% ifequal form_type "upload_content" %} |
|
|
14 |
<a class="tip" href="#" title="{% blocktrans %}Markdown (or rst) is a structured format which permit simple formatting with simple textual syntax. We recommend you use the 'markdown' format if your text is mostly text and/or if you will create many revisions of your text. You can use the 'html' format if your text will not be edited or if you want to preserve complex formatting (tables, images, etc.).{% endblocktrans %}"> </a> |
|
|
15 |
{% endifequal %} |
|
0
|
16 |
{% endifequal %} |
|
|
17 |
</div> |
|
|
18 |
|
|
|
19 |
<div class="help_text"> |
|
|
20 |
{% if field.help_text %}{{ field.help_text }}{% endif %}{% if help_links %}{% for key,value in help_links.items %}{% ifequal key field.name %} (<a target="_blank" title="{% blocktrans %}Help{% endblocktrans %}" href="{% url help %}#{{ value }}">?</a>){% endifequal %}{% endfor %}{% endif %}{% if field.errors %} |
|
|
21 |
<span class="error-text"> |
|
|
22 |
{% for error in field.errors %}{{ error|escape }}{% endfor %} |
|
|
23 |
</span> |
|
|
24 |
</div> |
|
|
25 |
{% else %} |
|
|
26 |
<br/> |
|
|
27 |
{% endif %} |
|
|
28 |
</div> |
|
|
29 |
</td> |
|
|
30 |
</tr> |
|
|
31 |
{% endfor %} |