* Added alternating colours for the entry rows in the form tables

* Fixed yes/no radio button layout
 * Fixed submitter contact information copying for generic form
 - Legacy-Id: 143
This commit is contained in:
Henrik Levkowetz 2007-05-21 19:07:13 +00:00
parent f9c6c5c7d3
commit d7b47093a7
6 changed files with 208 additions and 132 deletions

View file

@ -7,7 +7,7 @@ urlpatterns = patterns('',
(r'^ipr-(?P<ipr_id>\d+)/$', views.show), (r'^ipr-(?P<ipr_id>\d+)/$', views.show),
(r'^update/$', views.updatelist), (r'^update/$', views.updatelist),
(r'^update/(?P<ipr_id>\d+)/$', views.update), (r'^update/(?P<ipr_id>\d+)/$', views.update),
(r'^new-(?P<type>(specific|generic|third_party))/$', views.new), (r'^new-(?P<type>(specific|generic|third-party))/$', views.new),
) )
queryset = models.IprDetail.objects.all() queryset = models.IprDetail.objects.all()

View file

@ -89,6 +89,7 @@ def new(request, type):
rfclist = forms.CharField(required=False) rfclist = forms.CharField(required=False)
draftlist = forms.CharField(required=False) draftlist = forms.CharField(required=False)
stdonly_license = forms.BooleanField(required=False) stdonly_license = forms.BooleanField(required=False)
hold_contact_is_submitter = forms.BooleanField(required=False)
ietf_contact_is_submitter = forms.BooleanField(required=False) ietf_contact_is_submitter = forms.BooleanField(required=False)
if "holder_contact" in section_list: if "holder_contact" in section_list:
holder_contact = ContactForm(prefix="hold") holder_contact = ContactForm(prefix="hold")
@ -102,7 +103,12 @@ def new(request, type):
self.base_fields[contact] = ContactForm(prefix=contact[:4], *args, **kw) self.base_fields[contact] = ContactForm(prefix=contact[:4], *args, **kw)
self.base_fields["rfclist"] = forms.CharField(required=False) self.base_fields["rfclist"] = forms.CharField(required=False)
self.base_fields["draftlist"] = forms.CharField(required=False) self.base_fields["draftlist"] = forms.CharField(required=False)
self.base_fields["ietf_contact_is_submitter"] = forms.BooleanField(required=False) if "holder_contact" in section_list:
self.base_fields["hold_contact_is_submitter"] = forms.BooleanField(required=False)
if "ietf_contact" in section_list:
self.base_fields["ietf_contact_is_submitter"] = forms.BooleanField(required=False)
self.base_fields["stdonly_license"] = forms.BooleanField(required=False)
BaseIprForm.__init__(self, *args, **kw) BaseIprForm.__init__(self, *args, **kw)
# Special validation code # Special validation code
def clean(self): def clean(self):
@ -110,19 +116,18 @@ def new(request, type):
# Submitter form filled in or 'same-as-ietf-contact' marked # Submitter form filled in or 'same-as-ietf-contact' marked
# Only one of rfc, draft, and other info fields filled in # Only one of rfc, draft, and other info fields filled in
# RFC exists or draft exists and has right rev. or ... # RFC exists or draft exists and has right rev. or ...
if self.ietf_contact_is_submitter:
self.submitter = self.ietf_contact
pass pass
if request.method == 'POST': if request.method == 'POST':
data = request.POST.copy() data = request.POST.copy()
if "ietf_contact_is_submitter" in data: for src in ["hold", "ietf"]:
for subfield in ["name", "title", "department", "address1", "address2", "telephone", "fax", "email"]: if "%s_contact_is_submitter" % src in data:
try: for subfield in ["name", "title", "department", "address1", "address2", "telephone", "fax", "email"]:
data["subm_%s"%subfield] = data["ietf_%s"%subfield] try:
except Exception, e: data[ "subm_%s" % subfield ] = data[ "%s_%s" % (src,subfield) ]
#log("Caught exception: %s"%e) except Exception, e:
pass #log("Caught exception: %s"%e)
pass
form = IprForm(data) form = IprForm(data)
if form.ietf_contact_is_submitter: if form.ietf_contact_is_submitter:
form.ietf_contact_is_submitter_checked = "checked" form.ietf_contact_is_submitter_checked = "checked"

