{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "ipr/search_result.html" %}
{% load ietf_filters %}
	    {% block search_result %}
	    <table cellpadding="1" cellspacing="0" border="0">
	       <tr><td colspan="3"><b>{% block search_header %}Working Group Search Result{% endblock %}</b></td></tr>
	       {% if not count %}
		  <tr>
		     <td></td>
		     <td colspan="2">
			<b>No IPR disclosures related to the <i>{{ q }}</i> working group have been submitted.</b>
		     </td>
		  </tr>
		  <tr><td colspan="3">Total number of IPR disclosures found: {{ count }} </td></tr>
	       {% else %}
		  <tr><td colspan="3">Total number of IPR disclosures found: {{ count }} </td></tr>

		  {% block iprlist %}
		     {% for doc in docs %}
		     <tbody bgcolor="#{% cycle dadada,eaeaea as bgcolor %}">
			<tr >
			   <td colspan="3">
			      IPR that is related to <b><i>{{ doc|rfcspace|lstrip:"0"|rfcnospace }}, "{{ doc.title|escape }}"{% if doc.related %}, {{ doc.relation }} {{ doc.related|rfcspace|lstrip:"0"|rfcnospace  }}, "{{ doc.related.title|escape }}"{% endif %}
			      </i></b> which is a product of Working Group <b><i>{{ q }}</i></b>
			   </td>
			</tr>
			{% if doc.iprs %}
			   {% for ipr in doc.iprs %}
			      <tr valign="top">
				 <td width="100">{{ ipr.submitted_date }}</td>
				 <td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
				 <td>
				    {% for item in ipr.updates.all %}
				       {% ifequal item.updated.status 1 %}
					  IPR disclosure ID# {{ item.updated.ipr_id }}, "<a href="{% url ietf.ipr.views.show item.updated.ipr_id %}">{{ item.updated.title|escape }}</a>" Updated by
				       {% endifequal %}
				    {% endfor %}
				    <a href="{% url ietf.ipr.views.show ipr.ipr_id %}">"{{ ipr.title|escape }}"</a>
				 </td>
			      </tr>
			   {% endfor %}
			{% else %}
			<tr>
			   <td></td>
			   <td colspan="2"><b>No IPR disclosures related to <i>{{ doc|rfcspace|lstrip:"0" }}</i> have been submitted</b></td>
			</tr>
			{% endif %}
		     </tbody>
		     {% endfor %}
		  {% endblock %}
	       {% endif %}
	    </table>
	    {% endblock %}
