datatracker/ietf/templates/ipr/search_result.html
2020-06-27 13:51:19 +00:00

93 lines
3.4 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load ietf_filters %}
{% load static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "jquery.tablesorter/css/theme.bootstrap.min.css" %}">
{% endblock %}
{% block title %}IPR disclosures{% endblock %}
{% block content %}
{% origin %}
{% include "ipr/search_form.html" %}
<h2>{% block search_header %}Patent owner/applicant search result{% endblock %}</h2>
{% block search_result %}
{% if not iprs %}
<p class="alert alert-info">
{% block search_failed %}No IPR disclosures have been submitted by <i>{{ q }}</i>.{% endblock %}
</p>
{% else %}
<p class="alert alert-info">
Total number of IPR disclosures found: <b>{{ iprs|length }}</b>.
</p>
<table class="table table-condensed table-striped tablesorter">
<thead><th>Date</th><th>ID</th><th>Statement</th></thead>
{% block iprlist %}
{% for ipr in iprs %}
<tbody>
{% if user|has_role:"Secretariat" %}{% ifchanged %}<tr><td colspan="3"><h3>{{ ipr.state.name }}</h3></td></tr>{% endifchanged %}{% endif %}
<tr>
<th class="warning" colspan="3">
{% block intro_prefix %}IPR that was submitted by <i>{{ q }}</i> and{% endblock %}
{% block related %}
{% with ipr.iprdocrel_set.all as iprdocrels %}
{% if not iprdocrels %}
is not related to a specific IETF contribution.
{% else %}
is related to
{% for item in iprdocrels %}
{% if forloop.last and forloop.counter > 1 %}and{% endif %}
<i>{{ item.formatted_name|rfcspace }} ("{{ item.document.document.title }}")</i>{% if not forloop.last and forloop.counter > 1 %},{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% endblock %}
{% block intro_suffix %}{% endblock %}
</th>
</tr>
</tbody>
<tbody>
<tr>
<td class="text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
<td>{{ ipr.id }}</td>
<td><a href="{% url "ietf.ipr.views.show" id=ipr.id %}">{{ ipr.title }}</a></td>
</tr>
{% for item in ipr.updates.all %}
{% if item != ipr %}
<tr>
<td class="text-nowrap">{{ item.target.time|date:"Y-m-d" }}</td>
<td>{{ item.target.id }}</td>
<td>
IPR disclosure #{{ ipr.id }}: <a href="{% url "ietf.ipr.views.show" id=ipr.id %}">{{ ipr.title }}</a>
<br>Updates: <a href="{% url "ietf.ipr.views.show" id=item.target.id %}">{{ item.target.title }}</a>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
{% endfor %}
{% endblock %}
</table>
{% endif %}
{% endblock %}
<p class="buttonlist">
<a class="btn btn-default" href="{% url "ietf.ipr.views.showlist" %}">Back to IPR disclosure page</a>
</p>
{% endblock %}
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
<script type="text/javascript" src="{% static 'ietf/js/ipr-search.js' %}"></script>
{% endblock %}