mirror of
https://github.com/google/nomulus.git
synced 2025-06-06 20:45:40 +02:00
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:
parent
203206171e
commit
0b51c50a0d
2 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -223,6 +223,7 @@
|
|||
{param name: 'ianaId' /}
|
||||
{param value: $ianaId /}
|
||||
{param placeholder: 'required' /}
|
||||
{param type: 'number' /}
|
||||
{param description kind="text"}
|
||||
Registrar IANA ID.
|
||||
{/param}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue