Opened 15 years ago

Closed 15 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 ankit, 15 years ago

Owner: changed from nobody to ankit
Status: newassigned

comment:2 by ankit, 15 years ago

Owner: changed from ankit to nobody
Status: assignednew

comment:3 by Russell Keith-Magee, 15 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top