// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. {namespace domain.registry.tools} /** * Create domain */ {template .domaincreate stricthtml="false"} {@param domain: string} {@param period: int} {@param nameservers: list} {@param registrant: string} {@param admins: list} {@param techs: list} {@param password: string} {@param? currency: string} {@param? price: string} {@param dsRecords: list<[keyTag:int, alg:int, digestType:int, digest:string]>} {$domain} {$period} {if length($nameservers) > 0} {for $s in $nameservers} {$s} {/for} {/if} {$registrant} {for $admin in $admins} {$admin} {/for} {for $tech in $techs} {$tech} {/for} {$password} {if length($dsRecords) > 0 or $price != null} {if $price != null} {$currency} {$price} {/if} {if length($dsRecords) > 0} {for $dsRecord in $dsRecords} {$dsRecord.keyTag} {$dsRecord.alg} {$dsRecord.digestType} {$dsRecord.digest} {/for} {/if} {/if} RegistryTool {/template}