// 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.host autoescape="strict"} /** * Set view for hosts. */ {template .set}

Please enter a query for a single host in the form "host/[hostname]".

{/template} /** * Item view for host. * @param? item * @param? readonly passed through to field rendering. */ {template .item}

{if isNonnull($item['host:name'])} {$item['host:name']['keyValue']} {else} New Host {/if}

{call registry.soy.forms.inputFieldRowWithValue data="all"} {param label: 'Name *' /} {param name: isNonnull($item['host:name']) ? 'host:chgName' : 'host:name' /} {param value: $item['host:name'] /} {/call} {if isNonnull($item['host:addr'])} {foreach $addr in $item['host:addr']} {if not $readonly} {/if} {call registry.soy.forms.inputFieldRowWithValue data="all"} {param label: 'Address No. ' + (index($addr) + 1) /} {param name: 'host:addr[' + index($addr) + '].value' /} {param value: $item['host:addr'][index($addr)] /} {/call} {/foreach} {/if}

Host

Addresses

{if isNonnull($item['host:name'])} {/if}
{/template} /** * Item view for host. * @param? item * @param? readonly passed through to field rendering. */ {template .update}

{$item['host:name']['keyValue']}

{call registry.soy.forms.inputFieldRowWithValue data="all"} {param label: 'Name' /} {param name: 'host:chgName' /} {param value: $item['host:name'] /} {/call}

Host

{if isNonnull($item['host:name'])} {/if}
{/template}