mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 06:14:54 +02:00
This change renames directories in preparation for the great package rename. The repository is now in a broken state because the code itself hasn't been updated. However this should ensure that git correctly preserves history for each file.
94 lines
2.7 KiB
Text
94 lines
2.7 KiB
Text
{namespace registry.soy.registrar.host autoescape="strict"}
|
|
|
|
|
|
/**
|
|
* Set view for hosts.
|
|
*/
|
|
{template .set}
|
|
<div class="{css set} {css host}">
|
|
<p>Please enter a query for a single host in the form "host/[hostname]".
|
|
</div>
|
|
{/template}
|
|
|
|
|
|
/**
|
|
* Item view for host.
|
|
* @param? item
|
|
* @param? readonly passed through to field rendering.
|
|
*/
|
|
{template .item}
|
|
<form name="item" class="{css item} {css host}">
|
|
<h1>
|
|
{if isNonnull($item['host:name'])}
|
|
{$item['host:name']['keyValue']}
|
|
{else}
|
|
New Host
|
|
{/if}
|
|
</h1>
|
|
<table>
|
|
<tr class="{css section-lead}">
|
|
<th colspan="2"><h2>Host</h2></th>
|
|
</tr>
|
|
{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}
|
|
<tr class="{css section-lead}">
|
|
<th colspan="2">
|
|
<h3>Addresses</h3>
|
|
<button id="domain-host-addr-add-button" type="button"
|
|
class="{css kd-button} {css reg-add}"
|
|
{if $readonly}disabled{/if}>
|
|
Add Address
|
|
</button>
|
|
</th>
|
|
</tr>
|
|
{if isNonnull($item['host:addr'])}
|
|
{foreach $addr in $item['host:addr']}
|
|
{if not $readonly}
|
|
<input type="hidden"
|
|
name="host:oldAddr[{index($addr)}].value"
|
|
value="{$item['host:addr'][index($addr)]['keyValue']}">
|
|
{/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}
|
|
<tr id="domain-host-addrs-footer"></tr>
|
|
</table>
|
|
{if isNonnull($item['host:name'])}
|
|
<input type="hidden"
|
|
name="host:name"
|
|
value="{$item['host:name']['keyValue']}">
|
|
{/if}
|
|
</form>
|
|
{/template}
|
|
|
|
|
|
/**
|
|
* Item view for host.
|
|
* @param? item
|
|
* @param? readonly passed through to field rendering.
|
|
*/
|
|
{template .update}
|
|
<form name="item" class="{css item} {css host}">
|
|
<h1>{$item['host:name']['keyValue']}</h1>
|
|
<table>
|
|
<tr class="{css section-lead}">
|
|
<th colspan="2"><h2>Host</h2></th>
|
|
</tr>
|
|
{call registry.soy.forms.inputFieldRowWithValue data="all"}
|
|
{param label: 'Name' /}
|
|
{param name: 'host:chgName' /}
|
|
{param value: $item['host:name'] /}
|
|
{/call}
|
|
</table>
|
|
{if isNonnull($item['host:name'])}
|
|
<input type="hidden" name="host:name" value="{$item['host:name']['keyValue']}">
|
|
{/if}
|
|
</form>
|
|
{/template}
|