mirror of
https://github.com/google/nomulus.git
synced 2025-06-07 04:55:42 +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? namePrefix: string}
|
||||||
{@param? placeholder: string}
|
{@param? placeholder: string}
|
||||||
{@param? clazz: string}
|
{@param? clazz: string}
|
||||||
|
{@param? type: string}
|
||||||
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
|
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
|
||||||
<input name="{$forId}"
|
<input name="{$forId}"
|
||||||
id="{$forId}"
|
id="{$forId}"
|
||||||
value="{if isNonnull($value)}{$value['keyValue'] ?: $value}{/if}"
|
value="{if isNonnull($value)}{$value['keyValue'] ?: $value}{/if}"
|
||||||
{if isNonnull($clazz)}class="{$clazz}"{/if}
|
{if isNonnull($clazz)}class="{$clazz}"{/if}
|
||||||
|
{if isNonnull($type)}type="{$type}"{/if}
|
||||||
{if isNonnull($placeholder) and not $readonly}
|
{if isNonnull($placeholder) and not $readonly}
|
||||||
placeholder="{$placeholder}"
|
placeholder="{$placeholder}"
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -136,6 +138,7 @@
|
||||||
{@param? description: string}
|
{@param? description: string}
|
||||||
{@param? placeholder: string}
|
{@param? placeholder: string}
|
||||||
{@param? clazz: string}
|
{@param? clazz: string}
|
||||||
|
{@param? type: string}
|
||||||
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
|
{let $forId: isNonnull($namePrefix) ? $namePrefix + $name : $name /}
|
||||||
<tr class="{css('kd-settings-pane-section')}">
|
<tr class="{css('kd-settings-pane-section')}">
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -223,6 +223,7 @@
|
||||||
{param name: 'ianaId' /}
|
{param name: 'ianaId' /}
|
||||||
{param value: $ianaId /}
|
{param value: $ianaId /}
|
||||||
{param placeholder: 'required' /}
|
{param placeholder: 'required' /}
|
||||||
|
{param type: 'number' /}
|
||||||
{param description kind="text"}
|
{param description kind="text"}
|
||||||
Registrar IANA ID.
|
Registrar IANA ID.
|
||||||
{/param}
|
{/param}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue