datatracker/ietf/templates/ipr/iprdetail_archive.html
Henrik Levkowetz c2c08c9edc * Added a new funtion in utils.py: split_form()
* Re-wrote the IPR declaration form using form.to_table()
   and the split_form() function in order to get sub-blocks
   of the form which could easily be used with the existing
   IPR detail display templates.

   How to merge forms from multiple models took some thinking;
   since the forms have a common ancestor, multiple inheritance
   doesn't preserve the form data.  In the end the merging
   didn't turn out too horrible.  See ipr.views.new().
 * Changed the IprDetail model; first to specify editable=False
   for all fieleds which shouldn't be shown in the form, but
   this has the drawback of also removing them from the admin
   page form.  Simply bagging them in an un-used sub block with
   split_form() works fine.
 * Changed the URLs for IPR by-date some again
 * Updated the ipr/new* templates to use the form sub-blocks
 - Legacy-Id: 97
2007-05-04 20:21:03 +00:00

29 lines
641 B
HTML

{% extends "base.html" %}
{% block title %}IPR Declarations{% endblock %}
{% block content %}
<h2>IPR Declarations</h2>
<h3>Recent IPR Declarations</h3>
{% regroup latest by telechat_date|date:"Y" as years %}
{% for year in years %}
{% ifnotequal latest|length "1" %}
<h4>{{ year.grouper }}</h4>
{% endifnotequal %}
<table border="1" cellpadding="2" cellspacing="2" width="820">
{% for ipr in year.list %}
{% include "ipr/list_item.html" %}
{% endfor %}
</table>
{% endfor %}
<h3>Archives by Year</h3>
<ul>
{% for year in date_list %}
<li><a href="/ipr/{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a>
{% endfor %}
</ul>
{% endblock %}