Use a 'number' input type for number fields in registrar creation

No tests for this since we don't have any to begin with

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=252508756
This commit is contained in:
gbrodman 2019-06-10 16:23:47 -07:00 committed by jianglai
parent 203206171e
commit 0b51c50a0d
2 changed files with 4 additions and 0 deletions

View file

@ -112,11 +112,13 @@
{@param? namePrefix: string}
{@param? placeholder: string}
{@param? clazz: string}
{@param? type: string}
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
<input name="{$forId}"
id="{$forId}"
value="{if isNonnull($value)}{$value['keyValue'] ?: $value}{/if}"
{if isNonnull($clazz)}class="{$clazz}"{/if}
{if isNonnull($type)}type="{$type}"{/if}
{if isNonnull($placeholder) and not $readonly}
placeholder="{$placeholder}"
{/if}
@ -136,6 +138,7 @@
{@param? description: string}
{@param? placeholder: string}
{@param? clazz: string}
{@param? type: string}
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
<tr class="{css('kd-settings-pane-section')}">
<td>

View file

@ -223,6 +223,7 @@
{param name: 'ianaId' /}
{param value: $ianaId /}
{param placeholder: 'required' /}
{param type: 'number' /}
{param description kind="text"}
Registrar IANA ID.
{/param}