2013-09-14 19:10:59 +03:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="<?php echo $base_url; ?>assets/js/backend_settings.js"></script>
|
2013-09-18 19:36:29 +03:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="<?php echo $base_url; ?>assets/js/libs/jquery/jquery-ui-timepicker-addon.js"></script>
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="<?php echo $base_url; ?>assets/js/libs/jquery/jquery.jeditable.min.js"></script>
|
2013-09-14 19:10:59 +03:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var GlobalVariables = {
|
|
|
|
'baseUrl': <?php echo '"' . $base_url . '"'; ?>,
|
2013-09-23 18:42:36 +03:00
|
|
|
'userSlug': <?php echo '"' . $role_slug . '"'; ?>,
|
2013-09-14 19:10:59 +03:00
|
|
|
'settings': {
|
|
|
|
'system': <?php echo json_encode($system_settings); ?>,
|
|
|
|
'user': <?php echo json_encode($user_settings); ?>
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
BackendSettings.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
2013-06-18 19:06:34 +03:00
|
|
|
|
2013-09-18 19:36:29 +03:00
|
|
|
<div id="settings-page" class="row-fluid">
|
2013-09-14 19:10:59 +03:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="general-tab tab active"><a>General</a></li>
|
|
|
|
<li class="business-logic-tab tab"><a>Business Logic</a></li>
|
|
|
|
<li class="user-tab tab"><a>User</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// GENERAL TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
|
|
|
<div id="general" class="tab-content">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
General Settings
|
2013-09-18 19:36:29 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-mini">Save</button>
|
2013-09-14 19:10:59 +03:00
|
|
|
</legend>
|
|
|
|
|
|
|
|
<label for="company-name">Company Name *</label>
|
|
|
|
<input type="text" id="company-name" data-field="company_name">
|
|
|
|
<span class="help-block">Company name will be displayed everywhere on the system
|
|
|
|
(required).</span>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<label for="company-email">Company Email *</label>
|
|
|
|
<input type="text" id="company-email" data-field="company_email">
|
|
|
|
<span class="help-block">This will be the company email address. It will be used
|
|
|
|
as the sender and the reply address of the system emails (required).</span>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<label for="company-link">Company Link</label>
|
|
|
|
<input type="text" id="company-link" data-field="company_link">
|
|
|
|
<span class="help-block">Company link should point to the official website of
|
|
|
|
the company (optional).</span>
|
2013-09-24 16:09:04 +03:00
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
|
|
|
<a href="<?php echo $this->config->base_url(); ?>" class="btn btn-primary btn-large">
|
|
|
|
<i class="icon-calendar icon-white"></i>
|
|
|
|
Visit Book Appointment Page
|
|
|
|
</a>
|
2013-09-14 19:10:59 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// BUSINESS LOGIC TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
|
|
|
<div id="business-logic" class="tab-content" style="display: none;">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
Business Logic
|
2013-09-18 19:36:29 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-mini">Save</button>
|
2013-09-14 19:10:59 +03:00
|
|
|
</legend>
|
|
|
|
|
2013-09-18 19:36:29 +03:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span7">
|
|
|
|
<h4>Working Plan</h4>
|
|
|
|
<span class="help-block">
|
|
|
|
Mark below the days and hours that your company will accept appointments.
|
|
|
|
You will be able to adjust appointments in non working hours but the customers
|
|
|
|
will not be able to book appointments by themselves in non working periods.
|
|
|
|
<strong>This working plan will be the default for every new provider record but
|
|
|
|
you will be able to change each provider's plan separately by editing his
|
|
|
|
record.</strong> After that you can add break periods.
|
|
|
|
</span>
|
|
|
|
|
2013-09-20 16:58:11 +03:00
|
|
|
<table class="working-plan table table-striped">
|
2013-09-18 19:36:29 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Day</th>
|
|
|
|
<th>Start</th>
|
|
|
|
<th>End</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="monday" />Monday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="monday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="monday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="tuesday" />Tuesday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="tuesday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="tuesday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="wednesday" />Wednesday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="wednesday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="wednesday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="thursday" />Thursday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="thursday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="thursday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="friday" />Friday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="friday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="friday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="saturday" />Saturday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="saturday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="saturday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label class="checkbox"><input type="checkbox" id="sunday" />Sunday</label></td>
|
2013-09-20 16:58:11 +03:00
|
|
|
<td><input type="text" id="sunday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="sunday-end" class="work-end" /></td>
|
2013-09-18 19:36:29 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h4>Book Advance Timeout</h4>
|
|
|
|
<span class="help-block">
|
|
|
|
Define the timeout (in minutes) before the customers can book or re-arrange
|
|
|
|
appointments with the company.
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<label for="book-advance-timeout">Timeout (Minutes)</label>
|
|
|
|
<input type="text" id="book-advance-timeout" data-field="book_advance_timeout" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="span5">
|
|
|
|
<h4>Breaks</h4>
|
|
|
|
|
|
|
|
<span class="help-block">
|
|
|
|
Add the working breaks during each day. These breaks will be applied for
|
|
|
|
all new providers.
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<button type="button" class="add-break btn btn-primary">
|
|
|
|
<i class="icon-white icon-plus"></i>
|
|
|
|
Add Break
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<table id="breaks" class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Day</th>
|
|
|
|
<th>Start</th>
|
|
|
|
<th>End</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2013-09-14 19:10:59 +03:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// USER TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
|
|
|
<div id="user" class="tab-content" style="display: none;">
|
|
|
|
<form class="row-fluid">
|
|
|
|
<fieldset class="span5">
|
|
|
|
<legend>
|
|
|
|
Personal Info
|
2013-09-18 19:36:29 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-mini">Save</button>
|
2013-09-14 19:10:59 +03:00
|
|
|
</legend>
|
|
|
|
|
|
|
|
<input type="hidden" id="user-id" />
|
|
|
|
|
|
|
|
<label for="first-name">First Name</label>
|
|
|
|
<input type="text" id="first-name" class="span9" />
|
|
|
|
|
|
|
|
<label for="last-name">Last Name *</label>
|
2013-09-20 16:58:11 +03:00
|
|
|
<input type="text" id="last-name" class="span9 required" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
|
|
|
<label for="email">Email *</label>
|
2013-09-20 16:58:11 +03:00
|
|
|
<input type="text" id="email" class="span9 required" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
|
|
|
<label for="mobile-number">Mobile Number</label>
|
|
|
|
<input type="text" id="mobile-number" class="span9" />
|
|
|
|
|
2013-09-20 16:58:11 +03:00
|
|
|
<label for="phone-number">Phone Number *</label>
|
|
|
|
<input type="text" id="phone-number" class="span9 required" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
|
|
|
<label for="address">Address</label>
|
|
|
|
<input type="text" id="address" class="span9" />
|
|
|
|
|
|
|
|
<label for="city">City</label>
|
|
|
|
<input type="text" id="city" class="span9" />
|
|
|
|
|
|
|
|
<label for="state">State</label>
|
|
|
|
<input type="text" id="state" class="span9" />
|
|
|
|
|
|
|
|
<label for="zip-code">Zip Code</label>
|
|
|
|
<input type="text" id="zip-code" class="span9" />
|
|
|
|
|
|
|
|
<label for="notes">Notes</label>
|
2013-09-24 16:09:04 +03:00
|
|
|
<textarea id="notes" class="span9" rows="3"></textarea>
|
2013-09-14 19:10:59 +03:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="span5">
|
|
|
|
<legend>Miscellaneous</legend>
|
|
|
|
|
|
|
|
<label for="username">Username *</label>
|
2013-09-20 16:58:11 +03:00
|
|
|
<input type="text" id="username" class="required" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
2013-09-20 16:58:11 +03:00
|
|
|
<label for="password">Password</label>
|
|
|
|
<input type="password" id="password" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
2013-09-20 16:58:11 +03:00
|
|
|
<label for="retype-password">Retype Password</label>
|
|
|
|
<input type="password" id="retype-password" />
|
2013-09-14 19:10:59 +03:00
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2013-09-20 16:58:11 +03:00
|
|
|
<button type="button" id="user-notifications" class="btn" data-toggle="button">
|
2013-09-14 19:10:59 +03:00
|
|
|
<i class="icon-asterisk"></i>
|
|
|
|
Receive Email Notifications
|
|
|
|
</button>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
</div>
|