forked from mirrors/easyappointments
Integrated tab component to settings page.
This commit is contained in:
parent
36e507adc0
commit
355ddaeda4
2 changed files with 325 additions and 324 deletions
|
@ -28,157 +28,164 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="settings-page" class="container-fluid">
|
<div id="settings-page" class="container-fluid">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
||||||
<li role="representation" class="general-tab tab"><a><?= lang('general') ?></a></li>
|
<li role="presentation" class="active">
|
||||||
|
<a href="#general" aria-controls="general" role="tab" data-toggle="tab"><?= lang('general') ?></a>
|
||||||
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
||||||
<li role="representation" class="business-logic-tab tab"><a><?= lang('business_logic') ?></a></li>
|
<li role="presentation">
|
||||||
|
<a href="#business-logic" aria-controls="business-logic" role="tab" data-toggle="tab"><?= lang('business_logic') ?></a>
|
||||||
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE): ?>
|
<?php if ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE): ?>
|
||||||
<li role="representation" class="user-tab tab"><a><?= lang('current_user') ?></a></li>
|
<li role="presentation">
|
||||||
|
<a href="#current-user" aria-controls="current-user" role="tab" data-toggle="tab"><?= lang('current_user') ?></a>
|
||||||
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
<li role="presentation">
|
||||||
<li role="representation" class="about-tab tab"><a><?= lang('about_ea') ?></a></li>
|
<a href="#about-ea" aria-controls="about-ea" role="tab" data-toggle="tab"><?= lang('about_ea') ?></a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- GENERAL TAB -->
|
<div class="tab-content">
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
<!-- GENERAL TAB -->
|
||||||
<div id="general" class="tab-content <?= $hidden ?>">
|
|
||||||
<form>
|
|
||||||
<fieldset>
|
|
||||||
<legend>
|
|
||||||
<?= lang('general_settings') ?>
|
|
||||||
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
|
||||||
<button type="button" class="save-settings btn btn-primary btn-xs"
|
|
||||||
title="<?= lang('save') ?>">
|
|
||||||
<span class="glyphicon glyphicon-floppy-disk"></span>
|
|
||||||
<?= lang('save') ?>
|
|
||||||
</button>
|
|
||||||
<?php endif ?>
|
|
||||||
</legend>
|
|
||||||
|
|
||||||
<div class="wrapper row">
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
||||||
<div class="col-md-6">
|
<div role="tabpanel" class="tab-pane active <?= $hidden ?>" id="general">
|
||||||
<div class="form-group">
|
<form>
|
||||||
<label for="company-name"><?= lang('company_name') ?> *</label>
|
<fieldset>
|
||||||
<input type="text" id="company-name" data-field="company_name" class="required form-control">
|
<legend>
|
||||||
<span class="help-block">
|
<?= lang('general_settings') ?>
|
||||||
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
||||||
|
<button type="button" class="save-settings btn btn-primary btn-xs"
|
||||||
|
title="<?= lang('save') ?>">
|
||||||
|
<span class="glyphicon glyphicon-floppy-disk"></span>
|
||||||
|
<?= lang('save') ?>
|
||||||
|
</button>
|
||||||
|
<?php endif ?>
|
||||||
|
</legend>
|
||||||
|
|
||||||
|
<div class="wrapper row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="company-name"><?= lang('company_name') ?> *</label>
|
||||||
|
<input type="text" id="company-name" data-field="company_name" class="required form-control">
|
||||||
|
<span class="help-block">
|
||||||
<?= lang('company_name_hint') ?>
|
<?= lang('company_name_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="company-email"><?= lang('company_email') ?> *</label>
|
<label for="company-email"><?= lang('company_email') ?> *</label>
|
||||||
<input type="text" id="company-email" data-field="company_email" class="required form-control">
|
<input type="text" id="company-email" data-field="company_email" class="required form-control">
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('company_email_hint') ?>
|
<?= lang('company_email_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="company-link"><?= lang('company_link') ?> *</label>
|
<label for="company-link"><?= lang('company_link') ?> *</label>
|
||||||
<input type="text" id="company-link" data-field="company_link" class="required form-control">
|
<input type="text" id="company-link" data-field="company_link" class="required form-control">
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('company_link_hint') ?>
|
<?= lang('company_link_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-md-6">
|
||||||
<div class="col-md-6">
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<label for="google-analytics-code">
|
||||||
<label for="google-analytics-code">
|
Google Analytics ID</label>
|
||||||
Google Analytics ID</label>
|
<input type="text" id="google-analytics-code" placeholder="UA-XXXXXXXX-X"
|
||||||
<input type="text" id="google-analytics-code" placeholder="UA-XXXXXXXX-X"
|
data-field="google_analytics_code" class="form-control">
|
||||||
data-field="google_analytics_code" class="form-control">
|
<span class="help-block">
|
||||||
<span class="help-block">
|
|
||||||
<?= lang('google_analytics_code_hint') ?>
|
<?= lang('google_analytics_code_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="date-format">
|
<label for="date-format">
|
||||||
<?= lang('date_format') ?>
|
<?= lang('date_format') ?>
|
||||||
</label>
|
</label>
|
||||||
<select class="form-control" id="date-format" data-field="date_format">
|
<select class="form-control" id="date-format" data-field="date_format">
|
||||||
<option value="DMY">DMY</option>
|
<option value="DMY">DMY</option>
|
||||||
<option value="MDY">MDY</option>
|
<option value="MDY">MDY</option>
|
||||||
<option value="YMD">YMD</option>
|
<option value="YMD">YMD</option>
|
||||||
</select>
|
</select>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('date_format_hint') ?>
|
<?= lang('date_format_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><?= lang('customer_notifications') ?></label>
|
<label><?= lang('customer_notifications') ?></label>
|
||||||
<br>
|
<br>
|
||||||
<button type="button" id="customer-notifications" class="btn btn-default" data-toggle="button" aria-pressed="false">
|
<button type="button" id="customer-notifications" class="btn btn-default" data-toggle="button" aria-pressed="false">
|
||||||
<span class="glyphicon glyphicon-envelope"></span>
|
<span class="glyphicon glyphicon-envelope"></span>
|
||||||
<?= lang('receive_notifications') ?>
|
<?= lang('receive_notifications') ?>
|
||||||
</button>
|
</button>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('customer_notifications_hint') ?>
|
<?= lang('customer_notifications_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="require-captcha">
|
<label for="require-captcha">
|
||||||
CAPTCHA
|
CAPTCHA
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<button type="button" id="require-captcha" class="btn btn-default" data-toggle="button" aria-pressed="false">
|
<button type="button" id="require-captcha" class="btn btn-default" data-toggle="button" aria-pressed="false">
|
||||||
<span class="glyphicon glyphicon-lock"></span>
|
<span class="glyphicon glyphicon-lock"></span>
|
||||||
<?= lang('require_captcha') ?>
|
<?= lang('require_captcha') ?>
|
||||||
</button>
|
</button>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('require_captcha_hint') ?>
|
<?= lang('require_captcha_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
</fieldset>
|
</form>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- BUSINESS LOGIC TAB -->
|
<!-- BUSINESS LOGIC TAB -->
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
||||||
<div id="business-logic" class="tab-content <?= $hidden ?>">
|
<div role="tabpanel" class="tab-pane <?= $hidden ?>" id="business-logic">
|
||||||
<form>
|
<form>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
<?= lang('business_logic') ?>
|
<?= lang('business_logic') ?>
|
||||||
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
||||||
<button type="button" class="save-settings btn btn-primary btn-xs"
|
<button type="button" class="save-settings btn btn-primary btn-xs"
|
||||||
title="<?= lang('save') ?>">
|
title="<?= lang('save') ?>">
|
||||||
<span class="glyphicon glyphicon-floppy-disk"></span>
|
<span class="glyphicon glyphicon-floppy-disk"></span>
|
||||||
<?= lang('save') ?>
|
<?= lang('save') ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-7 working-plan-wrapper">
|
<div class="col-md-7 working-plan-wrapper">
|
||||||
<h4><?= lang('working_plan') ?></h4>
|
<h4><?= lang('working_plan') ?></h4>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('edit_working_plan_hint') ?>
|
<?= lang('edit_working_plan_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<table class="working-plan table table-striped">
|
<table class="working-plan table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= lang('day') ?></th>
|
<th><?= lang('day') ?></th>
|
||||||
<th><?= lang('start') ?></th>
|
<th><?= lang('start') ?></th>
|
||||||
<th><?= lang('end') ?></th>
|
<th><?= lang('end') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="monday" />
|
<input type="checkbox" id="monday" />
|
||||||
<?= lang('monday') ?>
|
<?= lang('monday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -190,7 +197,7 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="tuesday" />
|
<input type="checkbox" id="tuesday" />
|
||||||
<?= lang('tuesday') ?>
|
<?= lang('tuesday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -202,7 +209,7 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="wednesday" />
|
<input type="checkbox" id="wednesday" />
|
||||||
<?= lang('wednesday') ?>
|
<?= lang('wednesday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -214,7 +221,7 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="thursday" />
|
<input type="checkbox" id="thursday" />
|
||||||
<?= lang('thursday') ?>
|
<?= lang('thursday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -226,7 +233,7 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="friday" />
|
<input type="checkbox" id="friday" />
|
||||||
<?= lang('friday') ?>
|
<?= lang('friday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -238,7 +245,7 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="saturday" />
|
<input type="checkbox" id="saturday" />
|
||||||
<?= lang('saturday') ?>
|
<?= lang('saturday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -250,231 +257,234 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="sunday" />
|
<input type="checkbox" id="sunday" />
|
||||||
<?= lang('sunday') ?>
|
<?= lang('sunday') ?>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td><input type="text" id="sunday-start" class="work-start" /></td>
|
<td><input type="text" id="sunday-start" class="work-start" /></td>
|
||||||
<td><input type="text" id="sunday-end" class="work-end" /></td>
|
<td><input type="text" id="sunday-end" class="work-end" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h4><?= lang('book_advance_timeout') ?></h4>
|
<h4><?= lang('book_advance_timeout') ?></h4>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('book_advance_timeout_hint') ?>
|
<?= lang('book_advance_timeout_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="book-advance-timeout"><?= lang('timeout_minutes') ?></label>
|
<label for="book-advance-timeout"><?= lang('timeout_minutes') ?></label>
|
||||||
<input type="text" id="book-advance-timeout" data-field="book_advance_timeout" class="form-control" />
|
<input type="text" id="book-advance-timeout" data-field="book_advance_timeout" class="form-control" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-md-5 breaks-wrapper">
|
||||||
<div class="col-md-5 breaks-wrapper">
|
<h4><?= lang('breaks') ?></h4>
|
||||||
<h4><?= lang('breaks') ?></h4>
|
|
||||||
|
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<?= lang('edit_breaks_hint') ?>
|
<?= lang('edit_breaks_hint') ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<button type="button" class="add-break btn btn-primary">
|
<button type="button" class="add-break btn btn-primary">
|
||||||
<span class="glyphicon glyphicon-white glyphicon glyphicon-plus"></span>
|
<span class="glyphicon glyphicon-white glyphicon glyphicon-plus"></span>
|
||||||
<?= lang('add_break');?>
|
<?= lang('add_break');?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table class="breaks table table-striped">
|
<table class="breaks table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= lang('day') ?></th>
|
<th><?= lang('day') ?></th>
|
||||||
<th><?= lang('start') ?></th>
|
<th><?= lang('start') ?></th>
|
||||||
<th><?= lang('end') ?></th>
|
<th><?= lang('end') ?></th>
|
||||||
<th><?= lang('actions') ?></th>
|
<th><?= lang('actions') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
</fieldset>
|
</form>
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- USER TAB -->
|
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
|
||||||
<div id="user" class="tab-content <?= $hidden ?>">
|
|
||||||
<form class="row">
|
|
||||||
<fieldset class="col-xs-12 col-sm-6 personal-info-wrapper">
|
|
||||||
<legend>
|
|
||||||
<?= lang('personal_information') ?>
|
|
||||||
<?php if ($privileges[PRIV_USER_SETTINGS]['edit'] == TRUE): ?>
|
|
||||||
<button type="button" class="save-settings btn btn-primary btn-xs"
|
|
||||||
title="<?= lang('save') ?>">
|
|
||||||
<span class="glyphicon glyphicon-floppy-disk"></span>
|
|
||||||
<?= lang('save') ?>
|
|
||||||
</button>
|
|
||||||
<?php endif ?>
|
|
||||||
</legend>
|
|
||||||
|
|
||||||
<input type="hidden" id="user-id" />
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="first-name"><?= lang('first_name') ?> *</label>
|
|
||||||
<input type="text" id="first-name" class="form-control required" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="last-name"><?= lang('last_name') ?> *</label>
|
|
||||||
<input type="text" id="last-name" class="form-control required" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="email"><?= lang('email') ?> *</label>
|
|
||||||
<input type="text" id="email" class="form-control required" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="phone-number"><?= lang('phone_number') ?> *</label>
|
|
||||||
<input type="text" id="phone-number" class="form-control required" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="mobile-number"><?= lang('mobile_number') ?></label>
|
|
||||||
<input type="text" id="mobile-number" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="address"><?= lang('address') ?></label>
|
|
||||||
<input type="text" id="address" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="city"><?= lang('city') ?></label>
|
|
||||||
<input type="text" id="city" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="state"><?= lang('state') ?></label>
|
|
||||||
<input type="text" id="state" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="zip-code"><?= lang('zip_code') ?></label>
|
|
||||||
<input type="text" id="zip-code" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="notes"><?= lang('notes') ?></label>
|
|
||||||
<textarea id="notes" class="form-control" rows="3"></textarea>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset class="col-xs-12 col-sm-6 miscellaneous-wrapper">
|
|
||||||
<legend><?= lang('system_login') ?></legend>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="username"><?= lang('username') ?> *</label>
|
|
||||||
<input type="text" id="username" class="form-control required" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="password"><?= lang('password') ?></label>
|
|
||||||
<input type="password" id="password" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="retype-password"><?= lang('retype_password') ?></label>
|
|
||||||
<input type="password" id="retype-password" class="form-control" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="calendar-view"><?= lang('calendar') ?> *</label>
|
|
||||||
<select id="calendar-view" class="form-control required">
|
|
||||||
<option value="default">Default</option>
|
|
||||||
<option value="table">Table</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button type="button" id="user-notifications" class="btn btn-default" data-toggle="button">
|
|
||||||
<span class="glyphicon glyphicon-envelope"></span>
|
|
||||||
<?= lang('receive_notifications') ?>
|
|
||||||
</button>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- ABOUT TAB -->
|
|
||||||
|
|
||||||
<div id="about" class="tab-content">
|
|
||||||
<h3>Easy!Appointments</h3>
|
|
||||||
<p>
|
|
||||||
<?= lang('about_ea_info') ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<div class="current-version">
|
|
||||||
<?php
|
|
||||||
echo lang('current_version') . ' ';
|
|
||||||
echo $this->config->item('version');
|
|
||||||
$release_title = $this->config->item('release_label');
|
|
||||||
if ($release_title != '') {
|
|
||||||
echo ' - ' . $release_title;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<!-- CURRENT USER TAB -->
|
||||||
|
|
||||||
<h3><?= lang('support') ?></h3>
|
<?php $hidden = ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
||||||
<p>
|
<div role="tabpanel" class="tab-pane <?= $hidden ?>" id="current-user">
|
||||||
<?= lang('about_ea_support') ?>
|
<form>
|
||||||
<br><br>
|
<div class="row">
|
||||||
<a href="http://easyappointments.org">
|
<fieldset class="col-xs-12 col-sm-6 personal-info-wrapper">
|
||||||
<?= lang('official_website') ?>
|
<legend>
|
||||||
</a>
|
<?= lang('personal_information') ?>
|
||||||
|
|
<?php if ($privileges[PRIV_USER_SETTINGS]['edit'] == TRUE): ?>
|
||||||
<a href="https://groups.google.com/forum/#!forum/easy-appointments">
|
<button type="button" class="save-settings btn btn-primary btn-xs"
|
||||||
<?= lang('support_group') ?>
|
title="<?= lang('save') ?>">
|
||||||
</a>
|
<span class="glyphicon glyphicon-floppy-disk"></span>
|
||||||
|
|
<?= lang('save') ?>
|
||||||
<a href="https://github.com/alextselegidis/easyappointments/issues">
|
</button>
|
||||||
<?= lang('project_issues') ?>
|
<?php endif ?>
|
||||||
</a>
|
</legend>
|
||||||
|
|
|
||||||
<a href="http://easyappointments.wordpress.com">
|
|
||||||
E!A Blog
|
|
||||||
</a>
|
|
||||||
|
|
|
||||||
<a href="https://www.facebook.com/easyappointments.org">
|
|
||||||
Facebook
|
|
||||||
</a>
|
|
||||||
|
|
|
||||||
<a href="https://plus.google.com/+EasyappointmentsOrg">
|
|
||||||
Google+
|
|
||||||
</a>
|
|
||||||
|
|
|
||||||
<a href="https://twitter.com/EasyAppts">
|
|
||||||
Twitter
|
|
||||||
</a>
|
|
||||||
|
|
|
||||||
<a href="https://plus.google.com/communities/105333709485142846840">
|
|
||||||
<?= lang('google_plus_community') ?>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<br>
|
<input type="hidden" id="user-id" />
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="first-name"><?= lang('first_name') ?> *</label>
|
||||||
|
<input type="text" id="first-name" class="form-control required" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="last-name"><?= lang('last_name') ?> *</label>
|
||||||
|
<input type="text" id="last-name" class="form-control required" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email"><?= lang('email') ?> *</label>
|
||||||
|
<input type="text" id="email" class="form-control required" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="phone-number"><?= lang('phone_number') ?> *</label>
|
||||||
|
<input type="text" id="phone-number" class="form-control required" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="mobile-number"><?= lang('mobile_number') ?></label>
|
||||||
|
<input type="text" id="mobile-number" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="address"><?= lang('address') ?></label>
|
||||||
|
<input type="text" id="address" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="city"><?= lang('city') ?></label>
|
||||||
|
<input type="text" id="city" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="state"><?= lang('state') ?></label>
|
||||||
|
<input type="text" id="state" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="zip-code"><?= lang('zip_code') ?></label>
|
||||||
|
<input type="text" id="zip-code" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="notes"><?= lang('notes') ?></label>
|
||||||
|
<textarea id="notes" class="form-control" rows="3"></textarea>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset class="col-xs-12 col-sm-6 miscellaneous-wrapper">
|
||||||
|
<legend><?= lang('system_login') ?></legend>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="username"><?= lang('username') ?> *</label>
|
||||||
|
<input type="text" id="username" class="form-control required" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password"><?= lang('password') ?></label>
|
||||||
|
<input type="password" id="password" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="retype-password"><?= lang('retype_password') ?></label>
|
||||||
|
<input type="password" id="retype-password" class="form-control" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="calendar-view"><?= lang('calendar') ?> *</label>
|
||||||
|
<select id="calendar-view" class="form-control required">
|
||||||
|
<option value="default">Default</option>
|
||||||
|
<option value="table">Table</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="button" id="user-notifications" class="btn btn-default" data-toggle="button">
|
||||||
|
<span class="glyphicon glyphicon-envelope"></span>
|
||||||
|
<?= lang('receive_notifications') ?>
|
||||||
|
</button>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- ABOUT E!A TAB -->
|
||||||
|
|
||||||
|
<div role="tabpanel" class="tab-pane" id="about-ea">
|
||||||
|
<h3>Easy!Appointments</h3>
|
||||||
|
<p>
|
||||||
|
<?= lang('about_ea_info') ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div class="current-version">
|
||||||
|
<?= lang('current_version') ?>
|
||||||
|
<?= $this->config->item('version') ?>
|
||||||
|
<?php if ($this->config->item('release_label')): ?>
|
||||||
|
- <?= $this->config->item('release_label') ?>
|
||||||
|
<?php endif ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3><?= lang('support') ?></h3>
|
||||||
|
<p>
|
||||||
|
<?= lang('about_ea_support') ?>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<a href="http://easyappointments.org">
|
||||||
|
<?= lang('official_website') ?>
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://groups.google.com/forum/#!forum/easy-appointments">
|
||||||
|
<?= lang('support_group') ?>
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://github.com/alextselegidis/easyappointments/issues">
|
||||||
|
<?= lang('project_issues') ?>
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="http://easyappointments.wordpress.com">
|
||||||
|
E!A Blog
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://www.facebook.com/easyappointments.org">
|
||||||
|
Facebook
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://plus.google.com/+EasyappointmentsOrg">
|
||||||
|
Google+
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://twitter.com/EasyAppts">
|
||||||
|
Twitter
|
||||||
|
</a>
|
||||||
|
|
|
||||||
|
<a href="https://plus.google.com/communities/105333709485142846840">
|
||||||
|
<?= lang('google_plus_community') ?>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h3><?= lang('license') ?></h3>
|
||||||
|
<p>
|
||||||
|
<?= lang('about_ea_license') ?>
|
||||||
|
<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h3><?= lang('license') ?></h3>
|
|
||||||
<p>
|
|
||||||
<?= lang('about_ea_license') ?>
|
|
||||||
<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -138,25 +138,18 @@ window.BackendSettings = window.BackendSettings || {};
|
||||||
*
|
*
|
||||||
* Change the visible tab contents.
|
* Change the visible tab contents.
|
||||||
*/
|
*/
|
||||||
$('.tab').click(function() {
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (event) {
|
||||||
// Bootstrap has a bug with toggle buttons. Their toggle state is lost when the
|
// Bootstrap has a bug with toggle buttons. Their toggle state is lost when the button is hidden or shown.
|
||||||
// button is hidden or shown. Show before anything else we need to store the toggle
|
// Show before anything else we need to store the toggle and apply it whenever the user tab is clicked.
|
||||||
// and apply it whenever the user tab is clicked..
|
|
||||||
var areNotificationsActive = $('#user-notifications').hasClass('active');
|
var areNotificationsActive = $('#user-notifications').hasClass('active');
|
||||||
|
|
||||||
$(this).parent().find('.active').removeClass('active');
|
var href = $(this).attr('href');
|
||||||
$(this).addClass('active');
|
|
||||||
$('.tab-content').hide();
|
|
||||||
|
|
||||||
if ($(this).hasClass('general-tab')) {
|
if (href === '#general') {
|
||||||
$('#general').show();
|
|
||||||
settings = new SystemSettings();
|
settings = new SystemSettings();
|
||||||
} else if ($(this).hasClass('business-logic-tab')) {
|
} else if (href === '#business-logic') {
|
||||||
$('#business-logic').show();
|
|
||||||
settings = new SystemSettings();
|
settings = new SystemSettings();
|
||||||
|
} else if (href === '#current-user') {
|
||||||
} else if ($(this).hasClass('user-tab')) {
|
|
||||||
$('#user').show();
|
|
||||||
settings = new UserSettings();
|
settings = new UserSettings();
|
||||||
|
|
||||||
// Apply toggle state to user notifications button.
|
// Apply toggle state to user notifications button.
|
||||||
|
@ -165,8 +158,6 @@ window.BackendSettings = window.BackendSettings || {};
|
||||||
} else {
|
} else {
|
||||||
$('#user-notifications').removeClass('active');
|
$('#user-notifications').removeClass('active');
|
||||||
}
|
}
|
||||||
} else if ($(this).hasClass('about-tab')) {
|
|
||||||
$('#about').show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Backend.placeFooterToBottom();
|
Backend.placeFooterToBottom();
|
||||||
|
|
Loading…
Reference in a new issue