From 3c0dec397059e6a141478aaa08708a6884435881 Mon Sep 17 00:00:00 2001 From: immortalcodes <21112002mj@gmail.com> Date: Mon, 5 Aug 2024 10:58:39 +0530 Subject: [PATCH 1/2] updated agreement --- .../legal/confidentiality-agreement.html | 1111 +++++++++-------- 1 file changed, 596 insertions(+), 515 deletions(-) diff --git a/templates/legal/confidentiality-agreement.html b/templates/legal/confidentiality-agreement.html index 644c9464e1f..7d5e936c4e0 100644 --- a/templates/legal/confidentiality-agreement.html +++ b/templates/legal/confidentiality-agreement.html @@ -1,545 +1,626 @@ {% extends "legal/_base_legal.html" %} {% block title %}Confidentiality agreement{% endblock %} -{% block meta_copydoc %}https://docs.google.com/document/d/123_RbbqhDzsiWrLQkl1c_1aqr2uT6hKeq0LuNDl21Ms/edit#{% endblock meta_copydoc %} + +{% block meta_copydoc %} + https://docs.google.com/document/d/123_RbbqhDzsiWrLQkl1c_1aqr2uT6hKeq0LuNDl21Ms/edit# +{% endblock meta_copydoc %} {% block head_extra %} - - - - - - + + + + + + return true; + }; + + + // validate-awsaccountnumber validates string as Amazon AWS Account Number + + // we just check for exactly 12 digits, and each digit may be optionally followed by a dash + // so dashes are essentially ignored + + wFORMS.behaviors.validation.rules.isAWSAccountNumber = { + selector: ".validate-awsaccountnumber", + check: 'validateAWSAccountNumber' + }; + wFORMS.behaviors.validation.messages.isAWSAccountNumber = "Not a valid Amazon AWS Account number (expected format '1234-5678-0987')"; + + wFORMS.behaviors.validation.instance.prototype.validateAWSAccountNumber = function(element, value) { + var regexp = /^(\d-?){12,12}$/; + return this.isEmpty(value) || regexp.test(value); + }; + + {% endblock %} {% block content %} -
You can enter into a confidentiality agreement with Canonical here, you must complete all the fields in this form.
-