2013-07-17 19:29:51 +03:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="<?php echo $base_url; ?>assets/js/backend_services.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var GlobalVariables = {
|
|
|
|
'baseUrl': <?php echo '"' . $base_url . '"'; ?>,
|
|
|
|
'services': <?php echo json_encode($services); ?>,
|
2013-09-26 19:06:57 +03:00
|
|
|
'categories': <?php echo json_encode($categories); ?>,
|
|
|
|
'user' : {
|
|
|
|
'id' : <?php echo $user_id; ?>,
|
|
|
|
'email' : <?php echo '"' . $user_email . '"'; ?>,
|
|
|
|
'role_slug' : <?php echo '"' . $role_slug . '"'; ?>,
|
|
|
|
'privileges': <?php echo json_encode($privileges); ?>
|
|
|
|
}
|
2013-07-17 19:29:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
BackendServices.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="services-page" class="row-fluid">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="services-tab tab active"><a>Services</a></li>
|
|
|
|
<li class="categories-tab tab"><a>Categories</a></li>
|
|
|
|
</ul>
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// SERVICES TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
2013-07-17 19:29:51 +03:00
|
|
|
<div id="services" class="tab-content">
|
|
|
|
<?php // FILTER SERVICES ?>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div id="filter-services" class="filter-records column span4">
|
|
|
|
<form class="input-append">
|
2013-10-17 18:31:43 +03:00
|
|
|
<input class="key span7" type="text" />
|
2013-09-25 18:43:17 +03:00
|
|
|
<button class="filter btn" type="submit">
|
|
|
|
<i class="icon-filter"></i>
|
|
|
|
Filter
|
|
|
|
</button>
|
|
|
|
<button class="clear btn" type="button">
|
|
|
|
<i class="icon-remove-circle"></i>
|
|
|
|
Clear
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
|
2013-07-17 19:29:51 +03:00
|
|
|
<h2>Services</h2>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="results"></div>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="details column span7">
|
2013-07-17 19:29:51 +03:00
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
2013-10-10 19:50:33 +03:00
|
|
|
<button id="add-service" class="btn btn-primary">
|
|
|
|
<i class="icon-plus icon-white"></i>
|
2013-07-17 19:29:51 +03:00
|
|
|
Add</button>
|
|
|
|
<button id="edit-service" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-pencil"></i>
|
|
|
|
Edit</button>
|
|
|
|
<button id="delete-service" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
Delete</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-service" class="btn">
|
|
|
|
<i class="icon-ok"></i>
|
|
|
|
Save</button>
|
|
|
|
<button id="cancel-service" class="btn">
|
|
|
|
<i class="icon-ban-circle"></i>
|
|
|
|
Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Details</h2>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<input type="hidden" id="service-id" />
|
|
|
|
|
|
|
|
<label for="service-name">Name *</label>
|
2013-10-17 18:31:43 +03:00
|
|
|
<input type="text" id="service-name" class="span6 required" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
2013-10-17 18:31:43 +03:00
|
|
|
<label for="service-duration">Duration (Minutes) *</label>
|
2013-07-19 18:29:59 +03:00
|
|
|
<input type="text" id="service-duration" class="required" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
2013-07-18 00:10:42 +03:00
|
|
|
<label for="service-price">Price *</label>
|
2013-10-17 18:31:43 +03:00
|
|
|
<input type="text" id="service-price" class="required" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
|
|
|
<label for="service-currency">Currency</label>
|
2013-10-17 18:31:43 +03:00
|
|
|
<input type="text" id="service-currency" class="" />
|
2013-07-17 19:29:51 +03:00
|
|
|
|
|
|
|
<label for="service-category">Category</label>
|
2013-10-17 18:31:43 +03:00
|
|
|
<select id="service-category"></select>
|
|
|
|
|
|
|
|
<label for="service-description">Description</label>
|
|
|
|
<textarea id="service-description" rows="4" class="span6"></textarea>
|
2013-07-18 00:10:42 +03:00
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<em id="form-message" class="text-error">Fields with * are required!</em>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
<?php
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// CATEGORIES TAB
|
|
|
|
//
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
?>
|
2013-07-17 19:29:51 +03:00
|
|
|
<div id="categories" class="tab-content" style="display:none;">
|
2013-09-25 18:43:17 +03:00
|
|
|
<div id="filter-categories" class="filter-records column span4">
|
|
|
|
<form class="input-append">
|
2013-10-17 18:31:43 +03:00
|
|
|
<input class="key span7" type="text" class="" />
|
2013-09-25 18:43:17 +03:00
|
|
|
<button class="filter btn" type="submit">
|
|
|
|
<i class="icon-filter"></i>
|
|
|
|
Filter
|
|
|
|
</button>
|
|
|
|
<button class="clear btn" type="button">
|
|
|
|
<i class="icon-remove-circle"></i>
|
|
|
|
Clear
|
|
|
|
</button>
|
|
|
|
</form>
|
2013-07-17 19:29:51 +03:00
|
|
|
|
|
|
|
<h2>Categories</h2>
|
2013-09-25 18:43:17 +03:00
|
|
|
<div class="results"></div>
|
2013-07-17 19:29:51 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="details span7">
|
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
2013-10-10 19:50:33 +03:00
|
|
|
<button id="add-category" class="btn btn-primary">
|
|
|
|
<i class="icon-plus icon-white"></i>
|
2013-07-17 19:29:51 +03:00
|
|
|
Add</button>
|
|
|
|
<button id="edit-category" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-pencil"></i>
|
|
|
|
Edit</button>
|
|
|
|
<button id="delete-category" class="btn" disabled="disabled">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
Delete</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-category" class="btn">
|
|
|
|
<i class="icon-ok"></i>
|
|
|
|
Save</button>
|
|
|
|
<button id="cancel-category" class="btn">
|
|
|
|
<i class="icon-ban-circle"></i>
|
|
|
|
Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2>Details</h2>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
2013-07-19 18:29:59 +03:00
|
|
|
<input type="hidden" id="category-id" />
|
|
|
|
|
2013-07-17 19:29:51 +03:00
|
|
|
<label for="category-name">Name *</label>
|
|
|
|
<input type="text" id="category-name" class="span7 required" />
|
|
|
|
|
|
|
|
<label for="category-description">Description</label>
|
|
|
|
<textarea id="category-description" rows="4" class="span7"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|