Opened 16 years ago
Closed 16 years ago
#11309 closed (invalid)
template
Reported by: | ankit | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.1-beta |
Severity: | Keywords: | inline -template | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
inline template
I want to use <a href > tag in the template where i found the field named as 'Id'.
{% for fieldset in inline_admin_form %}
{% for line in fieldset %}
{% for field in line %}
<td class="original {{ field.field.name }}">
{{ field.field.errors.as_ul }}
<div name="foobar_a"
{% ifequal field.field.label "Id" %}
{% endifequal %}
{{ field.field }}
</span>
</td>
{% endfor %}
{% endfor %}
{% endfor %}
in if condition i want a href tag to be placed.
I have tried several option but are not working
1)<a href =../../{{fieild.field}}>click here </a>
2)<a href = '../../'{{field.field}}>click here </a>
3)<a href ='../../{{field.field}}'>click here</a>
{{field.field.label}} is giving 'Id'
when i write {{field.field}} it is giving the correct value but when i write it inside <a href tag it does not show any value
Change History (3)
comment:1 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:3 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The answer to this hasn't changed since you posted #11307. The ticket system isn't for answering "How Do I" user questions. Please ask on django-users. Please *Do Not* open yet another ticket with your question.