-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathclientareadetails.tpl
163 lines (157 loc) · 6.62 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
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
<div class="page-header">
<h1>{$LANG.clientareanavdetails}</h1>
</div>
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="clientarea.php?action=details">{$LANG.clientareanavdetails}</a></li>
{if $condlinks.updatecc}
<li><a href="clientarea.php?action=creditcard">{$LANG.clientareanavccdetails}</a></li>
{/if}
<li><a href="clientarea.php?action=contacts">{$LANG.clientareanavcontacts}</a></li>
<li><a href="clientarea.php?action=changepw">{$LANG.clientareanavchangepw}</a></li>
{if $condlinks.updatesq}
<li><a href="clientarea.php?action=changesq">{$LANG.clientareanavsecurityquestions}</a></li>
{/if}
</ul>
</div>
{if $successful}
<div class="alert alert-success fade in">
<button class="close" data-dismiss="alert">×</button>
{$LANG.changessavedsuccessfully}
</div>
{/if}
{if $errormessage}
<div class="alert alert-error fade in">
<button class="close" data-dismiss="alert">×</button>
<h4 class="alert-heading">{$LANG.clientareaerrors}</h4>
<ul>
{$errormessage}
</ul>
</div>
{/if}
<form class="form-horizontal" method="post" action="clientarea.php">
<input type="hidden" name="action" value="details">
<div class="row">
<div class="span6">
<div class="control-group">
<label class="control-label" for="firstname">{$LANG.clientareafirstname}</label>
<div class="controls">
<input type="text" name="firstname" id="firstname" class="span3" value="{$clientfirstname}"{if in_array('firstname',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="lastname">{$LANG.clientarealastname}</label>
<div class="controls">
<input type="text" name="lastname" id="lastname" class="span3" value="{$clientlastname}"{if in_array('lastname',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="companyname">{$LANG.clientareacompanyname}</label>
<div class="controls">
<input type="text" name="companyname" id="companyname" class="span3" value="{$clientcompanyname}"{if in_array('companyname',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="email">{$LANG.clientareaemail}</label>
<div class="controls">
<input type="text" name="email" id="email" class="span3" value="{$clientemail}"{if in_array('email',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="phonenumber">{$LANG.clientareaphonenumber}</label>
<div class="controls">
<input type="text" name="phonenumber" id="phonenumber" class="span3" value="{$clientphonenumber}"{if in_array('phonenumber',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="paymentmethod">{$LANG.paymentmethod}</label>
<div class="controls">
<select name="paymentmethod" id="paymentmethod" class="span3">
<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>
<div class="control-group">
<label class="control-label" for="billingcontact">{$LANG.defaultbillingcontact}</label>
<div class="controls">
<select name="billingcid" id="billingcontact" class="span3">
<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>
</div>
</div>
<div class="span6">
<div class="control-group">
<label class="control-label" for="address1">{$LANG.clientareaaddress1}</label>
<div class="controls">
<input type="text" name="address1" id="address1" class="span3" value="{$clientaddress1}"{if in_array('address1',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="address2">{$LANG.clientareaaddress2}</label>
<div class="controls">
<input type="text" name="address2" id="address2" class="span3" value="{$clientaddress2}"{if in_array('address2',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="city">{$LANG.clientareacity}</label>
<div class="controls">
<input type="text" name="city" id="city" class="span3" value="{$clientcity}"{if in_array('city',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="state">{$LANG.clientareastate}</label>
<div class="controls">
<input type="text" name="state" id="state" class="span3" value="{$clientstate}"{if in_array('state',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="postcode">{$LANG.clientareapostcode}</label>
<div class="controls">
<input type="text" name="postcode" id="postcode" class="span3" value="{$clientpostcode}"{if in_array('postcode',$uneditablefields)} disabled="disabled" class="disabled"{/if} >
</div>
</div>
<div class="control-group">
<label class="control-label" for="country">{$LANG.clientareacountry}</label>
<div class="controls">
{$clientcountriesdropdown}
</div>
</div>
</div>
</div>
{if $customfields}
<hr>
<div class="row">
<div class="span6">
{foreach from=$customfields key=num item=customfield}
<div class="control-group">
<label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
<div class="controls">
{$customfield.input} <span class="help-inline">{$customfield.description}</span>
</div>
</div>
{/foreach}
</div>
</div>
{/if}
<div class="form-actions">
<input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}">
<input class="btn" type="reset" value="{$LANG.cancel}">
</div>
</form>
{literal}
<script type="text/javascript">
$(function() {
// Make custom field inputs the correct size
$('input[type=text]').addClass('span3');
$('select').addClass('span3');
});
</script>
{/literal}
<script type="text/javascript" src="includes/jscript/statesdropdown.js"></script>