{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block morecss %}
{% endblock %}
{% block doctype %}{% endblock %}
{% block title %}IPR Search Result{% endblock %}
{% block content %}
<h1>IPR Disclosures</h1>
	    {% block search_result %}
	    <table cellpadding="1" cellspacing="0" border="0">

	       <tr><td colspan="3"><b>{% block search_header %}Patent Owner/Applicant Search Result{% endblock %}</b></td></tr>
	       {% if not iprs %}
		  <tr>
		     <td></td>
		     <td colspan="2"><b>{% block search_failed %}No IPR disclosures have been submitted by <i>{{ q }}</i>{% endblock %}</b></td>
		  </tr>
	       {% else %}
		  <tr><td colspan="3">Total number of IPR disclosures found: {{ count }} </td></tr>
		  {% block iprlist %}
		     {% for ipr in iprs %}
		     <tbody bgcolor="#{% cycle eeeeee,dddddd as bgcolor %}">
			<tr valign="top">
			   <td colspan="3">
			      {% block intro_prefix %}IPR that was submitted by <b><i>{{ q }}</i></b>, and{% endblock %}
			      {% block related %}
				 {% if not ipr.docs %}
				    is not related to a specific IETF contribution.
				 {% else %}
				    is related to
				    {% for item in ipr.docs %}
				       {% ifequal item ipr.last_draft %}<b> and </b>{% endifequal %}
				       <b><i>{{ item.document }}, "{{ item.document.title|escape }},"</i></b>{% if item.document.related %}, {{ item.document.relation }} {{ item.document.related  }}, "{{ item.document.related.title|escape }}"{% endif %}
				    {% endfor %}
				 {% endif %}
			      {% endblock %}
			      {% block intro_suffix %}{% endblock %}
			   </td>
			</tr>
			<tr valign="top">
			   <td width="100">{{ ipr.submitted_date }}</td>
			   <td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
			   <td><a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.title|escape }}"</a></td>
			</tr>
			{% for item in ipr.updates.all %}
			{% ifnotequal item ipr %}
			<tr valign="top">
			   <td width="100">{{ item.updated.submitted_date }}</td>
			   <td width="90"><li>ID # {{ item.updated.ipr_id }}</li></td>
			   <td>
			      IPR disclosure ID# {{ ipr.ipr_id }} <a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.title|escape }}"</a>
			      Updates <a href="{% url ietf.ipr.views.show ipr_id=item.ipr_id %}">{{ item.updated.title|escape }}</a>
			   </td>
			</tr>
			{% endifnotequal %}
			{% endfor %}
		     </tbody>
		     {% endfor %}
		  {% endblock %}
	       {% endif %}
	    </table>
	    {% endblock %}
	    <hr><br>

	    <a href="{% url ietf.ipr.search.search %}">IPR Search Main Page</a><br>
	    <a href="{% url ietf.ipr.views.showlist %}">IPR Disclosure Page</a>
	    <br>
{% endblock %}

