datatracker/ietf/templates/ipr/style.html
Henrik Levkowetz 8d7053fc5c * Removed InternationalPhoneNumber class, instead using the form creation
callback to provide a RegexpField class.
 * Added checkbox for submitter contact information being the same as
   IETF contact information; with javascript support and validation
   support.
 * Cleaned out the old split_form() and mk_formatting_form() functions from
   ietf.utils.
 - Legacy-Id: 138
2007-05-18 15:50:30 +00:00

63 lines
2.9 KiB
HTML

<style type="text/css">
.ipr { width: 101ex; }
.even { }
.odd { }
.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; }
.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; }
table.ipr {
padding:2px;
border-width:1px;
border-style:solid;
border-color:#305076;
}
.ipr th { border: 0px; margin: 0px; padding: 4px; }
.ipr td { border: 0px; margin: 0px; padding: 4px; }
td.fixwidth { width: 14ex; }
.ipr ul { list-style-type: none; }
h4.ipr { text-align: center; }
input { width: 72ex; font-family: sans-serif; font-size: 11pt; font-weight: normal; }
input[type="radio"] { width: auto; }
input[type="checkbox"] { width: auto; }
input[type="submit"] { width: auto; }
textarea { width: 72ex; height: 5em; font-family: sans-serif; font-size: 11pt; font-weight: normal; }
.required { color: red; float: right; padding-top: 0.7ex; font-size: 130%; }
.errorlist { background: red; padding: 0 0 0 2px; border: 0px; margin: 0px; }
</style>
<script type="text/javascript">
function toggle_submitter_info (checked) {
if (checked) {
document.form1.subm_name.value = document.form1.ietf_name.value;
document.form1.subm_title.value = document.form1.ietf_title.value;
document.form1.subm_department.value = document.form1.ietf_department.value;
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;
}
</script>