mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Redirect Registrar.referralUrl UI actions to url field
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=196597051
This commit is contained in:
parent
de5645abd9
commit
6cdbde107f
23 changed files with 18 additions and 59 deletions
|
@ -154,10 +154,6 @@ public final class RegistrarFormFields {
|
|||
FormFields.MIN_TOKEN.asBuilderNamed("url")
|
||||
.build();
|
||||
|
||||
public static final FormField<String, String> REFERRAL_URL_FIELD =
|
||||
FormFields.MIN_TOKEN.asBuilderNamed("referralUrl")
|
||||
.build();
|
||||
|
||||
public static final FormField<List<String>, List<CidrAddressBlock>> IP_ADDRESS_WHITELIST_FIELD =
|
||||
FormField.named("ipAddressWhitelist")
|
||||
.emptyToNull()
|
||||
|
|
|
@ -224,8 +224,7 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
|
|||
// WHOIS
|
||||
builder.setWhoisServer(
|
||||
RegistrarFormFields.WHOIS_SERVER_FIELD.extractUntyped(args).orElse(null));
|
||||
builder.setReferralUrl(
|
||||
RegistrarFormFields.REFERRAL_URL_FIELD.extractUntyped(args).orElse(null));
|
||||
builder.setUrl(RegistrarFormFields.URL_FIELD.extractUntyped(args).orElse(null));
|
||||
|
||||
// If the email is already null / empty - we can keep it so. But if it's set - it's required to
|
||||
// remain set.
|
||||
|
@ -241,8 +240,6 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
|
|||
builder.setLocalizedAddress(
|
||||
RegistrarFormFields.L10N_ADDRESS_FIELD.extractUntyped(args).orElse(null));
|
||||
|
||||
builder.setUrl(RegistrarFormFields.URL_FIELD.extractUntyped(args).orElse(null));
|
||||
|
||||
// Security
|
||||
builder.setIpAddressWhitelist(
|
||||
RegistrarFormFields.IP_ADDRESS_WHITELIST_FIELD
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
{@param icannReferralEmail: string}
|
||||
{@param readonly: bool}
|
||||
{@param? whoisServer: string}
|
||||
{@param? referralUrl: string}
|
||||
{@param? url: string}
|
||||
// Passed to .contactInfo_
|
||||
{@param? emailAddress: string}
|
||||
{@param? localizedAddress: ?}
|
||||
{@param? phoneNumber: string}
|
||||
{@param? faxNumber: string}
|
||||
{let $whoisServerNonNull: $whoisServer ?: 'None' /}
|
||||
{let $referralUrlNonNull: $referralUrl ?: 'None' /}
|
||||
{let $urlNonNull: $url ?: 'None' /}
|
||||
<form name="item" class="{css('item')} {css('registrar')} {css('kd-settings-pane')}">
|
||||
<h1>WHOIS Settings</h1>
|
||||
{if $readonly}
|
||||
|
@ -66,8 +66,8 @@
|
|||
{/call}
|
||||
{call registry.soy.forms.inputFieldRowWithValue}
|
||||
{param label: 'Referral URL' /}
|
||||
{param name: 'referralUrl' /}
|
||||
{param value: $referralUrlNonNull /}
|
||||
{param name: 'url' /}
|
||||
{param value: $urlNonNull /}
|
||||
{param readonly: $readonly /}
|
||||
{/call}
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue