// Copyright 2018 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. {namespace registry.soy.registrar.console} /** * Main page for the OT&E creation. Holds a form with the required data. */ {template .formPage} {@param xsrfToken: string} /** Security token. */ {@param username: string} /** Arbitrary username to display. */ {@param logoutUrl: string} /** Generated URL for logging out of Google. */ {@param productName: string} /** Name to display for this software product. */ {@param logoFilename: string} {@param? errorMessage: string} /** If set - display the error message above the form. */ {@param? baseClientId: string} /** If set - an initial value to fill for the base client ID. */ {@param? contactEmail: string} /** If set - an initial value to fill for the email. */ {call registry.soy.console.header} {param app: 'registrar' /} {param subtitle: 'OT&E setup' /} {/call} {call registry.soy.console.googlebar data="all" /} {/template} /** * Result page for a successful OT&E setup. */ {template .resultSuccess} {@param baseClientId: string} /** The base clientId used for the OT&E setup. */ {@param contactEmail: string} /** The contact's email added to the registrars. */ {@param clientIdToTld: map} /** The created registrars->TLD mapping. */ {@param password: string} /** The password given for the created registrars. */ {@param username: string} /** Arbitrary username to display. */ {@param logoutUrl: string} /** Generated URL for logging out of Google. */ {@param productName: string} /** Name to display for this software product. */ {@param logoFilename: string} {call registry.soy.console.header} {param app: 'registrar' /} {param subtitle: 'OT&E setup' /} {/call} {call registry.soy.console.googlebar data="all" /} {/template} /** Form for getting registrar info. */ {template .form_ visibility="private"} {@param xsrfToken: string} /** Security token. */ {@param? baseClientId: string} /** If set - an initial value to fill for the base client ID. */ {@param? contactEmail: string} /** If set - an initial value to fill for the email. */
{call registry.soy.forms.inputFieldRowWithValue} {param label: 'Contact email' /} {param name: 'email' /} {param value: $contactEmail /} {param placeholder: 'registrar\'s assigned email' /} {param description kind="text"} Will be granted web-console access to the OTE registrars. {/param} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Password (optional)' /} {param name: 'password' /} {param placeholder: 'Optional password' /} {param description kind="text"} The password used to for EPP login. Leave blank to auto-generate a password. {/param} {param readonly: false /} {/call} {call registry.soy.forms.submitRow} {param label: 'create' /} {/call}
{call registry.soy.forms.inputFieldLabel} {param label: 'Base client ID' /} {/call} {call registry.soy.forms.inputFieldValue } {param name: 'clientId' /} {param value: $baseClientId /} {param placeholder: 'registrar\'s ID' /} {param readonly: false /} {/call} Must:
  1. consist of only lowercase letters, numbers, or hyphens,
  2. start with a letter, and
  3. be between 3 and 14 characters (inclusive).
We require 1 and 2 since the registrar name will be used to create TLDs, and we require 3 since we append "-[12345]" to the name to create client IDs which are required by the EPP XML schema to be between 3-16 chars.
{/template} /** * Who goes thar?! */ {template .whoareyou} {@param username: string} /** Arbitrary username to display. */ {@param logoutUrl: string} /** Generated URL for logging out of Google. */ {@param logoFilename: string} {@param productName: string} {call registry.soy.console.header} {param app: 'registrar' /} {param subtitle: 'Not Authorized' /} {/call}
{$productName}

You need permission

Only {$productName} Admins have access to this page. You are signed in as {$username}.

Logout and switch to another account{sp} Go to the Registrar web console
{/template}