forked from Abulhallaj/whmcs-template-six-rtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareadetails.tpl
127 lines (103 loc) · 6.46 KB
/
clientareadetails.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
{if $successful}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.changessavedsuccessfully textcenter=true}
{/if}
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<script type="text/javascript" src="{$BASE_PATH_JS}/StatesDropdown.js"></script>
<form method="post" action="?action=details" role="form">
<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="{$clientfirstname}"{if in_array('firstname', $uneditablefields)} disabled="disabled"{/if} 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="{$clientlastname}"{if in_array('lastname', $uneditablefields)} disabled="disabled"{/if} 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="{$clientcompanyname}"{if in_array('companyname', $uneditablefields)} disabled="disabled"{/if} 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="{$clientemail}"{if in_array('email', $uneditablefields)} disabled="disabled"{/if} class="form-control" />
</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="{$clientaddress1}"{if in_array('address1', $uneditablefields)} disabled="disabled"{/if} 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="{$clientaddress2}"{if in_array('address2', $uneditablefields)} disabled="disabled"{/if} 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="{$clientcity}"{if in_array('city', $uneditablefields)} disabled="disabled"{/if} 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="{$clientstate}"{if in_array('state', $uneditablefields)} disabled="disabled"{/if} 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="{$clientpostcode}"{if in_array('postcode', $uneditablefields)} disabled="disabled"{/if} class="form-control" />
</div>
<div class="form-group">
<label class="control-label" for="country">{$LANG.clientareacountry}</label>
{$clientcountriesdropdown}
</div>
<div class="form-group">
<label for="inputPhone" class="control-label">{$LANG.clientareaphonenumber}</label>
<input type="tel" name="phonenumber" id="inputPhone" value="{$clientphonenumber}"{if in_array('phonenumber',$uneditablefields)} disabled=""{/if} class="form-control" />
</div>
</div>
<div class="col-sm-6 col-xs-12 pull-left">
<div class="form-group">
<label for="inputPaymentMethod" class="control-label">{$LANG.paymentmethod}</label>
<select name="paymentmethod" id="inputPaymentMethod" class="form-control">
<option value="none">{$LANG.paymentmethoddefault}</option>
{foreach from=$paymentmethods item=method}
<option value="{$method.sysname}"{if $method.sysname eq $defaultpaymentmethod} selected="selected"{/if}>{$method.name}</option>
{/foreach}
</select>
</div>
<div class="form-group">
<label for="inputBillingContact" class="control-label">{$LANG.defaultbillingcontact}</label>
<select name="billingcid" id="inputBillingContact" class="form-control">
<option value="0">{$LANG.usedefaultcontact}</option>
{foreach from=$contacts item=contact}
<option value="{$contact.id}"{if $contact.id eq $billingcid} selected="selected"{/if}>{$contact.name}</option>
{/foreach}
</select>
</div>
{if $customfields}
{foreach from=$customfields key=num item=customfield}
<div class="form-group">
<label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
<div class="control">
{$customfield.input} {$customfield.description}
</div>
</div>
{/foreach}
{/if}
{if $emailoptoutenabled}
<div class="form-group">
<label class="control-label" for="inputEmailOptOut">{$LANG.emailoptout}</label>
<div class="controls checkbox">
<label>
<input type="checkbox" value="1" name="emailoptout" id="inputEmailOptOut" {if $emailoptout} checked{/if} /> {$LANG.emailoptoutdesc}
</label>
</div>
</div>
{/if}
</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>