// Copyright 2016 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.whois autoescape="strict"} /** Registrar whois settings page for view and edit. */ {template .settings} {@param clientIdentifier: string} {@param ianaIdentifier: int} {@param icannReferralEmail: string} {@param readonly: bool} {@param? whoisServer: string} {@param? referralUrl: string} // Passed to .contactInfo_ {@param emailAddress: string} {@param? localizedAddress: ?} {@param? phoneNumber: string} {@param? faxNumber: string} {let $whoisServerNonNull: $whoisServer ?: 'None' /} {let $referralUrlNonNull: $referralUrl ?: 'None' /}

WHOIS Settings

{if $readonly}

General registrar information for your WHOIS record. This information is always visible in WHOIS. {/if} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Name' /} {param name: 'clientIdentifier' /} {param value: $clientIdentifier /} {param readonly: true /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'IANA ID' /} {param name: 'ianaIdentifier' /} {param value: $ianaIdentifier /} {param readonly: true /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'ICANN referral email' /} {param name: 'icannReferralEmail' /} {param value: $icannReferralEmail /} {param readonly: true /} {/call} {call .contactInfo_ data="all" /}

{call registry.soy.forms.inputFieldRowWithValue} {param label: 'WHOIS server' /} {param name: 'whoisServer' /} {param value: $whoisServerNonNull /} {param readonly: $readonly /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Referral URL' /} {param name: 'referralUrl' /} {param value: $referralUrlNonNull /} {param readonly: $readonly /} {/call}

{/template} /** * Contact info. */ {template .contactInfo_ private="true"} {@param emailAddress: string} {@param readonly: bool} {@param? localizedAddress: ?} {@param? phoneNumber: string} {@param? faxNumber: string} {if $readonly} {if isNonnull($localizedAddress)} {call .viewAddress_ data="$localizedAddress"} {param id: 'localizedAddress' /} {/call} {/if} {if isNonnull($phoneNumber)}
{$phoneNumber}
{/if} {if isNonnull($faxNumber)}
{$faxNumber} (Fax)
{/if}
{$emailAddress}
{else} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Email' /} {param name: 'emailAddress' /} {param value: $emailAddress /} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Phone' /} {param name: 'phoneNumber' /} {param value: $phoneNumber /} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Fax' /} {param name: 'faxNumber' /} {param value: $faxNumber /} {param readonly: false /} {/call} {call .editAddress_ data="$localizedAddress"} {param id: 'localizedAddress' /} {/call} {/if} {/template} /** * Read-only view of address. */ {template .viewAddress_ private="true"} {@param id: string} {@param street: list} {@param city: string} {@param? state: string} {@param? zip: string} {@param countryCode: string} {foreach $line in $street}
{$street[index($line)]}
{/foreach}
{$city},
{if isNonnull($state)} {sp}
{$state}
{/if} {if isNonnull($zip)} {sp}
{$zip}
{/if} {sp}
{$countryCode}
{/template} /** * Editor of address. */ {template .editAddress_ private="true"} {@param id: string} {@param? street: list} {@param? city: string} {@param? state: string} {@param? zip: string} {@param? countryCode: string} {let $street2: $street ?: [] /} {let $city2: $city ?: '' /} {let $state2: $state ?: '' /} {let $zip2: $zip ?: '' /} {let $countryCode2: $countryCode ?: '' /} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'City' /} {param name: $id + '.city' /} {param value: $city2 /} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'State/Region' /} {param name: $id + '.state' /} {param value: $state2 /} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Zip/Postal Code' /} {param name: $id + '.zip' /} {param value: $zip2 /} {param readonly: false /} {/call} {call registry.soy.forms.inputFieldRowWithValue} {param label: 'Country Code' /} {param name: $id + '.countryCode' /} {param value: $countryCode2 /} {param readonly: false /} {/call} {/template}