forked from TheMaxium69/SolidServ-WHMCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareadomaincontactinfo.tpl
148 lines (132 loc) · 7.83 KB
/
clientareadomaincontactinfo.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{if $successful}
{include file="$template/includes/alert.tpl" type="success" msg="{lang key='changessavedsuccessfully'}" textcenter=true}
{/if}
{if $pending}
{include file="$template/includes/alert.tpl" type="info" msg=$pendingMessage textcenter=true}
{/if}
{if $domainInformation && !$pending && $domainInformation->getIsIrtpEnabled() && $domainInformation->isContactChangePending()}
{if $domainInformation->getPendingSuspension()}
{include file="$template/includes/alert.tpl" type="warning" msg="<strong>{lang key='domains.verificationRequired'}</strong><br>{lang key='domains.newRegistration'}" textcenter=true}
{else}
{include file="$template/includes/alert.tpl" type="info" msg="<strong>{lang key='domains.contactChangePending'}</strong><br>{lang key='domains.contactsChanged'}" textcenter=true}
{/if}
{/if}
{if $error}
{include file="$template/includes/alert.tpl" type="error" msg=$error textcenter=true}
{/if}
<div class="card">
<div class="card-body">
<h3 class="card-title">{lang key='domaincontactinfo'}</h3>
<p>{lang key='whoisContactWarning'}</p>
<form method="post" action="{$smarty.server.PHP_SELF}?action=domaincontacts" id="frmDomainContactModification">
<input type="hidden" name="sub" value="save" />
<input type="hidden" name="domainid" value="{$domainid}" />
<ul class="nav nav-tabs responsive-tabs-sm" role="tablist">
{foreach $contactdetails as $contactdetail => $values}
<li class="nav-item">
<a class="nav-link{if $values@first} active{/if}" id="tabSelector{$contactdetail}" data-toggle="tab" href="#tab{$contactdetail}" role="tab">{$contactdetail}</a>
</li>
{/foreach}
</ul>
<div class="responsive-tabs-sm-connector"><div class="channel"></div><div class="bottom-border"></div></div>
<div class="tab-content p-4">
{foreach $contactdetails as $contactdetail => $values}
<div class="tab-pane fade{if $values@first} show active{/if}" id="tab{$contactdetail}" role="tabpanel">
<div class="form-check">
<label>
<input type="radio" class="form-check-input" name="wc[{$contactdetail}]" id="{$contactdetail}1" value="contact" onclick="useDefaultWhois(this.id)" />
{lang key='domaincontactusexisting'}
</label>
</div>
<div class="row">
<div class="offset-1 col-10">
<div class="form-group">
<label for="{$contactdetail}3">{lang key='domaincontactchoose'}</label>
<input type="hidden" name="sel[{$contactdetail}]" value="">
<select id="{$contactdetail}3" class="form-control custom-select {$contactdetail}defaultwhois" name="sel[{$contactdetail}]" disabled>
<option value="u{$clientsdetails.userid}">{lang key='domaincontactprimary'}</option>
{foreach $contacts as $contact}
<option value="c{$contact.id}">{$contact.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="form-check">
<label>
<input type="radio" class="form-check-input" name="wc[{$contactdetail}]" id="{$contactdetail}2" value="custom" onclick="useCustomWhois(this.id)" checked />
{lang key='domaincontactusecustom'}
</label>
</div>
{foreach $values as $name => $value}
<div class="form-group">
<label>{$contactdetailstranslations[$name]}</label>
<input type="text" name="contactdetails[{$contactdetail}][{$name}]" value="{$value}" data-original-value="{$value}" class="form-control {$contactdetail}customwhois{if array_key_exists($contactdetail, $irtpFields) && in_array($name, $irtpFields[$contactdetail])} irtp-field{/if}" />
</div>
{/foreach}
</div>
{/foreach}
</div>
<p class="text-center">
{if $domainInformation && $irtpFields}
<input id="irtpOptOut" type="hidden" name="irtpOptOut" value="0">
<input id="irtpOptOutReason" type="hidden" name="irtpOptOutReason" value="">
{/if}
<button type="submit" class="btn btn-primary">
{lang key='clientareasavechanges'}
</button>
<button type="reset" class="btn btn-default">
{lang key='clientareacancel'}
</button>
</p>
</form>
</div>
</div>
{if $domainInformation && $irtpFields}
<div class="modal fade" id="modalIRTPConfirmation" role="dialog" aria-labelledby="IRTPConfirmationLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content card">
<div id="modalIRTPConfirmationHeading" class="modal-header card-header bg-primary text-light">
<h4 class="modal-title" id="IRTPConfirmationLabel">{lang key='domains.importantReminder'}</h4>
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">{lang key='orderForm.close'}</span>
</button>
</div>
<div id="modalIRTPConfirmationBody" class="modal-body card-body text-center">
<div class="row">
<div class="col-sm-10 offset-sm-1">
{lang key='domains.irtpNotice'}
</div>
<div class="col-sm-12">
<div class="checkbox-inline">
<label for="modalIrtpOptOut">
<input id="modalIrtpOptOut" class="form-check-input" type="checkbox" value="1">
{lang key='domains.optOut'}
</label>
</div>
</div>
<div class="col-sm-12">
<div class="row">
<div class="col-sm-12 text-left">
<label for="modalReason">{lang key='domains.optOutReason'}</label>:
</div>
<div class="col-sm-12">
<input id="modalReason" type="text" class="form-control input-600" autocomplete="off">
</div>
</div>
</div>
</div>
</div>
<div id="modalIRTPConfirmationFooter" class="modal-footer card-footer">
<button type="button" id="IRTPConfirmation-Submit" class="btn btn-primary" onclick="irtpSubmit();return false;">
{lang key='supportticketsticketsubmit'}
</button>
<button type="button" id="IRTPConfirmation-Cancel" class="btn btn-default" data-dismiss="modal">
{lang key='cancel'}
</button>
</div>
</div>
</div>
</div>
{/if}