View file

@ -17,7 +17,7 @@ section_table = {
"disclosure_type": "Generic", "form_legend": False, "disclosure_type": "Generic", "form_legend": False,
"per_rfc_disclosure": False, "also_specific": True, "per_rfc_disclosure": False, "also_specific": True,
}, },
"third_party": {"index": False, "title": True, "third_party": True, "third-party": {"index": False, "title": True, "third_party": True,
"legacy_intro": False, "new_intro": True, "form_intro": False, "legacy_intro": False, "new_intro": True, "form_intro": False,
"holder": True, "holder_contact": False, "ietf_contact": True, "holder": True, "holder_contact": False, "ietf_contact": True,
"ietf_doc": True, "patent_info": True, "licensing": False, "ietf_doc": True, "patent_info": True, "licensing": False,

View file

@ -1,6 +1,9 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}IPR Details{% endblock %} {% block title %}IPR Details{% endblock %}
{% block body_attributes %}onload="toggle_submitter_info()"{% endblock %} {% block body_attributes %}
{% if section_list.holder_contact %}onload="toggle_submitter_info('holder')"{% endif %}
{% if section_list.ietf_contact %}onload="toggle_submitter_info('ietf')"{% endif %}
{% endblock %}
{% block content %} {% block content %}
{% include "ipr/style.html" %} {% include "ipr/style.html" %}
@ -168,16 +171,16 @@
</blockquote> </blockquote>
{% if section_list.holder %} {% if section_list.holder %}
<blockquote class="{% cycle odd,even as parity %}" style="margin-top: 0px; "> <blockquote class="{% cycle odd,even as field_parity %}" style="margin-top: 0px; ">
<table border="0" cellpadding="0" cellspacing="0" class="ipr"> <table border="0" cellpadding="0" cellspacing="0" class="ipr">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan=2> <th colspan=2>
{% cycle I,II,III,IV,V,VI,VII,VIII as section %}. {% cycle I,II,III,IV,V,VI,VII,VIII as section %}.
{% ifequal section_list.disclosure_type "Third Party" %}Possible{% endifequal %} {% ifequal section_list.disclosure_type "Third Party" %}Possible{% endifequal %}
Patent Holder/Applicant ("Patent Holder") Patent Holder/Applicant ("Patent Holder")
</th> </th>
</tr> </tr>
<tr> <tr class="{% cycle row_parity %}">
{% block section1_data %} {% block section1_data %}
<td class="fixwidth">Legal Name:</td> <td><b> {{ ipr.p_h_legal_name }} </b></td> <td class="fixwidth">Legal Name:</td> <td><b> {{ ipr.p_h_legal_name }} </b></td>
{% endblock %} {% endblock %}
@ -188,46 +191,46 @@
{% if section_list.holder_contact %} {% if section_list.holder_contact %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr person"> <table border="0" cellpadding="0" cellspacing="0" class="ipr person">
<tr><th colspan="2" > <tr class="{% cycle dark,light as row_parity %}"><th colspan="2" >
{% cycle section %}. {% cycle section %}.
Patent Holder's Contact for License Application Patent Holder's Contact for License Application
</th> </th>
</tr> </tr>
<tr><td class="fixwidth">Name:</td> <td><b>{{ ipr.holder_contact.name }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Name:</td> <td><b>{{ ipr.holder_contact.name }}</b></td></tr>
<tr><td class="fixwidth">Title:</td> <td><b>{{ ipr.holder_contact.title }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Title:</td> <td><b>{{ ipr.holder_contact.title }}</b></td></tr>
<tr><td class="fixwidth">Department:</td> <td><b>{{ ipr.holder_contact.department }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Department:</td> <td><b>{{ ipr.holder_contact.department }}</b></td></tr>
<tr><td class="fixwidth">Address1:</td> <td><b>{{ ipr.holder_contact.address1 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address1:</td> <td><b>{{ ipr.holder_contact.address1 }}</b></td></tr>
<tr><td class="fixwidth">Address2:</td> <td><b>{{ ipr.holder_contact.address2 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address2:</td> <td><b>{{ ipr.holder_contact.address2 }}</b></td></tr>
<tr><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.holder_contact.telephone }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.holder_contact.telephone }}</b></td></tr>
<tr><td class="fixwidth">Fax:</td> <td><b>{{ ipr.holder_contact.fax }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Fax:</td> <td><b>{{ ipr.holder_contact.fax }}</b></td></tr>
<tr><td class="fixwidth">Email:</td> <td><b>{{ ipr.holder_contact.email }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Email:</td> <td><b>{{ ipr.holder_contact.email }}</b></td></tr>
</table> </table>
</blockquote> </blockquote>
{% endif %} {% endif %}
{% if section_list.ietf_contact %} {% if section_list.ietf_contact %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr person"> <table border="0" cellpadding="0" cellspacing="0" class="ipr person">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% cycle section %}. {% cycle section %}.
Contact Information for the IETF Participant Whose Personal Belief Triggered this Disclosure: Contact Information for the IETF Participant Whose Personal Belief Triggered this Disclosure:
</th> </th>
</tr> </tr>
{% if ipr.ietf_contact.name %} {% if ipr.ietf_contact.name %}
<tr><td class="fixwidth">Name:</td> <td><b>{{ ipr.ietf_contact.name }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Name:</td> <td><b>{{ ipr.ietf_contact.name }}</b></td></tr>
<tr><td class="fixwidth">Title:</td> <td><b>{{ ipr.ietf_contact.title }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Title:</td> <td><b>{{ ipr.ietf_contact.title }}</b></td></tr>
<tr><td class="fixwidth">Department:</td> <td><b>{{ ipr.ietf_contact.department }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Department:</td> <td><b>{{ ipr.ietf_contact.department }}</b></td></tr>
<tr><td class="fixwidth">Address1:</td> <td><b>{{ ipr.ietf_contact.address1 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address1:</td> <td><b>{{ ipr.ietf_contact.address1 }}</b></td></tr>
<tr><td class="fixwidth">Address2:</td> <td><b>{{ ipr.ietf_contact.address2 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address2:</td> <td><b>{{ ipr.ietf_contact.address2 }}</b></td></tr>
<tr><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.ietf_contact.telephone }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.ietf_contact.telephone }}</b></td></tr>
<tr><td class="fixwidth">Fax:</td> <td><b>{{ ipr.ietf_contact.fax }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Fax:</td> <td><b>{{ ipr.ietf_contact.fax }}</b></td></tr>
<tr><td class="fixwidth">Email:</td> <td><b>{{ ipr.ietf_contact.email }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Email:</td> <td><b>{{ ipr.ietf_contact.email }}</b></td></tr>
{% else %} {% else %}
<tr><td colspan="2"><i>No information submitted</td></tr> <tr class="{% cycle row_parity %}"><td colspan="2"><i>No information submitted</td></tr>
{% endif %} {% endif %}
</table> </table>
</blockquote> </blockquote>
@ -235,9 +238,9 @@
{% if section_list.ietf_doc %} {% if section_list.ietf_doc %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr"> <table border="0" cellpadding="0" cellspacing="0" class="ipr">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% if section_list.form_legend %}<span class="required">*</span>{% endif %} {% if section_list.form_legend %}<span class="required">*</span>{% endif %}
{% cycle section %}. {% cycle section %}.
@ -245,30 +248,30 @@
</th> </th>
</tr> </tr>
{% if ipr.rfclist %} {% if ipr.rfclist %}
<tr><td class="fixwidth">RFC Numbers:</td><td><b>{{ ipr.rfclist }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">RFC Numbers:</td><td><b>{{ ipr.rfclist }}</b></td></tr>
{% else %} {% else %}
{% for rfc in ipr.rfcs.all %} {% for rfc in ipr.rfcs.all %}
<tr><td class="fixwidth"><b>RFC {{ rfc.rfc_number.rfc_number }}:</b></td><td><b>"{{ rfc.rfc_number.rfc_name }}"</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth"><b>RFC {{ rfc.rfc_number.rfc_number }}:</b></td><td><b>"{{ rfc.rfc_number.rfc_name }}"</b></td></tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if ipr.draftlist %} {% if ipr.draftlist %}
<tr><td class="fixwidth">I-D Filenames (draft-...):</td><td><b>{{ ipr.draftlist }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">I-D Filenames (draft-...):</td><td><b>{{ ipr.draftlist }}</b></td></tr>
{% else %} {% else %}
{% for draft in ipr.drafts.all %} {% for draft in ipr.drafts.all %}
<tr><td class="fixwidth">Internet-Draft:</td><td><b>"{{ draft.document.id_document_name }}"<br />(<tt><big>{{ draft.document.filename }}-{{ draft.document.revision }}</big></tt>)</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Internet-Draft:</td><td><b>"{{ draft.document.id_document_name }}"<br />(<tt><big>{{ draft.document.filename }}-{{ draft.document.revision }}</big></tt>)</b></td></tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if ipr.other_designations %} {% if ipr.other_designations %}
<tr><td class="fixwidth">Designations for Other Contributions:</td><td><b>{{ ipr.other_designations }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Designations for Other Contributions:</td><td><b>{{ ipr.other_designations }}</b></td></tr>
{% endif %} {% endif %}
</table> </table>
</blockquote> </blockquote>
{% endif %} {% endif %}
{% if section_list.patent_info %} {% if section_list.patent_info %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr"> <table border="0" cellpadding="0" cellspacing="0" class="ipr">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% cycle section %}. {% cycle section %}.
Disclosure of Patent Information (i.e., patents or patent Disclosure of Patent Information (i.e., patents or patent
@ -276,29 +279,39 @@
</th> </th>
</tr> </tr>
{% if ipr.p_applications or ipr.p_notes %} {% if ipr.p_applications or ipr.p_notes %}
<tbody class="{% cycle row_parity %}">
<tr> <tr>
<td colspan="2"><i> <td colspan="2"><i>
A. For granted patents or published pending patent applications, A. For granted patents or published pending patent applications,
please provide the following information:</i></td> please provide the following information:</i></td>
</tr> </tr>
<tr><td >Patent, Serial, Publication, Registration, <tr><td class="fixwidth">Patent, Serial, Publication, Registration,
or Application/File number(s): </td><td><b>{{ ipr.p_applications }}</b></td></tr> or Application/File number(s): </td><td><b>{{ ipr.p_applications }}</b></td></tr>
<tr><td>Date(s) granted or applied for: </td><td><b>{{ ipr.date_applied }}</b></td></tr> </tbody>
<tr><td>Country: </td><td><b>{{ ipr.country }}</b></td></tr> <tr class="{% cycle row_parity %}"><td>Date(s) granted or applied for: </td><td><b>{{ ipr.date_applied }}</b></td></tr>
<tr><td>Additional Notes: </td><td><b>{{ ipr.p_notes }}</b></td></tr> <tr class="{% cycle row_parity %}"><td>Country: </td><td><b>{{ ipr.country }}</b></td></tr>
<tr> <tr class="{% cycle row_parity %}"><td>Additional Notes: </td><td><b>{{ ipr.p_notes }}</b></td></tr>
<td colspan="2"><i> <tr class="{% cycle row_parity %}">
B. Does this disclosure relate to an unpublished pending patent <td colspan="2">
application?: </i> <i>
<b>{{ ipr.selecttype }}</b> B. Does this disclosure relate to an unpublished pending patent
</tr> application?:
</i>
<div class="inline">Select one: {{ ipr.selecttype }}</div>
</td>
</tr>
<tbody class="{% cycle row_parity %}">
{% if section_list.generic %} {% if section_list.generic %}
<tr> <tr class="{% cycle row_parity %}">
<td colspan="2"><i>C. Does this disclosure apply to all IPR owned by <td colspan="2">
the submitter?:</i> <b>{{ ipr.selectowned }}</b></td> <i>C. Does this disclosure apply to all IPR owned by
the submitter?:
</i>
<div class="inline">Select one: {{ ipr.selectowned }}</div>
</td>
</tr> </tr>
{% else %} {% else %}
<tr> <tr class="{% cycle row_parity %}">
<td colspan="2"><i> <td colspan="2"><i>
C. If an Internet-Draft or RFC includes multiple parts and it is not C. If an Internet-Draft or RFC includes multiple parts and it is not
reasonably apparent which part of such Internet-Draft or RFC is alleged reasonably apparent which part of such Internet-Draft or RFC is alleged
@ -309,14 +322,16 @@
</td> </td>
</tr> </tr>
{% if ipr.discloser_identify %} {% if ipr.discloser_identify %}
<tr><td class="fixwidth"></td><td><b>{{ ipr.discloser_identify }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth"></td><td><b>{{ ipr.discloser_identify }}</b></td></tr>
{% else %} {% else %}
<tr><td class="fixwidth"></td><td></span><i>No information submitted</i></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth"></td><td></span><i>No information submitted</i></td></tr>
{% endif %} {% endif %}
{% endif %} {% endif %}
</tbody>
{% else %} {% else %}
<tr><td class="fixwidth"></td><td><b>This disclosure relates to an unpublished pending patent application.</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth"></td><td><b>This disclosure relates to an unpublished pending patent application.</b></td></tr>
{% endif %} {% endif %}
</table> </table>
</blockquote> </blockquote>
{% endif %} {% endif %}
@ -324,14 +339,15 @@
{% if section_list.licensing %} {% if section_list.licensing %}
<!-- Not to be shown for third-party disclosures --> <!-- Not to be shown for third-party disclosures -->
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr"> <table border="0" cellpadding="0" cellspacing="0" class="ipr">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% cycle section %}. {% cycle section %}.
Licensing Declaration Licensing Declaration
</th> </th>
</tr> </tr>
<tbody class="{% cycle row_parity %}">
<tr> <tr>
<td colspan="2"><i> The Patent Holder states that its position with respect <td colspan="2"><i> The Patent Holder states that its position with respect
to licensing any patent claims contained in the patent(s) or patent to licensing any patent claims contained in the patent(s) or patent
@ -343,24 +359,35 @@
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<b>{{ ipr.licensing_option }}<br/> <b>{{ ipr.licensing_option }}
{{ ipr.get_lic_opt_a_sub_display }} {{ ipr.get_lic_opt_a_sub_display }}
{{ ipr.get_lic_opt_b_sub_display }} {{ ipr.get_lic_opt_b_sub_display }}
{{ ipr.get_lic_opt_c_sub_display }}</b> {{ ipr.get_lic_opt_c_sub_display }}</b>
</td> </td>
</tr> </tr>
<tr> </tbody>
<td colspan="2"> {% if ipr.stdonly_license %}
<i>Licensing information, comments, notes, or URL for further information:</i> <tr class="{% cycle row_parity %}">
<td></td><td>
{{ ipr.stdonly_license }}
Above licensing declaration is limited solely to standards-track IETF documents.
</td> </td>
</tr> </tr>
{% if ipr.comments %}
<tr><td class="fixwidth"> </td><td><b>{{ ipr.comments }}</b></td></tr>
{% else %}
<tr><td class="fixwidth"> </td><td><i>No information submitted</i></td></tr>
{% endif %} {% endif %}
<tbody class="{% cycle row_parity %}">
<tr>
<td colspan="2">
<i>Licensing information, comments, notes, or URL for further information:</i>
</td>
</tr>
{% if ipr.comments %}
<tr ><td class="fixwidth"> </td><td><b>{{ ipr.comments }}</b></td></tr>
{% else %}
<tr ><td class="fixwidth"> </td><td><i>No information submitted</i></td></tr>
{% endif %}
</tbody>
{% if ipr.lic_checkbox %} {% if ipr.lic_checkbox %}
<tr> <tr class="{% cycle row_parity %}">
<td colspan="2"> <td colspan="2">
{% ifnotequal ipr.lic_checkbox 1 %}{{ ipr.lic_checkbox }}{% endifnotequal %} {% ifnotequal ipr.lic_checkbox 1 %}{{ ipr.lic_checkbox }}{% endifnotequal %}
The individual submitting this template represents and warrants that all The individual submitting this template represents and warrants that all
@ -370,7 +397,7 @@
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
<tr> <tr class="{% cycle row_parity %}">
<td colspan="2"> <td colspan="2">
<b><i>Note: The individual submitting this template represents and warrants <b><i>Note: The individual submitting this template represents and warrants
that he or she is authorized by the Patent Holder to agree to the that he or she is authorized by the Patent Holder to agree to the
@ -383,34 +410,46 @@
{% if section_list.submitter %} {% if section_list.submitter %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr person"> <table border="0" cellpadding="0" cellspacing="0" class="ipr person">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% cycle section %}. {% cycle section %}.
Contact Information of Submitter of this Form (if different from Contact Information of Submitter of this Form (if different from
IETF Participant in Section III above) Contact Information above)
</th> </th>
</tr> </tr>
{% if ipr.submitter.name %} {% if ipr.submitter.name %}
{% if ipr.ietf_contact_is_submitter %} {% if ipr.ietf_contact_is_submitter %}
<tr> <tbody class="{% cycle row_parity %}">
<td colspan="2"> {% if section_list.holder_contact %}
<tr>
<td colspan="2">
Same as in Section II above:
<input type="checkbox" name="hold_contact_is_submitter" onChange="toggle_submitter_info('holder');" {{ ipr.hold_contact_is_submitter_checked }} >
</td>
</tr>
{% endif %}
{% if section_list.ietf_contact %}
<tr>
<td colspan="2">
Same as in Section III above: Same as in Section III above:
<input type="checkbox" name="ietf_contact_is_submitter" onChange="toggle_submitter_info();" {{ ipr.ietf_contact_is_submitter_checked }}></td> <input type="checkbox" name="ietf_contact_is_submitter" onChange="toggle_submitter_info('ietf');" {{ ipr.ietf_contact_is_submitter_checked }} />
</td> </td>
</tr> </tr>
{% endif %}
</tbody>
{% endif %} {% endif %}
<tr><td class="fixwidth">Name:</td> <td><b>{{ ipr.submitter.name }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Name:</td> <td><b>{{ ipr.submitter.name }}</b></td></tr>
<tr><td class="fixwidth">Title:</td> <td><b>{{ ipr.submitter.title }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Title:</td> <td><b>{{ ipr.submitter.title }}</b></td></tr>
<tr><td class="fixwidth">Department:</td> <td><b>{{ ipr.submitter.department }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Department:</td> <td><b>{{ ipr.submitter.department }}</b></td></tr>
<tr><td class="fixwidth">Address1:</td> <td><b>{{ ipr.submitter.address1 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address1:</td> <td><b>{{ ipr.submitter.address1 }}</b></td></tr>
<tr><td class="fixwidth">Address2:</td> <td><b>{{ ipr.submitter.address2 }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Address2:</td> <td><b>{{ ipr.submitter.address2 }}</b></td></tr>
<tr><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.submitter.telephone }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Telephone:</td> <td><b>{{ ipr.submitter.telephone }}</b></td></tr>
<tr><td class="fixwidth">Fax:</td> <td><b>{{ ipr.submitter.fax }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Fax:</td> <td><b>{{ ipr.submitter.fax }}</b></td></tr>
<tr><td class="fixwidth">Email:</td> <td><b>{{ ipr.submitter.email }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth">Email:</td> <td><b>{{ ipr.submitter.email }}</b></td></tr>
{% else %} {% else %}
<tr><td colspan="2"><i>No information submitted</td></tr> <tr class="{% cycle row_parity %}"><td colspan="2"><i>No information submitted</td></tr>
{% endif %} {% endif %}
</table> </table>
</blockquote> </blockquote>
@ -418,18 +457,18 @@
{% if section_list.notes %} {% if section_list.notes %}
<blockquote class="{% cycle parity %}"> <blockquote class="{% cycle field_parity %}">
<table border="0" cellpadding="0" cellspacing="0" class="ipr"> <table border="0" cellpadding="0" cellspacing="0" class="ipr">
<tr> <tr class="{% cycle dark,light as row_parity %}">
<th colspan="2" > <th colspan="2" >
{% cycle section %}. {% cycle section %}.
Other Notes: Other Notes:
</th> </th>
</tr> </tr>
{% if ipr.other_notes %} {% if ipr.other_notes %}
<tr><td class="fixwidth"> </td><td><b>{{ ipr.other_notes }}</b></td></tr> <tr class="{% cycle row_parity %}"><td class="fixwidth"> </td><td><b>{{ ipr.other_notes }}</b></td></tr>
{% else %} {% else %}
<tr><td colspan="2"><i>No information submitted</i></td></tr> <tr class="{% cycle row_parity %}"><td colspan="2"><i>No information submitted</i></td></tr>
{% endif %} {% endif %}
</table> </table>
</blockquote> </blockquote>

View file

@ -1,34 +1,60 @@
<script type="text/javascript"> <script type="text/javascript">
function toggle_submitter_info () { function toggle_submitter_info (src) {
var checked = document.form1.ietf_contact_is_submitter.checked; var checked = false;
if (src == 'holder') {
checked = document.form1.hold_contact_is_submitter.checked;
if (checked) { if (checked) {
document.form1.subm_name.value = document.form1.ietf_name.value; document.form1.ietf_contact_is_submitter.checked = false;
document.form1.subm_title.value = document.form1.ietf_title.value; document.form1.subm_name.value = document.form1.hold_name.value;
document.form1.subm_department.value = document.form1.ietf_department.value; document.form1.subm_title.value = document.form1.hold_title.value;
document.form1.subm_telephone.value = document.form1.ietf_telephone.value; document.form1.subm_department.value = document.form1.hold_department.value;
document.form1.subm_fax.value = document.form1.ietf_fax.value; document.form1.subm_telephone.value = document.form1.hold_telephone.value;
document.form1.subm_email.value = document.form1.ietf_email.value; document.form1.subm_fax.value = document.form1.hold_fax.value;
document.form1.subm_address1.value = document.form1.ietf_address1.value; document.form1.subm_email.value = document.form1.hold_email.value;
document.form1.subm_address2.value = document.form1.ietf_address2.value; document.form1.subm_address1.value = document.form1.hold_address1.value;
document.form1.subm_address2.value = document.form1.hold_address2.value;
} else { } else {
document.form1.subm_name.value = ""; document.form1.subm_name.value = "";
document.form1.subm_title.value = ""; document.form1.subm_title.value = "";
document.form1.subm_department.value = ""; document.form1.subm_department.value = "";
document.form1.subm_telephone.value = ""; document.form1.subm_telephone.value = "";
document.form1.subm_fax.value = ""; document.form1.subm_fax.value = "";
document.form1.subm_email.value = ""; document.form1.subm_email.value = "";
document.form1.subm_address1.value = ""; document.form1.subm_address1.value = "";
document.form1.subm_address2.value = ""; document.form1.subm_address2.value = "";
} }
document.form1.subm_name.disabled = checked; } else if (src == 'ietf') {
document.form1.subm_title.disabled = checked; checked = document.form1.ietf_contact_is_submitter.checked;
document.form1.subm_department.disabled = checked; if (checked) {
document.form1.subm_telephone.disabled = checked; document.form1.hold_contact_is_submitter.checked = false;
document.form1.subm_fax.disabled = checked; document.form1.subm_name.value = document.form1.ietf_name.value;
document.form1.subm_email.disabled = checked; document.form1.subm_title.value = document.form1.ietf_title.value;
document.form1.subm_address1.disabled = checked; document.form1.subm_department.value = document.form1.ietf_department.value;
document.form1.subm_address2.disabled = checked; document.form1.subm_telephone.value = document.form1.ietf_telephone.value;
document.form1.subm_fax.value = document.form1.ietf_fax.value;
document.form1.subm_email.value = document.form1.ietf_email.value;
document.form1.subm_address1.value = document.form1.ietf_address1.value;
document.form1.subm_address2.value = document.form1.ietf_address2.value;
} else {
document.form1.subm_name.value = "";
document.form1.subm_title.value = "";
document.form1.subm_department.value = "";
document.form1.subm_telephone.value = "";
document.form1.subm_fax.value = "";
document.form1.subm_email.value = "";
document.form1.subm_address1.value = "";
document.form1.subm_address2.value = "";
}
}
document.form1.subm_name.disabled = checked;
document.form1.subm_title.disabled = checked;
document.form1.subm_department.disabled = checked;
document.form1.subm_telephone.disabled = checked;
document.form1.subm_fax.disabled = checked;
document.form1.subm_email.disabled = checked;
document.form1.subm_address1.disabled = checked;
document.form1.subm_address2.disabled = checked;
return true; return true;
} }
</script> </script>

View file

@ -1,21 +1,27 @@
<style type="text/css"> <style type="text/css">
.ipr { width: 101ex; } .ipr { width: 101ex; }
.even { } .ipr th { border: 0px; margin: 0px; padding: 0.4ex; }
.odd { } .ipr td { border: 0px; margin: 0px; padding: 0.4ex; }
.ipr ul { list-style-type: none; margin-left: 13ex;}
.even td,th { background: #eee; color: #000; font-family: Arial, sans-serif; font-size: small; text-align: left; vertical-align: top; } .even td,th { background: #eee; color: #000; font-family: Arial, sans-serif; font-size: small; text-align: left; vertical-align: top; }
.odd td,th { background: #eed; color: #000; font-family: Arial, sans-serif; font-size: small; text-align: left; vertical-align: top; } .odd td,th { background: #eed; color: #000; font-family: Arial, sans-serif; font-size: small; text-align: left; vertical-align: top; }
.even tr:first-child th { background: #aaa; color: #336; font-family: Arial, sans-serif; font-size: small; text-align: left; font-weight: bold; } .even tr:first-child th { background: #aaa; color: #336; font-family: Arial, sans-serif; font-size: small; text-align: left; font-weight: bold; }
.odd tr:first-child th { background: #cca; color: #336; font-family: Arial, sans-serif; font-size: small; text-align: left; font-weight: bold; } .odd tr:first-child th { background: #cca; color: #336; font-family: Arial, sans-serif; font-size: small; text-align: left; font-weight: bold; }
.even .dark td { background: #ddd; }
.odd .dark td { background: #ddc; }
.inline ul { display: inline; margin: 3ex; }
.inline li { display: inline; }
tbody { margin: 0; padding: 0; }
table.ipr { table.ipr {
padding:0.2ex; padding:0.2ex;
border-width:0.1ex; border-width:0.1ex;
border-style:solid; border-style:solid;
border-color:#305076; border-color:#305076;
} }
.ipr th { border: 0px; margin: 0px; padding: 0.4ex; }
.ipr td { border: 0px; margin: 0px; padding: 0.4ex; }
td.fixwidth { width: 18ex; } td.fixwidth { width: 18ex; }
.ipr ul { list-style-type: none; margin-left: 13ex;}
h4.ipr { text-align: center; } h4.ipr { text-align: center; }
input { width: 68ex; font-family: sans-serif; font-size: 11pt; font-weight: normal; } input { width: 68ex; font-family: sans-serif; font-size: 11pt; font-weight: normal; }
input[type="radio"] { width: auto; } input[type="radio"] { width: auto; }