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 %} -
-
-
-

Confidentiality agreement

-

You can enter into a confidentiality agreement with Canonical here, you must complete all the fields in this form.

-
-
-
-
-
-
-
- -
-
- Organisation details -

Organisation details

- - -
-
- Your details -

Your details

-
    -
  • -
    - - -
    -
  • -
  • -
    - - -
    - +
    +
    +
    +

    Confidentiality agreement

    +

    + You can enter into a confidentiality agreement with Canonical here, you must complete all the fields in this form. +

    +
    +
    +
    +
    +
    + +
    + +
    +
    + Organisation details +

    Organisation details

    + + +
    +
    + Your details +

    Your details

    +
      +
    • +
      + + +
      +
    • +
    • +
      + + +
      + +
      +
      +
    • +
    • +
      + + +
      + +
      +
      +
    • +
    • +
      + + +
      + +
      -
    -
  • -
  • -
    - - -
    - +
  • +
  • +
    + + +
    + +
    -
- -
  • -
    - - -
    - +
  • +
  • +
    + + +
    + +
    -
  • - -
  • -
    - - -
    - +
  • +
  • +
    + + +
    + +
    -
  • - -
  • -
    - - -
    - +
  • +
  • +
    + + +
    + + + Please add the Canonical account manager or contact + +
    -
  • - -
  • -
    - - -
    - +
  • +
  • +
    +

    + By clicking "I agree" below, I confirm that I have read and understood the terms of the confidentiality agreement, privacy policy and privacy notice and warrant that I have authority to enter into the confidentiality agreement +

    -
  • - -
  • -
    - - -
    - - - Please add the Canonical account manager or contact - +
  • +
  • +
    +
    -
  • - -
  • -
    -

    By clicking "I agree" below, I confirm that I have read and understood the terms of the confidentiality agreement, privacy policy and privacy notice and warrant that I have authority to enter into the confidentiality agreement -

    -
    -
  • -
  • -
    - -
    -
    - - - - - -
  • - - - +
    + + + + + + + + + +
    - {% endblock content %} From 566e18771378c105b63e53434c5c5f3f7ebb2f70 Mon Sep 17 00:00:00 2001 From: Madhur Jain <92226302+immortalcodes@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:47:37 +0530 Subject: [PATCH 2/2] Update templates/legal/confidentiality-agreement.html Co-authored-by: Britney Wang <62298176+britneywwc@users.noreply.github.com> --- templates/legal/confidentiality-agreement.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/legal/confidentiality-agreement.html b/templates/legal/confidentiality-agreement.html index 7d5e936c4e0..6edbb3a1985 100644 --- a/templates/legal/confidentiality-agreement.html +++ b/templates/legal/confidentiality-agreement.html @@ -591,7 +591,7 @@

    Your details

  • - By clicking "I agree" below, I confirm that I have read and understood the terms of the confidentiality agreement, privacy policy and privacy notice and warrant that I have authority to enter into the confidentiality agreement + By clicking "I agree" below, I confirm that I have read and understood the terms of the confidentiality agreement, privacy policy and privacy notice and warrant that I have authority to enter into the confidentiality agreement.