1<?php $this->displayTemplate('header') ?>
2
3<script type="text/javascript">
4<!--
5var default_iso = '<?php echo $this->session->shopCountry ?>';
6-->
7</script>
8
9<!-- Configuration form -->
10<div id="infosShopBlock">
11	<h2><?php echo $this->l('Information about your Store') ?></h2>
12
13	<!-- Shop name -->
14	<div class="field clearfix">
15		<label for="infosShop" class="aligned"><?php echo $this->l('Shop name') ?> </label>
16		<div class="contentinput">
17			<input class="text required" type="text" id="infosShop" name="shopName" value="<?php echo htmlspecialchars($this->session->shopName) ?>" /> <sup class="required">*</sup>
18		</div>
19		<?php echo $this->displayError('shopName') ?>
20	</div>
21
22	<!-- Activity -->
23	<div class="field clearfix">
24		<label for="infosActivity" class="aligned"><?php echo $this->l('Main activity') ?></label>
25		<div class="contentinput">
26			<select id="infosActivity" name="shopActivity" class="chosen">
27				<option value="0" style="font-weight: bold" <?php if (!$this->session->shopActivity): ?>selected="selected"<?php endif; ?>><?php echo $this->l('Please choose your main activity') ?></option>
28				<?php foreach ($this->listActivities as $i => $activity): ?>
29					<option value="<?php echo $i ?>" <?php if (isset($this->session->shopActivity) && $this->session->shopActivity == $i): ?>selected="selected"<?php endif; ?>><?php echo $activity ?></option>
30				<?php endforeach; ?>
31				<option value="0"><?php echo $this->l('Other activity...') ?></option>
32			</select>
33		</div>
34		<p class="userInfos aligned"><?php echo $this->l('Help us learn more about your store so we can offer you optimal guidance and the best features for your business!') ?></p>
35	</div>
36
37	<!-- Install type (with fixtures or not) -->
38	<div class="field clearfix">
39		<label class="aligned"><?php echo $this->l('Install demo products') ?></label>
40		<div class="contentinput">
41			<label>
42				<input value="full" type="radio" name="dbMode" style="vertical-align: middle;" <?php if ($this->installType == 'full'): ?>checked="checked"<?php endif; ?> autocomplete="off" />
43				<?php echo $this->l('Yes') ?>
44			</label>
45			<label>
46				<input value="lite" type="radio" name="dbMode" style="vertical-align: middle;" <?php if ($this->installType == 'lite'): ?>checked="checked"<?php endif; ?> autocomplete="off" />
47				<?php echo $this->l('No'); ?>
48			</label>
49		</div>
50		<p class="userInfos aligned"><?php echo $this->l('Demo products are a good way to learn how to use thirty bees. You should install them if you are not familiar with it.') ?></p>
51	</div>
52
53	<!-- Country list -->
54	<div class="field clearfix">
55		<label for="infosCountry" class="aligned"><?php echo $this->l('Country') ?></label>
56		<div class="contentinput">
57			<select name="shopCountry" id="infosCountry" class="chosen">
58				<option value="0" style="font-weight: bold"><?php echo $this->l('Select your country') ?></option>
59				<?php foreach ($this->listCountries as $country): ?>
60					<option value="<?php echo (isset($country['iso'])) ? $country['iso'] : '' ?>" <?php if ($this->session->shopCountry && isset($country['iso']) && $this->session->shopCountry === $country['iso']): ?>selected="selected"<?php endif; ?>><?php echo $country['name'] ?></option>
61				<?php endforeach; ?>
62			</select>
63			<sup class="required">*</sup>
64		</div>
65		<?php echo $this->displayError('shopCountry') ?>
66	</div>
67
68	<!-- Timezone list -->
69	<div id="timezone_div" class="field clearfix" <?php if (!in_array($this->session->shopTimezone, ['us','ca','au','ru','me','id'])) echo 'style="display:none"'; ?>>
70		<label for="infosTimezone" class="aligned"><?php echo $this->l('Shop timezone') ?></label>
71		<div class="contentinput">
72			<select name="shopTimezone" id="infosTimezone" class="chosen no-chosen">
73				<option value="0" style="font-weight: bold"><?php echo $this->l('Select your timezone') ?></option>
74				<?php foreach ($this->getTimezones() as $timezone): ?>
75					<option value="<?php echo $timezone ?>" <?php if ($this->session->shopTimezone == $timezone): ?>selected="selected"<?php endif; ?>><?php echo $timezone ?></option>
76				<?php endforeach; ?>
77			</select>
78			<sup class="required">*</sup>
79		</div>
80		<?php echo $this->displayError('shopTimezone') ?>
81	</div>
82
83	<h2 style="margin-top:20px"><?php echo $this->l('Your Account') ?></h2>
84
85	<!-- Admin firstname -->
86	<div class="field clearfix">
87		<label for="infosFirstname" class="aligned"><?php echo $this->l('First name') ?> </label>
88		<div class="contentinput">
89			<input class="text required" type="text" id="infosFirstname" name="adminFirstname" value="<?php echo htmlspecialchars($this->session->adminFirstname) ?>" />
90			<sup class="required">*</sup>
91		</div>
92		<?php echo $this->displayError('adminFirstname') ?>
93	</div>
94
95	<!-- Admin lastname -->
96	<div class="field clearfix">
97		<label for="infosName" class="aligned"><?php echo $this->l('Last name') ?> </label>
98		<div class="contentinput">
99			<input class="text required" type="text" id="infosName" name="adminLastname" value="<?php echo htmlspecialchars($this->session->adminLastname) ?>" />
100			<sup class="required">*</sup>
101		</div>
102		<?php echo $this->displayError('adminLastname') ?>
103	</div>
104
105	<!-- Admin email -->
106	<div class="field clearfix">
107		<label for="infosEmail" class="aligned"><?php echo $this->l('E-mail address') ?> </label>
108		<div class="contentinput">
109			<input type="text" class="text required" id="infosEmail" name="adminEmail" value="<?php echo htmlspecialchars($this->session->adminEmail) ?>" />
110			<sup class="required">*</sup>
111		</div>
112		<p class="userInfos aligned"><?php echo $this->l('This email address will be your username to access your store\'s back office.') ?></p>
113		<?php echo $this->displayError('adminEmail') ?>
114	</div>
115
116	<!-- Admin password -->
117	<div class="field clearfix">
118		<label for="infosPassword" class="aligned"><?php echo $this->l('Shop password') ?> </label>
119		<div class="contentinput">
120			<input autocomplete="off" type="password" class="text required" id="infosPassword" name="adminPassword" value="<?php echo htmlspecialchars($this->session->adminPassword) ?>" />
121			<sup class="required">*</sup>
122		</div>
123		<?php if ($this->displayError('adminPassword')): ?>
124			<?php echo $this->displayError('adminPassword') ?>
125		<?php else: ?>
126			<p class="userInfos aligned"><?php echo $this->l('Must be at least 8 characters') ?></p>
127		<?php endif; ?>
128	</div>
129
130	<!-- Admin password confirm -->
131	<div class="field clearfix">
132		<label class="aligned" for="infosPasswordRepeat"><?php echo $this->l('Re-type to confirm') ?> </label>
133		<div class="contentinput">
134			<input type="password" autocomplete="off" class="text required" id="infosPasswordRepeat" name="adminPasswordConfirm" value="<?php echo htmlspecialchars($this->session->adminPasswordConfirm) ?>" />
135			<sup class="required">*</sup>
136		</div>
137		<?php echo $this->displayError('adminPasswordConfirm') ?>
138	</div>
139	<br />
140	<span><small><?php echo sprintf($this->l('All information you give us is collected by us and is subject to data processing and statistics, it is necessary for the members of the thirty bees company in order to respond to your requests. Your personal data may be communicated to service providers and partners as part of partner relationships. Under the current "Act on Data Processing, Data Files and Individual Liberties" you have the right to access, rectify and oppose to the processing of your personal data through this <a href="%s" onclick="return !window.open(this.href)">link</a>.'), 'mailto:legal@thirtybees.com'); ?></small></span>
141</div>
142
143<!-- Partners form -->
144<div id="benefitsBlock" style="display:none"></div>
145
146<?php $this->displayTemplate('footer') ?>
147