-
Notifications
You must be signed in to change notification settings - Fork 64
/
adddomain.tpl
105 lines (87 loc) · 4.07 KB
/
adddomain.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{include file="orderforms/standard_cart/common.tpl"}
<div id="order-standard_cart">
<div class="row">
<div class="pull-md-right col-md-9">
<div class="header-lined">
<h1>
{if $domain eq "register"}
{$LANG.registerdomain}
{elseif $domain eq "transfer"}
{$LANG.transferdomain}
{/if}
</h1>
</div>
</div>
<div class="col-md-3 pull-md-left sidebar hidden-xs hidden-sm">
{include file="orderforms/standard_cart/sidebar-categories.tpl"}
</div>
<div class="col-md-9 pull-md-right">
{include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"}
{if $domain == 'register'}
<p>{$LANG.orderForm.findNewDomain}</p>
{else}
<p>{$LANG.orderForm.transferExistingDomain}</p>
{/if}
<form method="post" action="cart.php" id="frmDomainSearch">
<input type="hidden" name="a" value="domainoptions" />
<input type="hidden" name="checktype" value="{$domain}" />
<input type="hidden" name="ajax" value="1" />
<div class="row domain-add-domain">
<div class="col-sm-8 col-xs-12 col-sm-offset-1">
<div class="row domains-row">
<div class="col-xs-9">
<div class="input-group">
<span class="input-group-addon">{lang key='orderForm.www'}</span>
<input type="text" name="sld" value="{$sld}" id="inputDomain" class="form-control" autocapitalize="none" />
</div>
</div>
<div class="col-xs-3">
<select name="tld" class="form-control">
{if $domain == 'register'}
{foreach $registertlds as $listtld}
<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>
{$listtld}
</option>
{/foreach}
{else}
{foreach $transfertlds as $listtld}
<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>
{$listtld}
</option>
{/foreach}
{/if}
</select>
</div>
</div>
</div>
<div class="col-sm-2 col-xs-12">
<button type="submit" class="btn btn-primary btn-block" id="btnCheckAvailability">
{if $domain eq "register"}
{$LANG.orderForm.check}
{else}
{$LANG.domainstransfer}
{/if}
</button>
</div>
</div>
</form>
<div class="domain-loading-spinner" id="domainLoadingSpinner">
<i class="fas fa-3x fa-spinner fa-spin"></i>
</div>
<form method="post" action="cart.php?a=add&domain={$domain}">
<div class="domain-search-results" id="domainSearchResults"></div>
</form>
</div>
</div>
</div>
{*
* If we have availability results, then the form was submitted w/a domain.
* Thus we want to do a search and show the results.
*}
{if $availabilityresults}
<script>
jQuery(document).ready(function() {
jQuery('#btnCheckAvailability').click();
});
</script>
{/if}