forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareaaddcontact.tpl
199 lines (174 loc) · 9.33 KB
/
clientareaaddcontact.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<script>
var stateNotRequired = true;
jQuery(document).ready(function() {
WHMCS.form.register();
});
</script>
<script src="{$BASE_PATH_JS}/StatesDropdown.js"></script>
<div class="alert alert-block alert-info">
<form class="form-horizontal" role="form" method="post" action="{$smarty.server.PHP_SELF}?action=contacts">
<div class="row">
<label for="inputContactId" class="col-sm-3 control-label">{$LANG.clientareachoosecontact}</label>
<div class="col-sm-6">
<select name="contactid" id="inputContactId" onchange="submit()" class="form-control">
{foreach item=contact from=$contacts}
<option value="{$contact.id}">{$contact.name} - {$contact.email}</option>
{/foreach}
<option value="new" selected="selected">{$LANG.clientareanavaddcontact}</option>
</select>
</div>
<div class="col-sm-2 hidden-xs">
<button type="submit" class="btn btn-default btn-block">{$LANG.go}</button>
</div>
</div>
</form>
</div>
<form role="form" method="post" action="{$smarty.server.PHP_SELF}?action=addcontact">
<input type="hidden" name="submit" value="true" />
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="inputFirstName" class="control-label">{$LANG.clientareafirstname}</label>
<input type="text" name="firstname" id="inputFirstName" value="{$contactfirstname}" class="form-control" />
</div>
<div class="form-group">
<label for="inputLastName" class="control-label">{$LANG.clientarealastname}</label>
<input type="text" name="lastname" id="inputLastName" value="{$contactlastname}" class="form-control" />
</div>
<div class="form-group">
<label for="inputCompanyName" class="control-label">{$LANG.clientareacompanyname}</label>
<input type="text" name="companyname" id="inputCompanyName" value="{$contactcompanyname}" class="form-control" />
</div>
<div class="form-group">
<label for="inputEmail" class="control-label">{$LANG.clientareaemail}</label>
<input type="email" name="email" id="inputEmail" value="{$contactemail}" class="form-control" />
</div>
<div class="form-group">
<label for="inputPhone" class="control-label">{$LANG.clientareaphonenumber}</label>
<input type="tel" name="phonenumber" id="inputPhone" value="{$contactphonenumber}" class="form-control" />
</div>
{if $showTaxIdField}
<div class="form-group">
<label for="inputTaxId" class="control-label">{lang key=$taxIdLabel}</label>
<input type="text" name="tax_id" id="inputTaxId" class="form-control" value="{$contactTaxId}" />
</div>
{/if}
<div class="form-group">
<label class="control-label" for="inputSubaccountActivate">{$LANG.subaccountactivate}</label>
<div class="controls checkbox">
<label><input type="checkbox" name="subaccount" id="inputSubaccountActivate"{if $subaccount} checked{/if} /> {$LANG.subaccountactivatedesc}</label>
</div>
</div>
</div>
<div class="col-sm-6 col-xs-12 pull-right">
<div class="form-group">
<label for="inputAddress1" class="control-label">{$LANG.clientareaaddress1}</label>
<input type="text" name="address1" id="inputAddress1" value="{$contactaddress1}" class="form-control" />
</div>
<div class="form-group">
<label for="inputAddress2" class="control-label">{$LANG.clientareaaddress2}</label>
<input type="text" name="address2" id="inputAddress2" value="{$contactaddress2}" class="form-control" />
</div>
<div class="form-group">
<label for="inputCity" class="control-label">{$LANG.clientareacity}</label>
<input type="text" name="city" id="inputCity" value="{$contactcity}" class="form-control" />
</div>
<div class="form-group">
<label for="inputState" class="control-label">{$LANG.clientareastate}</label>
<input type="text" name="state" id="inputState" value="{$contactstate}" class="form-control" />
</div>
<div class="form-group">
<label for="inputPostcode" class="control-label">{$LANG.clientareapostcode}</label>
<input type="text" name="postcode" id="inputPostcode" value="{$contactpostcode}" class="form-control" />
</div>
<div class="form-group">
<label class="control-label" for="country">{$LANG.clientareacountry}</label>
{$countriesdropdown}
</div>
</div>
</div>
<div id="subacct-container" class="well{if !$subaccount} hidden{/if}">
<div class="form-group">
<label class="full control-label">{$LANG.subaccountpermissions}</label>
<div class="checkbox clearfix" id="contactPermissions">
{foreach $allPermissions as $permission}
<div class="col-sm-6">
<label>
<input type="checkbox" name="permissions[]" value="{$permission}"{if in_array($permission, $permissions)} checked{/if} />
<span>
{assign var='langPermission' value='subaccountperms'|cat:$permission}{$LANG.$langPermission}
</span>
</label>
</div>
{/foreach}
</div>
<div class="row">
<div class="col-md-12">
<button type="button" class="btn btn-sm btn-check-all" data-checkbox-container="contactPermissions" data-btn-check-toggle="1" id="btnSelectAll-contactPermissions" data-label-text-select="{lang key='checkAll'}" data-label-text-deselect="{lang key='uncheckAll'}">
{lang key='checkAll'}
</button>
</div>
</div>
</div>
<fieldset class="form-horizontal">
<div id="newPassword1" class="form-group has-feedback">
<label for="inputNewPassword1" class="col-sm-4 control-label">{$LANG.newpassword}</label>
<div class="col-sm-5">
<input type="password" class="form-control" id="inputNewPassword1" name="password" autocomplete="off" />
<span class="form-control-feedback glyphicon"></span>
{include file="$template/includes/pwstrength.tpl" noDisable=true}
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default generate-password" data-targetfields="inputNewPassword1,inputNewPassword2">
{$LANG.generatePassword.btnLabel}
</button>
</div>
</div>
<div id="newPassword2" class="form-group has-feedback">
<label for="inputNewPassword2" class="col-sm-4 control-label">{$LANG.confirmnewpassword}</label>
<div class="col-sm-5">
<input type="password" class="form-control" id="inputNewPassword2" name="password2" autocomplete="off" />
<span class="form-control-feedback glyphicon"></span>
<div id="inputNewPassword2Msg">
</div>
</div>
</div>
</fieldset>
</div>
<div class="form-group">
<h3>{$LANG.clientareacontactsemails}</h3>
<div class="controls checkbox">
<label>
<input type="checkbox" name="generalemails" id="generalemails" value="1"{if $generalemails} checked{/if} />
{$LANG.clientareacontactsemailsgeneral}
</label>
<br />
<label>
<input type="checkbox" name="productemails" id="productemails" value="1"{if $productemails} checked{/if} />
{$LANG.clientareacontactsemailsproduct}
</label>
<br />
<label>
<input type="checkbox" name="domainemails" id="domainemails" value="1"{if $domainemails} checked{/if} />
{$LANG.clientareacontactsemailsdomain}
</label>
<br />
<label>
<input type="checkbox" name="invoiceemails" id="invoiceemails" value="1"{if $invoiceemails} checked{/if} />
{$LANG.clientareacontactsemailsinvoice}
</label>
<br />
<label>
<input type="checkbox" name="supportemails" id="supportemails" value="1"{if $supportemails} checked{/if} />
{$LANG.clientareacontactsemailssupport}
</label>
</div>
</div>
<div class="form-group text-center">
<input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</div>
</form>