diff --git a/ietf/ipr/models.py b/ietf/ipr/models.py
index 8aef976d6..86257abdc 100644
--- a/ietf/ipr/models.py
+++ b/ietf/ipr/models.py
@@ -46,10 +46,10 @@ class IprLicensing(models.Model):
class IprDetail(models.Model):
ipr_id = models.AutoField(primary_key=True)
- p_h_legal_name = models.CharField("Patent Holder's Legal Name", blank=True, maxlength=255)
+ p_h_legal_name = models.CharField("Legal Name", blank=True, maxlength=255)
document_title = models.CharField(blank=True, maxlength=255)
- rfc_number = models.IntegerField(null=True, blank=True) # always NULL
- id_document_tag = models.IntegerField(null=True, blank=True) # always NULL
+ rfc_number = models.IntegerField(null=True, editable=False, blank=True) # always NULL
+ id_document_tag = models.IntegerField(null=True, editable=False, blank=True) # always NULL
other_designations = models.CharField(blank=True, maxlength=255)
p_applications = models.TextField(blank=True, maxlength=255)
date_applied = models.CharField(blank=True, maxlength=255)
@@ -69,14 +69,13 @@ class IprDetail(models.Model):
additional_old_url2 = models.CharField(blank=True, maxlength=255)
country = models.CharField(blank=True, maxlength=100)
p_notes = models.TextField(blank=True)
- third_party = models.BooleanField()
- lic_opt_a_sub = models.IntegerField(choices=STDONLY_CHOICES)
- lic_opt_b_sub = models.IntegerField(choices=STDONLY_CHOICES)
- lic_opt_c_sub = models.IntegerField(choices=STDONLY_CHOICES)
- generic = models.BooleanField()
- # I don't understand selectowned, it looks like it should be a boolean field.
+ third_party = models.BooleanField(editable=False)
+ lic_opt_a_sub = models.IntegerField(editable=False, choices=STDONLY_CHOICES)
+ lic_opt_b_sub = models.IntegerField(editable=False, choices=STDONLY_CHOICES)
+ lic_opt_c_sub = models.IntegerField(editable=False, choices=STDONLY_CHOICES)
+ generic = models.BooleanField(editable=False)
selectowned = models.IntegerField(null=True, blank=True, choices=SELECT_CHOICES)
- comply = models.BooleanField()
+ comply = models.BooleanField(editable=False)
lic_checkbox = models.BooleanField()
update_notified_date = models.DateField(null=True, blank=True)
def __str__(self):
@@ -103,16 +102,16 @@ class IprContact(models.Model):
('3', 'Submitter Contact'),
)
contact_id = models.AutoField(primary_key=True)
- ipr = models.ForeignKey(IprDetail, raw_id_admin=True, related_name="contact")
- contact_type = models.IntegerField(choices=TYPE_CHOICES)
+ ipr = models.ForeignKey(IprDetail, raw_id_admin=True, editable=False, related_name="contact")
+ contact_type = models.IntegerField(editable=False, choices=TYPE_CHOICES)
name = models.CharField(maxlength=255)
title = models.CharField(blank=True, maxlength=255)
department = models.CharField(blank=True, maxlength=255)
+ address1 = models.CharField(blank=True, maxlength=255)
+ address2 = models.CharField(blank=True, maxlength=255)
telephone = models.CharField(maxlength=25)
fax = models.CharField(blank=True, maxlength=25)
email = models.CharField(maxlength=255)
- address1 = models.CharField(blank=True, maxlength=255)
- address2 = models.CharField(blank=True, maxlength=255)
def __str__(self):
return self.name
class Meta:
diff --git a/ietf/ipr/urls.py b/ietf/ipr/urls.py
index 6cf1caccb..f58bc0223 100644
--- a/ietf/ipr/urls.py
+++ b/ietf/ipr/urls.py
@@ -14,6 +14,7 @@ queryset = models.IprDetail.objects.all()
archive = {'queryset':queryset, 'date_field': 'submitted_date', 'allow_empty':True }
urlpatterns += patterns('django.views.generic.date_based',
+ (r'^by-date/$', 'archive_index', archive),
(r'^(?P
+ {% block section1_data %}
@@ -128,6 +131,7 @@
Patent Holder's Contact for License Application
+ {% block section2_data %}
Legal Name: {{ ipr.p_h_legal_name }}
+ {% endblock %}
Name: {{ ipr.holder_contact.name }} Title: {{ ipr.holder_contact.title }}
@@ -136,13 +140,14 @@
Department: {{ ipr.holder_contact.department }} Telephone: {{ ipr.holder_contact.telephone }} Fax: {{ ipr.holder_contact.fax }}
+ {% endblock %}
{% endblock %}
{% block section3 %}
- {% if ipr.unbound_form or not ipr.old_ipr_url %}
+ {% if not ipr.is_bound or not ipr.old_ipr_url %}
Email: {{ ipr.holder_contact.email }}
{% else %}
@@ -180,29 +187,23 @@
IETF Document or Other Contribution to Which this IPR Disclosure Relates:
- {% if ipr.unbound_form %}
-
@@ -151,6 +156,7 @@
Contact Information for the IETF Participant Whose Personal Belief Triggered this Disclosure:
+ {% block section3_data %}
{% if ipr.unbond_form or ipr.ietf_contact.name %}
Name: {{ ipr.ietf_contact.name }}
@@ -163,6 +169,7 @@
{% else %}
Title: {{ ipr.ietf_contact.title }}
{% endif %}
+ {% endblock %}
No information submitted
- {% else %}
+ {% block section4_data %}
{% for rfc in ipr.rfcs.all %}
RFC Number(s) (Numeric value only): {{ ipr.rfclist }}
{% endfor %}
- {% endif %}
-
- {% if ipr.unbound_form %}
- RFC {{ rfc.rfc_number.rfc_number }}: "{{ rfc.rfc_number.rfc_name }}"
- {% else %}
+
{% for draft in ipr.drafts.all %}
I-D filename(s) (draft-...): {{ ipr.draftlist }}
{% endfor %}
- {% endif %}
- {% if ipr.unbound_form or ipr.other_designations %}
+ {% if ipr.other_designations %}
Internet-Draft: "{{ draft.document.id_document_name }}"
({{ draft.document.filename }}-{{ draft.document.revision }})
- {% endif %}
+ {% endif %}
+ {% endblock %}
{% endblock %}
- {% if ipr.unbound_form or not ipr.old_ipr_url %}
+ {% if not ipr.is_bound or not ipr.old_ipr_url %}
{% block section5 %}
Designations for Other Contributions: {{ ipr.other_designations }}
@@ -214,34 +215,24 @@
applications required to be disclosed by Section 6 of RFC 3979)
- {% if ipr.unbound_form or ipr.p_applications or ipr.p_notes %}
-
{% endblock %}
@@ -290,18 +278,13 @@
specification, is as follows(select one licensing declaration option only):
+ {% block section6_data %}
-
-
- A. For granted patents or published pending patent applications,
- please provide the following information:
-
- Patent, Serial, Publication, Registration,
- or Application/File number(s): {{ ipr.p_applications }}
- Date(s) granted or applied for: {{ ipr.date_applied }}
- {% if ipr.unbound_form %}
- Country: {{ ipr.country }}
- {% else %}
- Additional Notes: {{ ipr.p_notes }}
- {% endif %}
- Additional Notes: {{ ipr.p_notes|escape|linebreaks }}
-
- {% if ipr.unbound_form %}
-
- B. Does this disclosure relate to an unpublished pending patent
- application?:
- {{ ipr.get_selecttype_display }}
-
- {% endif %}
+ {% block section5_data %}
+ {% if ipr.p_applications or ipr.p_notes %}
+
-
- {{ ipr.selecttype }}
-
-
+
+
+ A. For granted patents or published pending patent applications,
+ please provide the following information:
+
+ Patent, Serial, Publication, Registration,
+ or Application/File number(s): {{ ipr.p_applications }}
+ Date(s) granted or applied for: {{ ipr.date_applied }}
+ Country: {{ ipr.country }}
+ Additional Notes: {{ ipr.p_notes|escape|linebreaks }}
+
{% block clause5c %}
+ B. Does this disclosure relate to an unpublished pending patent
+ application?:
+ {{ ipr.get_selecttype_display }}
+
- {% if ipr.unbound_form %}
-
@@ -253,19 +244,16 @@
covered:
+ {% if ipr.discloser_identify %}
+ {{ ipr.discloser_identify }}
{% else %}
- {% if ipr.discloser_identify %}
- {{ ipr.discloser_identify|escape|linebreaks }}
- {% else %}
- {{ ipr.discloser_identify|escape|linebreaks }}
- {% endif %}
+ No information submitted
{% endif %}
{% endblock %}
{% else %}
No information submitted
{% endif %}
+ {% endblock %}
This disclosure relates to an unpublished pending patent application.
- {% if ipr.unbound_form %}
- {{ ipr.licensing_option }}
- {{ ipr.stdonly_license }}
- This licensing declaration is limited solely to standards-track IETF documents.
- {% else %}
{{ ipr.get_licensing_option_display }}
{{ ipr.get_lic_opt_a_sub_display }}
{{ ipr.get_lic_opt_b_sub_display }}
{{ ipr.get_lic_opt_c_sub_display }}
- {% endif %}
@@ -309,20 +292,15 @@
Licensing information, comments, notes, or URL for further information:
- {% if ipr.unbound_form %}
-
+ {% if ipr.comments %}
+ {{ ipr.comments }}
{% else %}
- {% if ipr.comments %}
- {{ ipr.comments|escape|linebreaks }}
- {% else %}
- {{ ipr.comments|escape|linebreaks }}
- {% endif %}
+ No information submitted
{% endif %}
- {% if ipr.unbound_form or ipr.lic_checkbox %}
+ {% if ipr.lic_checkbox %}
No information submitted
{% endif %}
+ {% endblock %}
- {% if ipr.unbound_form %} {{ ipr.lic_checkbox }} {% endif %}
The individual submitting this template represents and warrants that all
terms and conditions that must be satisfied for implementers of any
covered IETF specification to obtain a license have been disclosed in this
@@ -330,6 +308,7 @@
- {% if ipr.unbound_form or ipr.submitter.name %}
+ {% block section7_data %}
+ {% if ipr.submitter.name %}
Note: The individual submitting this template represents and warrants
@@ -352,7 +331,8 @@
IETF Participant in Section III above)
Name: {{ ipr.submitter.name }} Title: {{ ipr.submitter.title }}
@@ -364,6 +344,7 @@
{% else %}
Department: {{ ipr.submitter.department }}
{% endif %}
+ {% endblock %}
{% endblock %}
@@ -378,19 +359,20 @@
Other Notes:
- {% if ipr.unbound_form %}
- No information submitted
- {% else %}
+ {% block section8_data %}
{% if ipr.other_notes %}
{{ ipr.other_notes }}
{% else %}
{{ ipr.other_notes|escape|linebreaks }}
{% endif %}
- {% endif %}
+ {% endblock %}
{% endblock %}
{% endif %}
{{ debug }}
+
+ {% block bot_info %}
+ {% endblock %}
{% endblock %}
diff --git a/ietf/templates/ipr/iprdetail_archive.html b/ietf/templates/ipr/iprdetail_archive.html
index a2de8b86a..7319bd588 100644
--- a/ietf/templates/ipr/iprdetail_archive.html
+++ b/ietf/templates/ipr/iprdetail_archive.html
@@ -21,7 +21,7 @@
No information submitted Archives by Year
{% for year in date_list %}
-
diff --git a/ietf/templates/ipr/new.html b/ietf/templates/ipr/new.html
index 1dd825f1c..19fbc2ff8 100644
--- a/ietf/templates/ipr/new.html
+++ b/ietf/templates/ipr/new.html
@@ -53,4 +53,18 @@