# HG changeset patch # User Madhusudan.C.S # Date 1281087707 -19800 # Node ID b0fd3cb56e0bac701a8336c2c03e32fb60bc44d0 # Parent 1ecfbc16a70d09d68256d58aca7066a33524b818 Modified template if tags to be compliant with Django 1.1 and not 1.2. diff -r 1ecfbc16a70d -r b0fd3cb56e0b templates/send_acco_cnf.html --- a/templates/send_acco_cnf.html Fri Aug 06 15:11:01 2010 +0530 +++ b/templates/send_acco_cnf.html Fri Aug 06 15:11:47 2010 +0530 @@ -44,13 +44,13 @@ {% endif %} - {% if m.participantinfo_set.get.will_sprint == '1' %} + {% ifequal m.participantinfo_set.get.will_sprint '1' %} No - {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} + {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %} May be {% else %} Yes - {% endif %}{% endif %} + {% endifequal %}{% endifequal %} {% if m.participantinfo_set.get.sprinted_already %} @@ -60,15 +60,15 @@ {% endif %} - {% if m.registrantinfo_set.get.acco_location == '0' %} + {% ifequal m.registrantinfo_set.get.acco_location '0' %} IITB Hostel - {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %} IITB Guest House - {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %} NITIE {% else %} Not alloted - {% endif %}{% endif %}{% endif %} + {% endifequal %}{% endifequal %}{% endifequal %} {% endfor %} @@ -105,13 +105,13 @@ {% endif %} - {% if m.participantinfo_set.get.will_sprint == '1' %} + {% ifequal m.participantinfo_set.get.will_sprint '1' %} No - {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} + {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %} May be {% else %} Yes - {% endif %}{% endif %} + {% endifequal %}{% endifequal %} {% if m.participantinfo_set.get.sprinted_already %} @@ -121,15 +121,15 @@ {% endif %} - {% if m.registrantinfo_set.get.acco_location == '0' %} + {% ifequal m.registrantinfo_set.get.acco_location '0' %} IITB Hostel - {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %} IITB Guest House - {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %} NITIE {% else %} Not alloted - {% endif %}{% endif %}{% endif %} + {% endifequal %}{% endifequal %}{% endifequal %} {% endfor %} @@ -164,13 +164,13 @@ {% endif %} - {% if m.participantinfo_set.get.will_sprint == '1' %} + {% ifequal m.participantinfo_set.get.will_sprint '1' %} No - {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %} + {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %} May be {% else %} Yes - {% endif %}{% endif %} + {% endifequal %}{% endifequal %} {% if m.participantinfo_set.get.sprinted_already %} @@ -180,15 +180,15 @@ {% endif %} - {% if m.registrantinfo_set.get.acco_location == '0' %} + {% ifequal m.registrantinfo_set.get.acco_location '0' %} IITB Hostel - {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %} IITB Guest House - {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %} + {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %} NITIE {% else %} Not alloted - {% endif %}{% endif %}{% endif %} + {% endifequal %}{% endifequal %}{% endifequal %} {% endfor %}