2017-09-08 15:08:05 +03:00
|
|
|
<script src="<?php echo base_url('assets/js/backend_users_admins.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/js/backend_users_providers.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/js/backend_users_secretaries.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/js/backend_users.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/js/working_plan.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/ext/jquery-ui/jquery-ui-timepicker-addon.js'); ?>"></script>
|
|
|
|
<script src="<?php echo base_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js'); ?>"></script>
|
2017-09-05 15:58:34 +03:00
|
|
|
<script>
|
2015-10-05 01:31:06 +03:00
|
|
|
var GlobalVariables = {
|
2016-04-26 22:33:44 +03:00
|
|
|
csrfToken : <?php echo json_encode($this->security->get_csrf_hash()); ?>,
|
|
|
|
baseUrl : <?php echo json_encode($base_url); ?>,
|
|
|
|
dateFormat : <?php echo json_encode($date_format); ?>,
|
|
|
|
admins : <?php echo json_encode($admins); ?>,
|
|
|
|
providers : <?php echo json_encode($providers); ?>,
|
|
|
|
secretaries : <?php echo json_encode($secretaries); ?>,
|
|
|
|
services : <?php echo json_encode($services); ?>,
|
|
|
|
workingPlan : <?php echo json_encode(json_decode($working_plan)); ?>,
|
|
|
|
user : {
|
|
|
|
id : <?php echo $user_id; ?>,
|
|
|
|
email : <?php echo json_encode($user_email); ?>,
|
|
|
|
role_slug : <?php echo json_encode($role_slug); ?>,
|
|
|
|
privileges: <?php echo json_encode($privileges); ?>
|
2015-10-05 01:31:06 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
BackendUsers.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2016-07-15 22:15:27 +03:00
|
|
|
<div id="users-page" class="container-fluid backend-page">
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- PAGE NAVIGATION -->
|
|
|
|
|
2015-10-05 01:31:06 +03:00
|
|
|
<ul class="nav nav-tabs">
|
2017-09-08 15:06:37 +03:00
|
|
|
<li role="presentation" class="admins-tab tab active"><a><?php echo lang('admins'); ?></a></li>
|
|
|
|
<li role="presentation" class="providers-tab tab"><a><?php echo lang('providers'); ?></a></li>
|
|
|
|
<li role="presentation" class="secretaries-tab tab"><a><?php echo lang('secretaries'); ?></a></li>
|
2015-10-05 01:31:06 +03:00
|
|
|
</ul>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- ADMINS TAB -->
|
|
|
|
|
2015-10-05 01:31:06 +03:00
|
|
|
<div id="admins" class="tab-content">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="row">
|
2016-07-14 22:08:36 +03:00
|
|
|
<div id="filter-admins" class="filter-records column col-xs-12 col-sm-5">
|
2015-12-14 00:43:18 +02:00
|
|
|
<form class="input-append">
|
|
|
|
<input class="key" type="text" />
|
|
|
|
<div class="btn-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="filter btn btn-default btn-sm" type="submit" title="<?php echo lang('filter'); ?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
|
|
</button>
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="clear btn btn-default btn-sm" type="button" title="<?php echo lang('clear'); ?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-repeat"></span>
|
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</form>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('admins'); ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-15 22:15:27 +03:00
|
|
|
<div class="record-details column col-xs-12 col-sm-7">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-admin" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('add'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="edit-admin" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('edit'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="delete-admin" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-remove"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('delete'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-admin" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('save'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="cancel-admin" class="btn btn-default">
|
|
|
|
<span class="glyphicon glyphicon-ban-circle"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('cancel'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2015-11-28 12:19:44 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('details'); ?></h3>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<input type="hidden" id="admin-id" class="record-id" />
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-14 22:08:36 +03:00
|
|
|
<div class="row">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="admin-details col-md-6">
|
2015-10-05 01:31:06 +03:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="first-name"><?php echo lang('first_name'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-first-name" class="form-control required" maxlength="256" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-last-name"><?php echo lang('last_name'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-last-name" class="form-control required" maxlength="512" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-email"><?php echo lang('email'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-email" class="form-control required" maxlength="512" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-phone-number"><?php echo lang('phone_number'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-phone-number" class="form-control required" maxlength="128" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-mobile-number"><?php echo lang('mobile_number'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-mobile-number" class="form-control" maxlength="128" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-address"><?php echo lang('address'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-address" class="form-control" maxlength="256" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-city"><?php echo lang('city'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-city" class="form-control" maxlength="256" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-state"><?php echo lang('state'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-state" class="form-control" maxlength="128" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-zip-code"><?php echo lang('zip_code'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-zip-code" class="form-control" maxlength="64" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-notes"><?php echo lang('notes'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
<textarea id="admin-notes" class="form-control" rows="3"></textarea>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="admin-settings col-md-6">
|
2015-10-05 01:31:06 +03:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-username"><?php echo lang('username'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="admin-username" class="form-control required" maxlength="256" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-password"><?php echo lang('password'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="admin-password" class="form-control required" maxlength="512" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-password-confirm"><?php echo lang('retype_password'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="admin-password-confirm" class="form-control required" maxlength="512" />
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2016-07-19 00:46:15 +03:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="admin-calendar-view"><?php echo lang('calendar'); ?> *</label>
|
2016-07-19 00:46:15 +03:00
|
|
|
<select id="admin-calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2015-10-05 01:31:06 +03:00
|
|
|
<br>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<button type="button" id="admin-notifications" class="btn btn-default" data-toggle="button">
|
2015-10-05 01:31:06 +03:00
|
|
|
<span class="glyphicon glyphicon-envelope"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<span><?php echo lang('receive_notifications'); ?></span>
|
2015-10-05 01:31:06 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- PROVIDERS TAB -->
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div id="providers" class="tab-content" style="display:none;">
|
|
|
|
<div class="row">
|
2016-07-14 22:08:36 +03:00
|
|
|
<div id="filter-providers" class="filter-records column col-xs-12 col-sm-5">
|
2015-12-14 00:43:18 +02:00
|
|
|
<form class="input-append">
|
|
|
|
<input class="key" type="text" />
|
|
|
|
<div class="btn-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="filter btn btn-default btn-sm" type="submit" title="<?php echo lang('filter'); ?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
|
|
</button>
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="clear btn btn-default btn-sm" type="button" title="<?php echo lang('clear'); ?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-repeat"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('providers'); ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-15 22:15:27 +03:00
|
|
|
<div class="record-details column col-xs-12 col-sm-7">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="pull-left">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-provider" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('add'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="edit-provider" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('edit'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="delete-provider" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-remove"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('delete'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-provider" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('save'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="cancel-provider" class="btn btn-default">
|
|
|
|
<span class="glyphicon glyphicon-ban-circle"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('cancel'); ?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="switch-view pull-right">
|
2017-09-08 15:06:37 +03:00
|
|
|
<strong><?php echo lang('current_view'); ?></strong>
|
|
|
|
<div class="display-details current"><?php echo lang('details'); ?></div>
|
|
|
|
<div class="display-working-plan"><?php echo lang('working_plan'); ?></div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<?php // This form message is outside the details view, so that it can be
|
|
|
|
// visible when the user has working plan view active. ?>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<div class="details-view provider-view">
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('details'); ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
|
|
|
<input type="hidden" id="provider-id" class="record-id" />
|
|
|
|
|
2016-07-14 22:08:36 +03:00
|
|
|
<div class="row">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="provider-details col-md-6">
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-first-name"><?php echo lang('first_name'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-first-name" class="form-control required" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-last-name"><?php echo lang('last_name'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-last-name" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-email"><?php echo lang('email'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-email" class="form-control required" max="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-phone-number"><?php echo lang('phone_number'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-phone-number" class="form-control required" max="128" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-mobile-number"><?php echo lang('mobile_number'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-mobile-number" class="form-control" maxlength="128" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-address"><?php echo lang('address'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-address" class="form-control" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-city"><?php echo lang('city'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-city" class="form-control" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-state"><?php echo lang('state'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-state" class="form-control" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-zip-code"><?php echo lang('zip_code'); ?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-zip-code" class="form-control" maxlength="64" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-notes"><?php echo lang('notes'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
<textarea id="provider-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="provider-settings col-md-6">
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-username"><?php echo lang('username'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="provider-username" class="form-control required" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-password"><?php echo lang('password'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="provider-password" class="form-control required" maxlength="512"/>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-password-confirm"><?php echo lang('retype_password'); ?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="provider-password-confirm" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-19 00:46:15 +03:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="provider-calendar-view"><?php echo lang('calendar'); ?> *</label>
|
2016-07-19 00:46:15 +03:00
|
|
|
<select id="provider-calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<button type="button" id="provider-notifications" class="btn btn-default" data-toggle="button">
|
|
|
|
<span class="glyphicon glyphicon-envelope"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<span><?php echo lang('receive_notifications'); ?></span>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<br><br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h4><?php echo lang('services'); ?></h4>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div id="provider-services"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="working-plan-view provider-view" style="display: none;">
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('working_plan'); ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
<button id="reset-working-plan" class="btn btn-primary"
|
|
|
|
title="Reset the working plan back to the default values.">
|
|
|
|
<span class="glyphicon glyphicon-repeat"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('reset_plan'); ?></button>
|
2015-12-14 00:43:18 +02:00
|
|
|
<table class="working-plan table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-09-08 15:06:37 +03:00
|
|
|
<th><?php echo lang('day'); ?></th>
|
|
|
|
<th><?php echo lang('start'); ?></th>
|
|
|
|
<th><?php echo lang('end'); ?></th>
|
2015-12-14 00:43:18 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="monday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('monday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="monday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="monday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="tuesday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('tuesday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="tuesday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="tuesday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="wednesday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('wednesday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="wednesday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="wednesday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="thursday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('thursday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="thursday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="thursday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="friday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('friday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="friday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="friday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="saturday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('saturday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="saturday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="saturday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" id="sunday" />
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('sunday'); ?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><input type="text" id="sunday-start" class="work-start" /></td>
|
|
|
|
<td><input type="text" id="sunday-end" class="work-end" /></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('breaks');?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
|
|
|
<span class="help-block">
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('add_breaks_during_each_day');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<button type="button" class="add-break btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('add_break');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<table class="breaks table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-09-08 15:06:37 +03:00
|
|
|
<th><?php echo lang('day');?></th>
|
|
|
|
<th><?php echo lang('start');?></th>
|
|
|
|
<th><?php echo lang('end');?></th>
|
|
|
|
<th><?php echo lang('actions');?></th>
|
2015-12-14 00:43:18 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- SECRETARIES TAB -->
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div id="secretaries" class="tab-content" style="display:none;">
|
|
|
|
<div class="row">
|
2016-07-14 22:08:36 +03:00
|
|
|
<div id="filter-secretaries" class="filter-records column col-xs-12 col-sm-5">
|
2015-12-14 00:43:18 +02:00
|
|
|
<form class="input-append">
|
|
|
|
<input class="key" type="text" />
|
|
|
|
<div class="btn-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="filter btn btn-default btn-sm" type="submit" title="<?php echo lang('filter');?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
|
|
</button>
|
2017-09-08 15:06:37 +03:00
|
|
|
<button class="clear btn btn-default btn-sm" type="button" title="<?php echo lang('clear');?>">
|
2015-12-14 00:43:18 +02:00
|
|
|
<span class="glyphicon glyphicon-repeat"></span>
|
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</form>
|
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('secretaries');?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-15 22:15:27 +03:00
|
|
|
<div class="record-details column col-xs-12 col-sm-7">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-secretary" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('add');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="edit-secretary" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('edit');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="delete-secretary" class="btn btn-default" disabled="disabled">
|
|
|
|
<span class="glyphicon glyphicon-remove"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('delete');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-secretary" class="btn btn-primary">
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('save');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
<button id="cancel-secretary" class="btn btn-default">
|
|
|
|
<span class="glyphicon glyphicon-ban-circle"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<?php echo lang('cancel');?>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h3><?php echo lang('details');?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<input type="hidden" id="secretary-id" class="record-id" />
|
|
|
|
|
2016-07-14 22:08:36 +03:00
|
|
|
<div class="row">
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="secretary-details col-md-6">
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-first-name"><?php echo lang('first_name');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-first-name" class="form-control required" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-last-name"><?php echo lang('last_name');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-last-name" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-email"><?php echo lang('email');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-email" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-phone-number"><?php echo lang('phone_number');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-phone-number" class="form-control required" maxlength="128" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-mobile-number"><?php echo lang('mobile_number');?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-mobile-number" class="form-control" maxlength="128" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-address"><?php echo lang('address');?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-address" class="form-control" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-city"><?php echo lang('city');?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-city" class="form-control" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-state"><?php echo lang('state');?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-state" class="form-control" maxlength="128" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-zip-code"><?php echo lang('zip_code');?></label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-zip-code" class="form-control" maxlength="64" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-notes"><?php echo lang('notes');?></label>
|
2015-12-14 00:43:18 +02:00
|
|
|
<textarea id="secretary-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="secretary-settings col-md-6">
|
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-username"><?php echo lang('username');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="text" id="secretary-username" class="form-control required" maxlength="256" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-password"><?php echo lang('password');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="secretary-password" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-password-confirm"><?php echo lang('retype_password');?> *</label>
|
2017-06-17 19:54:09 +03:00
|
|
|
<input type="password" id="secretary-password-confirm" class="form-control required" maxlength="512" />
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2016-07-19 00:46:15 +03:00
|
|
|
<div class="form-group">
|
2017-09-08 15:06:37 +03:00
|
|
|
<label for="secretary-calendar-view"><?php echo lang('calendar'); ?> *</label>
|
2016-07-19 00:46:15 +03:00
|
|
|
<select id="secretary-calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2015-12-14 00:43:18 +02:00
|
|
|
<button type="button" id="secretary-notifications" class="btn btn-default" data-toggle="button">
|
|
|
|
<span class="glyphicon glyphicon-envelope"></span>
|
2017-09-08 15:06:37 +03:00
|
|
|
<span><?php echo lang('receive_notifications');?></span>
|
2015-12-14 00:43:18 +02:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
2017-09-08 15:06:37 +03:00
|
|
|
<h4><?php echo lang('providers');?></h4>
|
2015-12-14 00:43:18 +02:00
|
|
|
<div id="secretary-providers"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|